public void xdrDecode(XdrDecodingStream xdr) throws OncRpcException, IOException { obj_attributes = new fattr4(xdr); }
public void xdrDecode(XdrDecodingStream xdr) throws OncRpcException, IOException { obj_attributes = new fattr4(xdr); }
public void xdrDecode(XdrDecodingStream xdr) throws OncRpcException, IOException { obj_attributes = new fattr4(xdr); }
public void xdrDecode(XdrDecodingStream xdr) throws OncRpcException, IOException { obj_attributes = new fattr4(xdr); }
public void xdrDecode(XdrDecodingStream xdr) throws OncRpcException, IOException { ne_file = new component4(xdr); ne_attrs = new fattr4(xdr); }
public void xdrDecode(XdrDecodingStream xdr) throws OncRpcException, IOException { stateid = new stateid4(xdr); obj_attributes = new fattr4(xdr); }
public void xdrDecode(XdrDecodingStream xdr) throws OncRpcException, IOException { cva_verf = new verifier4(xdr); cva_attrs = new fattr4(xdr); }
public void xdrDecode(XdrDecodingStream xdr) throws OncRpcException, IOException { objtype = new createtype4(xdr); objname = new component4(xdr); createattrs = new fattr4(xdr); }
private fattr4 generateReaddirErrorAttribute(int status) { fattr4 attrs = new fattr4(); attrs.attrmask = bitmap4.of(nfs4_prot.FATTR4_RDATTR_ERROR); attrs.attr_vals = new attrlist4(Ints.toByteArray(status)); // java's big endian format matches xdr encoding return attrs; } }
public void xdrDecode(XdrDecodingStream xdr) throws OncRpcException, IOException { mode = xdr.xdrDecodeInt(); switch ( mode ) { case createmode4.UNCHECKED4: case createmode4.GUARDED4: createattrs = new fattr4(xdr); break; case createmode4.EXCLUSIVE4: createverf = new verifier4(xdr); break; case createmode4.EXCLUSIVE4_1: ch_createboth = new creatverfattr(xdr); break; } }
public void xdrDecode(XdrDecodingStream xdr) throws OncRpcException, IOException { entry4 $this = this; entry4 $next; do { $this.cookie = new nfs_cookie4(xdr); $this.name = new component4(xdr); $this.attrs = new fattr4(xdr); $next = xdr.xdrDecodeBoolean() ? new entry4() : null; $this.nextentry = $next; $this = $next; } while ( $this != null ); }
public CompoundBuilder withMakedir(String path) { CREATE4args args = new CREATE4args(); args.objname = new component4(path); args.objtype = new createtype4(); args.objtype.type = nfs_ftype4.NF4DIR; args.createattrs = new fattr4(); args.createattrs.attr_vals = new attrlist4(); args.createattrs.attr_vals.value = openAttrs(); args.createattrs.attrmask = openFattrBitmap(); nfs_argop4 op = new nfs_argop4(); op.argop = nfs_opnum4.OP_CREATE; op.opcreate = args; ops.add(op); return this; }
static fattr4 getAttributes(bitmap4 bitmap, VirtualFileSystem fs, Inode inode, Stat stat, CompoundContext context) throws IOException, OncRpcException { /* * bitmap we send back. can't be uninitialized. */ bitmap4 processedAttributes = new bitmap4(new int[0]); byte[] retBytes; try (Xdr xdr = new Xdr(1024)) { xdr.beginEncoding(); for (int i : bitmap) { Optional<XdrAble> optionalAttr = (Optional<XdrAble>) fattr2xdr(i, fs, inode, stat, context); if (optionalAttr.isPresent()) { XdrAble attr = optionalAttr.get(); _log.debug(" getAttributes : {} ({}) OK.", i, attrMask2String(i)); attr.xdrEncode(xdr); processedAttributes.set(i); } else { _log.debug(" getAttributes : {} ({}) NOT SUPPORTED.", i, attrMask2String(i)); } } xdr.endEncoding(); retBytes = xdr.getBytes(); } fattr4 attributes = new fattr4(); attributes.attrmask = processedAttributes; attributes.attr_vals = new attrlist4(retBytes); return attributes; }
fattr4 attr = new fattr4();