nfs4: for putrootfh set 'mount root' as name

pull/3432/head
Victor Julien 7 years ago
parent 22e0fc97f8
commit ff518e5c64

@ -296,6 +296,12 @@ impl NFSState {
}
}
},
&Nfs4ResponseContent::PutRootFH(s) => {
if s == NFS4_OK && xidmap.file_name.len() == 0 {
xidmap.file_name = b"<mount_root>".to_vec();
SCLogDebug!("filename {:?}", xidmap.file_name);
}
},
&_ => { },
}
}

@ -321,3 +321,6 @@ pub fn nfs4_procedure_string(procedure: u32) -> String {
}
}.to_string()
}
pub const NFS4_OK: u32 = 0;

Loading…
Cancel
Save