Add file RPC dup call
This commit is contained in:
parent
6971161dba
commit
56ccdc4d7f
@ -73,6 +73,10 @@ impl file_rpc::Server for Serv {
|
||||
let (_mount_id, _file_offset, size) = self.files.read()[fd as usize];
|
||||
Some(size as u64)
|
||||
}
|
||||
|
||||
fn dup(&self, fd: u64) -> Option<u64> {
|
||||
Some(fd)
|
||||
}
|
||||
}
|
||||
|
||||
fn main() {
|
||||
|
Loading…
Reference in New Issue
Block a user