[][src]Struct nc::types::fs_quota_statv_t

#[repr(C)]
pub struct fs_quota_statv_t {
    pub qs_version: i8,
    pub qs_flags: u16,
    pub qs_incoredqs: u32,
    pub qs_uquota: fs_qfilestat_t,
    pub qs_gquota: fs_qfilestat_t,
    pub qs_pquota: fs_qfilestat_t,
    pub qs_btimelimit: i32,
    pub qs_itimelimit: i32,
    pub qs_rtbtimelimit: i32,
    pub qs_bwarnlimit: u16,
    pub qs_iwarnlimit: u16,
    // some fields omitted
}

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]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]