diff --git a/src/main.rs b/src/main.rs index b12bf9f..2edc0b9 100644 --- a/src/main.rs +++ b/src/main.rs @@ -73,6 +73,10 @@ impl file_rpc::Server for Serv { let (_mount_id, _file_offset, size) = self.files.read()[fd as usize]; Some(size as u64) } + + fn dup(&self, fd: u64) -> Option { + Some(fd) + } } fn main() {