Expand description
§Filesystem quota: enabling, disabling, and rescanning quota accounting
Quota accounting tracks disk usage per subvolume via qgroups. It must be explicitly enabled before any qgroup limits or usage data are available. Once enabled, usage numbers are maintained incrementally by the kernel; a rescan rebuilds them from scratch if they become inconsistent.
Quota status (whether quotas are on, which mode, inconsistency flag) is
read from sysfs via crate::sysfs::SysfsBtrfs::quota_status.
Structs§
- Quota
Rescan Status - Status of an in-progress (or absent) quota rescan.
Functions§
- quota_
disable - Disable quota accounting on the filesystem referred to by
fd. - quota_
enable - Enable quota accounting on the filesystem referred to by
fd. - quota_
rescan - Start a quota rescan on the filesystem referred to by
fd. - quota_
rescan_ status - Query the status of the quota rescan on the filesystem referred to by
fd. - quota_
rescan_ wait - Block until the quota rescan currently running on the filesystem referred
to by
fdcompletes. Returns immediately if no rescan is in progress.