[−][src]Struct nc::types::fs_quota_statv_t
fs_quota_statv is used by Q_XGETQSTATV for a given file system. It provides a centralized way to get meta information about the quota subsystem. eg. space taken up for user, group, and project quotas, number of dquots currently incore.
This version has proper versioning support with appropriate padding for future expansions, and ability to expand for future without creating any backward compatibility issues.
Q_XGETQSTATV uses the passed in value of the requested version via fs_quota_statv.qs_version to determine the return data layout of fs_quota_statv. The kernel will fill the data fields relevant to that version.
If kernel does not support user space caller specified version, EINVAL will be returned. User space caller can then reduce the version number and retry the same command.
Fields
qs_version: i8
version for future changes
qs_flags: u16
FS_QUOTA_.* flags
qs_incoredqs: u32
number of dquots incore
qs_uquota: fs_qfilestat_t
user quota information
qs_gquota: fs_qfilestat_t
group quota information
qs_pquota: fs_qfilestat_t
project quota information
qs_btimelimit: i32
limit for blks timer
qs_itimelimit: i32
limit for inodes timer
qs_rtbtimelimit: i32
limit for rt blks timer
qs_bwarnlimit: u16
limit for num warnings
qs_iwarnlimit: u16
limit for num warnings
Auto Trait Implementations
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,