From 36e6ca83518c5afec980561ae9dbd6bdf4118420 Mon Sep 17 00:00:00 2001 From: Alejandro Soto Date: Wed, 29 Dec 2021 06:11:24 -0600 Subject: Refactor FsInfo API --- src/fuse/io.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/fuse/io.rs') diff --git a/src/fuse/io.rs b/src/fuse/io.rs index 7ba2944..db33ab3 100644 --- a/src/fuse/io.rs +++ b/src/fuse/io.rs @@ -41,6 +41,7 @@ pub struct Entry<'a, K> { pub ttl: Ttl, } +#[derive(Copy, Clone)] pub struct FsInfo(proto::StatfsOut); impl<'o, O: Operation<'o>> Request<'o, O> { @@ -296,7 +297,7 @@ impl FsInfo { }) } - pub fn filenames(self, max: u32) -> Self { + pub fn max_filename(self, max: u32) -> Self { FsInfo(proto::StatfsOut { namelen: max, ..self.0 -- cgit v1.2.3