Commit 7c665709 authored by Tigran Mkrtchyan's avatar Tigran Mkrtchyan
Browse files

nfsv41: test open stateid on close

parent 2e44129d
......@@ -44,6 +44,12 @@ public class OperationCLOSE extends AbstractNFSv4Operation {
if (context.getMinorversion() > 0) {
context.getSession().getClient().updateLeaseTime(NFSv4Defaults.NFS4_LEASE_TIME);
/*
* for now it's just a place holder for state processing.
* Nevertheless, NFSERR_BAD_STATEID is throws if state is invalid.
*/
NFS4State state = context.getSession().getClient().state(_args.opclose.open_stateid);
try {
context.getDeviceManager().layoutReturn(context, _args.opclose.open_stateid);
} catch (IOException e) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment