Add file RPC dup call

This commit is contained in:
pjht 2024-09-17 11:38:29 -05:00
parent 6971161dba
commit 56ccdc4d7f
Signed by: pjht
GPG Key ID: CA239FC6934E6F3A

View File

@ -73,6 +73,10 @@ impl file_rpc::Server for Serv {
let (_mount_id, _file_offset, size) = self.files.read()[fd as usize]; let (_mount_id, _file_offset, size) = self.files.read()[fd as usize];
Some(size as u64) Some(size as u64)
} }
fn dup(&self, fd: u64) -> Option<u64> {
Some(fd)
}
} }
fn main() { fn main() {