Skip to main content
Version: current

filesystem


disk/btrfs/filesystem​

Conditions: !smips
Syscap: storage
Type: Directory

FlagNameDescription
Imissing-devsOne or more devices of the file system are missing, so the file system is degraded.
bbalancingA balance operation is running on the file system.
rreplacingA device replace operation is running on the file system.
sscrubbingA scrub operation is running on the file system.
ArgumentTypeDescription
labelstringLabel of the Btrfs file system, used to address the file system in the btrfs menus, for example btrfsdisk.
default-subvolumeenumSubvolume that is presented as the root folder of the file system in /file. <FS_ROOT> (default) is the root of the Btrfs file system itself.
Read-only ArgumentTypeDescription
uuidstringUUID of the Btrfs file system.
total-devsnumNumber of devices in the file system.
dev-idsmulti { array-id, devid: num }Numeric device IDs of the devices in the file system; needed by replace-device when a device is missing.
devsmulti { array-id, dev: enum }Disk slots of the devices in the file system, for example nvme8,nvme9.
spacesmulti { array-id, space: string }Space allocation of the file system, per device and per storage profile (data, system, meta, global-reserve), for example data,raid1:1.07GB nvme8:1.07GB nvme9:1.07GB, used:1%.
balance-statusstringStatus of the balance operation, for example done, or an error message such as BTRFS_IOC_BALANCE_V2 failed: ....
replace-statusstringStatus of the replace or device removal operation, for example done, or an error message such as BTRFS_IOC_DEV_REPLACE failed: File exists or BTRFS_IOC_RM_DEV_V2 failed: Resource temporarily unavailable.
scrub-statusstringStatus of the scrub operation, for example done.
write-errorsmulti { snapshot: num }Write error counters, one value per device in the file system. Reset with reset-counters.
read-errorsmulti { snapshot: num }Read error counters, one value per device.
flush-errorsmulti { snapshot: num }Flush error counters, one value per device.
corruption-errorsmulti { snapshot: num }Data corruption error counters, one value per device.
generation-errorsmulti { snapshot: num }Generation mismatch error counters, one value per device.