From 4be8388cf9c09f8a7659d28f6c3f99d94972c680 Mon Sep 17 00:00:00 2001 From: pjht Date: Tue, 17 Sep 2024 11:44:21 -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 022713c..1e42839 100644 --- a/src/main.rs +++ b/src/main.rs @@ -58,6 +58,10 @@ impl file_rpc::Server for Serv { let (file, _mount_id) = &files[fd as usize]; Some(file.metadata().len()) } + + fn dup(&self, fd: u64) -> Option { + Some(fd) + } } fn main() {