Skip to content
Browse files

Fix missing $DMSETUP var in get_iscsitarget.pl

  • Loading branch information...
1 parent c653a78 commit 320b675f5b4a72e03736b800d273964cc9effdb1 Ye Wen committed
Showing with 2 additions and 0 deletions.
  1. +2 −0 tools/get_iscsitarget.pl
View
2 tools/get_iscsitarget.pl
@@ -81,6 +81,7 @@ BEGIN
$ISCSIADM = untaint(`which iscsiadm`);
$MULTIPATH = untaint(`which multipath`);
+$DMSETUP = untaint(`which dmsetup`);
$CONF_IFACES_KEY = "STORAGE_INTERFACES";
@@ -148,6 +149,7 @@ BEGIN
} else {
# TODO(wenye): temporary measure to allow safe volume detaching due to "queue_if_no_path"
run_cmd(1, 0, "$DMSETUP message $localdev 0 'fail_if_no_path'");
+ sleep(2);
$localdev = "/dev/mapper/$localdev";
}
print "$localdev";

0 comments on commit 320b675

Please sign in to comment.
Something went wrong with that request. Please try again.