Browse Source
For lvm, multipath, iscsi modules they do not care about the filesystem, Also there could be devcie in host_devs but it does not get formated. For these kind of modules, use for_each_host_dev_and_slaves will be better than use for_each_host_dev_fs, here add a new function to iterate the host_devs and their slave devices. In original for_each_host_dev_fs, it will call check_block_and_slaves which will return once helper function return 0, but this is not enough for kdump iscsi setup. For kdump iscsi case, it need setup each slave devices so that the iscsi target can be properly setuped in initramfs. Thus, this patch also add new functions check_block_and_slaves_all and for_each_host_dev_and_slaves_all. Signed-off-by: Dave Young <dyoung@redhat.com> Tested-by: WANG Chao <chaowang@redhat.com>master


4 changed files with 53 additions and 9 deletions
Loading…
Reference in new issue