Skip to content

Commit

Permalink
mxraid_assemble: Wait for lazy enclosures
Browse files Browse the repository at this point in the history
  • Loading branch information
thomas committed Jan 22, 2019
1 parent f94893c commit 1f5d973
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions mxraid/mxraid_assemble
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,13 @@ sub exec_version {
}

sub check_enclosures {

# Slow down if known HBAs are in use, possibly there is a lazy enclosure attached.
# This might be skipped if /proc/uptime is large enough?
if (-e '/sys/module/aacraid/version' or -e '/sys/module/smartpqi/version') {
usleep(0.3 * 1e6);
}

glob('/sys/class/enclosure/*') or return;

my $cnt_0 = () = (glob('/sys/block/sd[a-z]'), glob('/sys/block/sd[a-z][a-z]'));
Expand Down

0 comments on commit 1f5d973

Please sign in to comment.