]> git.proxmox.com Git - pve-storage.git/commit
ZFS: use -p flag and remove zfs_parse_size
authorAaron Lauterer <a.lauterer@proxmox.com>
Tue, 7 Apr 2020 12:25:36 +0000 (14:25 +0200)
committerFabian Grünbichler <f.gruenbichler@proxmox.com>
Thu, 9 Apr 2020 08:20:06 +0000 (10:20 +0200)
commit3881e68025e228023bb8080fd456114888041f8f
tree100af0fd59bf05527d219841fbd850777736815c
parentd99de0f898e8edc7bf1e2ae6e899bf16fbe298d0
ZFS: use -p flag and remove zfs_parse_size

ZFS supports the -p flag in the list command since a few years now.
Let us use the real byte values and avoid the error prone calculation
from human readable numbers that can lead to incorrect numbers if the
reported human readable value is a rounded number.

Signed-off-by: Aaron Lauterer <a.lauterer@proxmox.com>
PVE/Storage.pm
PVE/Storage/ZFSPoolPlugin.pm