disk_volume - bruno-beloff/scs_dev GitHub Wiki
docs > software repositories > scs_dev > commands > device status
DESCRIPTION
The disk_volume utility is used to determine whether a volume is mounted and, if so, the free and used space on the volume. Space is given in blocks. The volume is identified by its mount point.
If the "is-available" field in the report is false, this indicates that an OS error occurred when an attempt was made to access the volume. This error can occur if a removable medium failed, or was disconnected without being unmounted.
The disk_volume utility is normally included in the commands accepted by the control_receiver utility.
SYNOPSIS
disk_volume.py [-v] MOUNTED_ON
Options | |
---|---|
--version | show program's version number and exit |
-h, --help | show this help message and exit |
-v, --verbose | report narrative to stderr |
EXAMPLES
./disk_volume.py /srv/SCS_logging
DOCUMENT EXAMPLE
{"filesystem": "/dev/mmcblk0p1", "size": 15384184, "used": 319296, "free": 14892092, "mounted-on": "/srv/SCS_logging", "is-available": true}