]> git.proxmox.com Git - pve-storage.git/commitdiff
ZFS: use -p flag where possible
authorAaron Lauterer <a.lauterer@proxmox.com>
Tue, 7 Apr 2020 12:25:37 +0000 (14:25 +0200)
committerFabian Grünbichler <f.gruenbichler@proxmox.com>
Thu, 9 Apr 2020 08:20:06 +0000 (10:20 +0200)
Signed-off-by: Aaron Lauterer <a.lauterer@proxmox.com>
PVE/Storage/ZFSPoolPlugin.pm

index 3808ab7e9ec0e3896c1068ed2b26b007393a228d..10354b3af957596736751cf498b44dcba34d7c8b 100644 (file)
@@ -571,7 +571,7 @@ sub clone_image {
     my $name = $class->find_free_diskname($storeid, $scfg, $vmid, $format);
 
     if ($format eq 'subvol') {
-       my $size = $class->zfs_request($scfg, undef, 'list', '-H', '-o', 'refquota', "$scfg->{pool}/$basename");
+       my $size = $class->zfs_request($scfg, undef, 'list', '-Hp', '-o', 'refquota', "$scfg->{pool}/$basename");
        chomp($size);
        $class->zfs_request($scfg, undef, 'clone', "$scfg->{pool}/$basename\@$snap", "$scfg->{pool}/$name", '-o', "refquota=$size");
     } else {