Change zfs path when link clone are used
The new naming is coherent to Dir plugin. So if we make an licked clone the parent will be coded in the path of the storage.
This commit is contained in:
committed by
Dietmar Maurer
parent
703de49ea9
commit
851658c3b0
@ -1050,7 +1050,8 @@ sub scan_zfs {
|
||||
my $size = PVE::Storage::ZFSPoolPlugin::zfs_parse_size($size_str);
|
||||
my $used = PVE::Storage::ZFSPoolPlugin::zfs_parse_size($used_str);
|
||||
# ignore subvolumes generated by our ZFSPoolPlugin
|
||||
return if $pool =~ m!/subvol-\d+-[^/]+$!;
|
||||
return if $pool =~ m!/subvol-\d+-[^/]+$!;
|
||||
return if $pool =~ m!/basevol-\d+-[^/]+$!;
|
||||
push @$res, { pool => $pool, size => $size, free => $size-$used };
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user