ZFSPoolPlugin: allow nested datasets
This commit is contained in:
@ -450,7 +450,11 @@ sub activate_storage {
|
|||||||
|
|
||||||
my $text = zfs_request($class, $scfg, undef, 'zpool_list', @param);
|
my $text = zfs_request($class, $scfg, undef, 'zpool_list', @param);
|
||||||
|
|
||||||
if ($text !~ $scfg->{pool}) {
|
# Note: $scfg->{pool} can include dataset <pool>/<dataset>
|
||||||
|
my $pool = $scfg->{pool};
|
||||||
|
$pool =~ s!/.*$!!;
|
||||||
|
|
||||||
|
if ($text !~ $pool) {
|
||||||
run_command("zpool import -d /dev/disk/by-id/ -a");
|
run_command("zpool import -d /dev/disk/by-id/ -a");
|
||||||
}
|
}
|
||||||
return 1;
|
return 1;
|
||||||
|
|||||||
Reference in New Issue
Block a user