On April 7, 2020 11:28 am, Aaron Lauterer wrote: > > > On 4/3/20 5:07 PM, Fabian Grünbichler wrote: >> there's another instance of 'zfs list ...' in PVE::Storage that could >> also be switched to '-p' > > Which one do you mean? Line 610? > > 1 if ($format eq 'subvol') { > > 610 my $size = $class->zfs_request($scfg, undef, 'list', '-H', > '-o', 'refquota', "$scfg->{pool}/$basename"); > 1 chomp($size); > > I don't see much chances for a bug here as the value is used right away > in the next step but it would definitely be more precise to use the -p flag.
the bug is that the parse_size sub is very broken, so we should get rid of it ;) _______________________________________________ pve-devel mailing list pve-devel@pve.proxmox.com https://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel