From bfa60753f9693f903ab8319d7390a4c7bc103c8c Mon Sep 17 00:00:00 2001 From: Victor Julien Date: Mon, 19 Mar 2018 20:52:28 +0100 Subject: [PATCH] nfs4: create link support --- rust/src/nfs/nfs4_records.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/rust/src/nfs/nfs4_records.rs b/rust/src/nfs/nfs4_records.rs index 70538652d6..be26508446 100644 --- a/rust/src/nfs/nfs4_records.rs +++ b/rust/src/nfs/nfs4_records.rs @@ -159,16 +159,19 @@ named!(nfs4_req_setclientid_confirm, pub struct Nfs4RequestCreate<'a> { pub ftype4: u32, pub filename: &'a[u8], + pub link_content: &'a[u8], } named!(nfs4_req_create, do_parse!( ftype4: be_u32 + >> link_content: cond!(ftype4 == 5, nfs4_parse_nfsstring) >> filename: nfs4_parse_nfsstring >> attrs: nfs4_parse_attrs >> ( Nfs4RequestContent::Create(Nfs4RequestCreate { ftype4: ftype4, filename: filename, + link_content: link_content.unwrap_or(&[]), }) )) ); -- 2.47.2