Add stub dir_rpc support

This commit is contained in:
pjht 2024-09-26 11:30:56 -05:00
parent 56ccdc4d7f
commit d756ac19c2
Signed by: pjht
GPG Key ID: CA239FC6934E6F3A
2 changed files with 11 additions and 2 deletions

8
Cargo.lock generated
View File

@ -19,9 +19,12 @@ checksum = "0c4b4d0bd25bd0b74681c0ad21497610ce1b7c91b1022cd21c80c6fbdd9476b0"
[[package]]
name = "bitflags"
version = "2.5.0"
version = "2.6.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "cf4b9d6a944f767f8e5e0db018570623c85f3d925ac718db4e06d0187adb21c1"
checksum = "b048fb63fd8b5923fc5aa7b340d8e156aec7ec02f0c78fa8a6ddc2613f6f71de"
dependencies = [
"serde",
]
[[package]]
name = "byteorder"
@ -77,6 +80,7 @@ checksum = "ef1a6892d9eef45c8fa6b9e0086428a2cca8491aca8f787c534a3d6d0bcb3ced"
name = "file_rpc"
version = "0.1.0"
dependencies = [
"bitflags",
"parking_lot",
"postcard",
"serde",

View File

@ -43,6 +43,11 @@ impl fs_rpc::Server for Serv {
.push((mount_id as usize, file_offset, file_size));
Ok((None, (self.files.read().len() - 1) as u64))
}
fn open_dir(&self, path: &std::path::Path, mount_id: u64) -> Result<(Option<u64>, u64), ()> {
// TODO
Err(())
}
}
impl file_rpc::Server for Serv {