]> git.proxmox.com Git - proxmox-backup.git/commit - src/api2/admin/datastore.rs
let disk_usage return StorageStatus and use it for datastores/nodes
authorDominik Csapak <d.csapak@proxmox.com>
Tue, 9 Jun 2020 08:01:09 +0000 (10:01 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Tue, 9 Jun 2020 10:05:39 +0000 (12:05 +0200)
commit33070956aff77218614b03fd1d2cb4085c97ed2e
treed5fb0356cf22ca4ba8ef62a52bc610b5b3d9fe4a
parentda84cc52f4af175482fdb2a564e1666c724d3dd6
let disk_usage return StorageStatus and use it for datastores/nodes

disk_usage returned the same values as defined in StorageStatus,
so simply use that

with that we can replace the logic of the datastore status with that
function and also use it for root disk usage of the nodes

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
src/api2/admin/datastore.rs
src/api2/node/status.rs
src/bin/proxmox-backup-proxy.rs
src/tools/disks.rs