Commit cd7aa48f authored by Tigran Mkrtchyan's avatar Tigran Mkrtchyan
Browse files

nfs4: process file handle in attribute map

If we want to build a GETATTR request with to retrieve the file handle,
then we should be able to process the result.

Acked-by: Paul Millar
Acked-by: Lea Morschel
Target: master
parent 63bfae29
......@@ -34,6 +34,7 @@ import org.dcache.nfs.v4.xdr.fattr4_type;
import org.dcache.nfs.v4.xdr.int32_t;
import org.dcache.nfs.v4.xdr.mode4;
import org.dcache.nfs.v4.xdr.nfs4_prot;
import org.dcache.nfs.v4.xdr.nfs_fh4;
import org.dcache.nfs.v4.xdr.nfstime4;
import org.dcache.nfs.v4.xdr.settime4;
import org.dcache.nfs.v4.xdr.utf8str_cs;
......@@ -154,6 +155,9 @@ public class AttributeMap {
case nfs4_prot.FATTR4_LEASE_TIME:
attr = new fattr4_lease_time();
case nfs4_prot.FATTR4_FILEHANDLE:
attr = new nfs_fh4();
throw new InvalException("invalid attribute: " + OperationGETATTR.attrMask2String(fattr));
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