diff options
| author | Alejandro Soto <alejandro@34project.org> | 2022-01-03 06:43:11 -0600 |
|---|---|---|
| committer | Alejandro Soto <alejandro@34project.org> | 2022-01-03 06:44:18 -0600 |
| commit | dc95a1a9f4abed042d2350eda2e870de20545be9 (patch) | |
| tree | b3e33be2fdf3b04a1540921c4aa91287dec3b393 | |
| parent | ffe52b288295073e0da6e54c5a780a91206ac009 (diff) | |
Add Attrs::device()
| -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 }) } |
