zPool: fixup timeout setting for import

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht
2019-04-17 14:39:37 +00:00
parent a10695b4e8
commit e9ab8ea313

View File

@ -173,7 +173,7 @@ sub zfs_request {
push @$cmd, 'zpool', 'list'; push @$cmd, 'zpool', 'list';
} elsif ($method eq 'zpool_import') { } elsif ($method eq 'zpool_import') {
push @$cmd, 'zpool', 'import'; push @$cmd, 'zpool', 'import';
$default_timeout = 15 if $default_timeout < 15; $timeout = 15 if !$timeout || $timeout < 15;
} else { } else {
push @$cmd, 'zfs', $method; push @$cmd, 'zfs', $method;
} }