diff --git a/rcore-fs-fuse/src/fuse.rs b/rcore-fs-fuse/src/fuse.rs index 6ba5f51..c15c500 100644 --- a/rcore-fs-fuse/src/fuse.rs +++ b/rcore-fs-fuse/src/fuse.rs @@ -130,7 +130,7 @@ impl Filesystem for VfsFuse { mode: Option, uid: Option, gid: Option, - _size: Option, + size: Option, atime: Option, mtime: Option, _fh: Option, @@ -141,6 +141,9 @@ impl Filesystem for VfsFuse { reply: ReplyAttr, ) { let inode = try_vfs!(reply, self.get_inode(ino)); + if let Some(size) = size { + try_vfs!(reply, inode.resize(size as usize)); + } let mut info = try_vfs!(reply, inode.metadata()); if let Some(mode) = mode { info.mode = mode as u16; diff --git a/rcore-fs-sefs/src/lib.rs b/rcore-fs-sefs/src/lib.rs index cea64f4..961b187 100644 --- a/rcore-fs-sefs/src/lib.rs +++ b/rcore-fs-sefs/src/lib.rs @@ -425,7 +425,7 @@ impl Drop for INodeImpl { } } -/// Simple Encrypt File System +/// Simple Encrypted File System pub struct SEFS { /// on-disk superblock super_block: RwLock>,