Commit 67f6c898 authored by Tigran Mkrtchyan's avatar Tigran Mkrtchyan
Browse files

nfs4: fix en/decode of SETXATTR4res

Acked-by: Lea Morschel
Target: master, 0.20
parent 0b38172b
......@@ -7,6 +7,7 @@
* See http://www.dCache.ORG for details
*/
package org.dcache.nfs.v4.xdr;
import org.dcache.nfs.nfsstat;
import org.dcache.oncrpc4j.rpc.*;
import org.dcache.oncrpc4j.rpc.net.*;
import org.dcache.oncrpc4j.xdr.*;
......@@ -27,11 +28,17 @@ public class SETXATTR4res implements XdrAble {
public void xdrEncode(XdrEncodingStream xdr)
throws OncRpcException, IOException {
xdr.xdrEncodeInt(sxr_status);
if (sxr_status == nfsstat.NFS_OK) {
sxr_info.xdrEncode(xdr);
}
}
public void xdrDecode(XdrDecodingStream xdr)
throws OncRpcException, IOException {
sxr_status = xdr.xdrDecodeInt();
if (sxr_status == nfsstat.NFS_OK) {
sxr_info = new change_info4(xdr);
}
}
}
// End of SETXATTR4res.java
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