pub struct QuotaStatus {
pub enabled: bool,
pub mode: Option<String>,
pub inconsistent: Option<bool>,
pub override_limits: Option<bool>,
pub drop_subtree_threshold: Option<u64>,
pub total_count: Option<u64>,
pub level0_count: Option<u64>,
}Expand description
Quota status for a mounted btrfs filesystem, read from sysfs under
/sys/fs/btrfs/<uuid>/qgroups/.
Fields§
§enabled: boolWhether quota accounting is currently enabled.
mode: Option<String>Accounting mode: "qgroup" (full backref accounting) or "squota"
(simplified lifetime accounting). None when quotas are disabled.
inconsistent: Option<bool>Whether the quota tree is inconsistent; a rescan is needed to restore
accurate numbers. None when quotas are disabled.
override_limits: Option<bool>Whether the quota override flag is active (limits are bypassed for
the current mount). None when quotas are disabled.
drop_subtree_threshold: Option<u64>Drop-subtree threshold: qgroup hierarchy levels below this value skip
detailed tracking during heavy write workloads. None when disabled.
total_count: Option<u64>Total number of qgroups tracked by the kernel. None when disabled.
level0_count: Option<u64>Number of level-0 qgroups (one per subvolume). None when disabled.
Trait Implementations§
Source§impl Clone for QuotaStatus
impl Clone for QuotaStatus
Source§fn clone(&self) -> QuotaStatus
fn clone(&self) -> QuotaStatus
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more