From 56ccdc4d7f6f197d0fbbd74d8122a0ebd8864938 Mon Sep 17 00:00:00 2001 From: pjht Date: Tue, 17 Sep 2024 11:38:29 -0500 Subject: [PATCH] Add file RPC dup call --- src/main.rs | 4 ++++ 1 file changed, 4 insertions(+) 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() {