/// Create a new reply with a directory entry and open parameters.
// TODO: use typed open_flags
Create a new reply with a directory entry and open parameters.
TODO: use typed open_flags
Create a new reply with a directory entry and open parameters . TODO : use typed open_flags
pub fn new(ttl: &Duration, attr: &FileAttr, generation: u64, fh: u64, open_flags: u32) -> Self {
        Self {
            inner: (
                fuse_entry_out {
                    nodeid: attr.ino,
                    generation,
                    entry_valid: ttl.as_secs(),
                    attr_valid: ttl.as_secs(),
                    entry_valid_nsec: ttl.subsec_nanos(),
                    attr_valid_nsec: ttl.subsec_nanos(),
                    attr: fuse_attr_from_attr(attr),
                },
                fuse_open_out {
                    fh,
                    open_flags,
                    padding: 0,
                },
            ),
        }
    }
pub fn new ( ttl : & Duration , attr : & FileAttr , generation : u64 , fh : u64 , open_flags : u32 ) -> Self { Self { inner : ( fuse_entry_out { nodeid : attr . ino , generation , entry_valid : ttl . as_secs ( ) , attr_valid : ttl . as_secs ( ) , entry_valid_nsec : ttl . subsec_nanos ( ) , attr_valid_nsec : ttl . subsec_nanos ( ) , attr : fuse_attr_from_attr ( attr ) , } , fuse_open_out { fh , open_flags , padding : 0 , } , ) , } }
Create a new reply with a directory entry and open parameters.
Create a new reply with a directory entry and open parameters .
ttl
&Duration
attr
&FileAttr
generation
u64
fh
u64
open_flags
u32