Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
634 changes: 237 additions & 397 deletions Cargo.lock

Large diffs are not rendered by default.

5 changes: 5 additions & 0 deletions nfs3/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,11 @@ rpc_protocol = { path = "../rpc_protocol" }
log = "0.4.27"
nix = { version = "0.30.1", features = ["socket"] }
xdr_lib = { path = "../xdr_lib" }
socket2 = "0.6.4"
hex = "0.4.3"
serde_json = "1.0.150"
serde = { version = "1.0.228", features = ["derive"] }
erased-serde = "0.4.10"

[target.'cfg(target_os = "linux")'.dependencies]
libc = "0.2"
Expand Down
5 changes: 5 additions & 0 deletions nfs3/build.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
fn main() {
xdr_codegen::Compiler::new()
.disable_debug_for("FileHandle".to_string())
.disable_debug_for("FileAttributes".to_string())
.disable_debug_for("CookieVerf".to_string())
.disable_debug_for("ReadResOk".to_string())
.file("mount_proto.x")
.file("nfs3_xdr.x")
.enable_derive_serialize()
.run()
.expect("That should have worked. :(");
}
6 changes: 5 additions & 1 deletion nfs3/mount_proto.x
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,10 @@ struct MountList {
MountBody *inner;
};

struct MountArg {
DirPath path;
};

struct GroupNode {
Name name;
GroupNode *next;
Expand All @@ -63,7 +67,7 @@ struct Exports {
program MOUNT_PROGRAM {
version MOUNT_V3 {
void MOUNTPROC3_NULL(void) = 0;
MountResult MOUNTPROC3_MNT(dirpath) = 1;
MountResult MOUNTPROC3_MNT(MountArg) = 1;
MountList MOUNTPROC3_DUMP(void) = 2;
void MOUNTPROC3_UMNT(dirpath) = 3;
void MOUNTPROC3_UMNTALL(void) = 4;
Expand Down
Loading
Loading