Open zyfjeff opened 10 months ago
the current permissions of the root directory are a default value, this cannot be customized.
fn get_entry(&self, ino: u64) -> Entry { let mut attr = Attr { ..Default::default() }; attr.ino = ino; #[cfg(target_os = "linux")] { attr.mode = libc::S_IFDIR | libc::S_IRWXU | libc::S_IRWXG | libc::S_IRWXO; } #[cfg(target_os = "macos")] { attr.mode = (libc::S_IFDIR | libc::S_IRWXU | libc::S_IRWXG | libc::S_IRWXO) as u32; }
The root inode of VFS is a pseudo-inode, and its current implementation always returns a default permission that cannot be customized. we want VFS to expose an interface to set the default ATTR
@bergwolf @jiangliu
the current permissions of the root directory are a default value, this cannot be customized.
The root inode of VFS is a pseudo-inode, and its current implementation always returns a default permission that cannot be customized. we want VFS to expose an interface to set the default ATTR