From 24c84fd0f32d5e9ac72860e16e2da22efff13f40 Mon Sep 17 00:00:00 2001 From: pjht Date: Tue, 17 Sep 2024 11:44:39 -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 5f02a46..fde59a6 100644 --- a/src/main.rs +++ b/src/main.rs @@ -371,6 +371,10 @@ impl file_rpc::Server for FileServ { fn size(&self, _fd: u64) -> Option { None } + + fn dup(&self, fd: u64) -> Option { + Some(fd) + } } fn main() {