Commit 1fe8b203 authored by Mike Hibler's avatar Mike Hibler

Whack!

Take care of an iSCSI race condition in Fedora15.
parent ca2a8602
......@@ -839,8 +839,16 @@ sub os_create_storage_element($$$)
#
my $dev = iscsi_to_dev($session);
if (!defined($dev)) {
warn("*** $bsid: could not map iSCSI session to device\n");
return 0;
#
# XXX apparently the device may not show up immediately,
# so pause and try again.
#
sleep(1);
$dev = iscsi_to_dev($session);
if (!defined($dev)) {
warn("*** $bsid: could not map iSCSI session to device\n");
return 0;
}
}
$href->{'LVDEV'} = "/dev/$dev";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment