Add file RPC dup call

This commit is contained in:
pjht 2024-09-17 11:44:21 -05:00
parent 9326191911
commit 4be8388cf9
Signed by: pjht
GPG Key ID: CA239FC6934E6F3A

View File

@ -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<u64> {
Some(fd)
}
}
fn main() {