diff options
Diffstat (limited to 'src/fuse')
| -rw-r--r-- | src/fuse/io.rs | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/src/fuse/io.rs b/src/fuse/io.rs index fe2fb36..3d2445e 100644 --- a/src/fuse/io.rs +++ b/src/fuse/io.rs @@ -231,16 +231,21 @@ impl Attrs { #[must_use] pub fn blocks(self, blocks: u64) -> Self { + Attrs(proto::Attrs { blocks, ..self.0 }) + } + + #[must_use] + pub fn block_size(self, block_size: u32) -> Self { Attrs(proto::Attrs { - blocks, + blksize: block_size, ..self.0 }) } #[must_use] - pub fn block_size(self, block_size: u32) -> Self { + pub fn device(self, device: u32) -> Self { Attrs(proto::Attrs { - blksize: block_size, + rdev: device, ..self.0 }) } |
