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

@ -203,5 +203,20 @@
"rpm" : 0,
"type" : "hdd",
"osdid" : -1
},
"sdn" : {
"serial" : "SERIAL1",
"vendor" : "ATA",
"wwn" : "0x0000000000000000",
"devpath" : "/dev/sdn",
"model" : "MODEL1",
"used" : "xfs",
"wearout" : "N/A",
"health" : "UNKNOWN",
"gpt" : 0,
"size" : 1536000,
"rpm" : 0,
"type" : "hdd",
"osdid" : -1
}
}