Closed tcarrio closed 8 years ago
{ "/dev/sda1": { "use%": "12%", "used": "12G", "permission": "rw", "mount": "/", "avail": "89G", "type": "ext4", "size": "107G" } }
This is the final format of the dict storing the disks. Right now it detects whether the first value in each line returned in df -h begins with /dev, so that all drives returned like /dev/sda1, /dev/sdb1, or /dev/md0 will be returned.
df -h
/dev
/dev/sda1
/dev/sdb1
/dev/md0
This is the final format of the dict storing the disks. Right now it detects whether the first value in each line returned in
df -h
begins with/dev
, so that all drives returned like/dev/sda1
,/dev/sdb1
, or/dev/md0
will be returned.