Diskmanage: also check for filesystem type when determining usage

Like this, a non-ZFS filesystem living on a whole disk will also be detected
when it is not mounted.

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
This commit is contained in:
Fabian Ebner
2021-01-26 12:45:20 +01:00
committed by Thomas Lamprecht
parent b6bbc2ab28
commit 59c03cd970
8 changed files with 50 additions and 5 deletions

View File

@ -1,7 +1,8 @@
{
"blockdevices": [
{"path":"/dev/sdm", "parttype":null},
{"path":"/dev/sdm1", "parttype":"6a898cc3-1dd2-11b2-99a6-080020736631"},
{"path":"/dev/sdm9", "parttype":"6a945a3b-1dd2-11b2-99a6-080020736631"}
{"path":"/dev/sdm", "parttype":null, "fstype":null},
{"path":"/dev/sdm1", "parttype":"6a898cc3-1dd2-11b2-99a6-080020736631", "fstype":"zfs_member"},
{"path":"/dev/sdm9", "parttype":"6a945a3b-1dd2-11b2-99a6-080020736631", "fstype":null},
{"path":"/dev/sdn", "parttype":null, "fstype":"xfs"}
]
}