From 32a4e71dae654ced1cd614872cebe947c799f860 Mon Sep 17 00:00:00 2001 From: pjht Date: Tue, 17 Sep 2024 11:42:15 -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 3898b81..6e03ce9 100644 --- a/src/main.rs +++ b/src/main.rs @@ -64,6 +64,10 @@ impl file_rpc::Server for Serv { fn size(&self, fd: u64) -> Option { Some(self.open_files.get(fd as usize)?.2 as u64) } + + fn dup(&self, fd: u64) -> Option { + Some(fd) + } } fn parse_mbr(mut disk: &File) -> Vec {