[][src]Struct libfuse_sys::fuse_lowlevel::fuse_entry_param

#[repr(C)]pub struct fuse_entry_param {
    pub ino: fuse_ino_t,
    pub generation: c_ulong,
    pub attr: stat,
    pub attr_timeout: f64,
    pub entry_timeout: f64,
}

Directory entry parameters supplied to fuse_reply_entry()

Fields

ino: fuse_ino_t

Unique inode number

In lookup, zero means negative entry (from version 2.5) Returning ENOENT also means negative entry, but by setting zero ino the kernel may cache negative entries for entry_timeout seconds.

generation: c_ulong

Generation number for this entry.

If the file system will be exported over NFS, the ino/generation pairs need to be unique over the file system's lifetime (rather than just the mount time). So if the file system reuses an inode after it has been deleted, it must assign a new, previously unused generation number to the inode at the same time.

The generation must be non-zero, otherwise FUSE will treat it as an error.

attr: stat

Inode attributes.

Even if attr_timeout == 0, attr must be correct. For example, for open(), FUSE uses attr.st_size from lookup() to determine how many bytes to request. If this value is not correct, incorrect data will be returned.

attr_timeout: f64

Validity timeout (in seconds) for the attributes

entry_timeout: f64

Validity timeout (in seconds) for the name

Trait Implementations

impl Default for fuse_entry_param[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<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> 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.