From aa6e302baac84061dac36cb758b634c15da5b2da Mon Sep 17 00:00:00 2001 From: pjht Date: Tue, 17 Sep 2024 11:41:16 -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 384e120..4efe3a9 100644 --- a/src/main.rs +++ b/src/main.rs @@ -180,6 +180,10 @@ impl file_rpc::Server for Serv { fn size(&self, _fd: u64) -> Option { None } + + fn dup(&self, fd: u64) -> Option { + Some(fd) + } } fn main() {