[kexec-tools/f18] iscsi setup fix

Dave Young yangrr at fedoraproject.org
Wed Aug 29 01:50:32 UTC 2012


commit 679b4216faabdf085faeb5a3ff6d2b6b7a787939
Author: Dave Young <dyoung at redhat.com>
Date:   Tue Aug 28 11:02:42 2012 +0800

    iscsi setup fix
    
    Original host_fs_types could only contain one iscsi slave,
    This is due to the check_block_and_slaves will return once the helper function
    return TRUE, so only one slave with fs type will be added to host_fs_types[]
    Thus, there will no chance to setup other slaves in kdump iscsi setup routine.
    
    Use for_each_host_dev_and_slaves_all to setup all slaves.
    
    Tested by chaowang and myself.
    
    Signed-off-by: Dave Young <dyoung at redhat.com>
    Acked-by: Vivek Goyal <vgoyal at redhat.com>

 dracut-module-setup.sh |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/dracut-module-setup.sh b/dracut-module-setup.sh
index 9fe9f71..d531720 100755
--- a/dracut-module-setup.sh
+++ b/dracut-module-setup.sh
@@ -321,7 +321,7 @@ kdump_check_iscsi_targets () {
 
     kdump_check_setup_iscsi() (
         local _dev
-        _dev=$(get_maj_min $1)
+        _dev=$1
 
         [[ -L /sys/dev/block/$_dev ]] || return
         cd "$(readlink -f /sys/dev/block/$_dev)"
@@ -332,7 +332,7 @@ kdump_check_iscsi_targets () {
     )
 
     [[ $hostonly ]] || [[ $mount_needs ]] && {
-        for_each_host_dev_fs kdump_check_setup_iscsi
+        for_each_host_dev_and_slaves_all kdump_check_setup_iscsi
     }
 }
 


More information about the scm-commits mailing list