Skip to main content

fs_stat

Function fs_stat 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn fs_stat( handle: *mut FsHandle, name: *const c_char, out_size: *mut u64, out_kind: *mut i32, out_inode_id: *mut u64, ) -> i32
Expand description

Stat metadata for a single file/directory.

Returns 0 on success and populates the out-parameters. Much cheaper than fs_list_dir for FUSE getattr / lookup.

out_size: file size in bytes (or 0 for directories). out_kind: 0 = file, 1 = directory. out_inode_id: the logical inode id.

ยงSafety

handle, name, and all out_* pointers must be valid.