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:
Wolfgang Link
2016-03-31 09:10:22 +02:00
committed by Dietmar Maurer
parent 703de49ea9
commit 851658c3b0
2 changed files with 39 additions and 22 deletions

View File

@ -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 };
}
});