proxmox-backup/src/tools/disks
Dominik Csapak 368f4c5416 fix gathering io stats for zpools
if a datastore or root is not used directly on the pool dir
(e.g. the installer creates 2 sub datasets ROOT/pbs-1), info in
/proc/self/mountinfo returns not the pool, but the path to the
dataset, which has no iostats itself in /proc/spl/kstat/zfs/
but only the pool itself

so instead of not gathering data at all, gather the info from the
underlying pool instead. if one has multiple datastores on the same
pool those rrd stats will be the same for all those datastores now
(instead of empty) similar to 'normal' directories

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2021-04-12 13:35:38 +02:00
..
lvm.rs whitespace fixup 2020-08-03 12:00:59 +02:00
smart.rs more whitespace fixups 2020-08-03 12:02:19 +02:00
zfs.rs fix gathering io stats for zpools 2021-04-12 13:35:38 +02:00
zpool_list.rs clippy: use strip_prefix instead of manual stripping 2021-01-20 16:22:59 +01:00
zpool_status.rs zpool parsers: small code cleanup 2021-03-03 14:05:05 +01:00