Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
dCache
nfs4j
Commits
05f51790
Commit
05f51790
authored
Apr 03, 2020
by
Tigran Mkrtchyan
☕
Browse files
nfs42: add auto-generated code of NFSv4.2 data types
Acked-by: Albert Rossi Acked-by: Lea Morschel Target: master
parent
b0443625
Changes
62
Hide whitespace changes
Inline
Side-by-side
core/src/main/java/org/dcache/nfs/v4/xdr/ALLOCATE4args.java
0 → 100644
View file @
05f51790
/*
* Automatically generated by jrpcgen 1.0.7+ on 4/3/20, 4:01 PM
* jrpcgen is part of the "Remote Tea" ONC/RPC package for Java
* See http://remotetea.sourceforge.net for details
*
* This version of jrpcgen adopted by dCache project
* See http://www.dCache.ORG for details
*/
package
org.dcache.nfs.v4.xdr
;
import
org.dcache.oncrpc4j.rpc.*
;
import
org.dcache.oncrpc4j.rpc.net.*
;
import
org.dcache.oncrpc4j.xdr.*
;
import
java.io.IOException
;
public
class
ALLOCATE4args
implements
XdrAble
{
public
stateid4
aa_stateid
;
public
offset4
aa_offset
;
public
length4
aa_length
;
public
ALLOCATE4args
()
{
}
public
ALLOCATE4args
(
XdrDecodingStream
xdr
)
throws
OncRpcException
,
IOException
{
xdrDecode
(
xdr
);
}
public
void
xdrEncode
(
XdrEncodingStream
xdr
)
throws
OncRpcException
,
IOException
{
aa_stateid
.
xdrEncode
(
xdr
);
aa_offset
.
xdrEncode
(
xdr
);
aa_length
.
xdrEncode
(
xdr
);
}
public
void
xdrDecode
(
XdrDecodingStream
xdr
)
throws
OncRpcException
,
IOException
{
aa_stateid
=
new
stateid4
(
xdr
);
aa_offset
=
new
offset4
(
xdr
);
aa_length
=
new
length4
(
xdr
);
}
}
// End of ALLOCATE4args.java
core/src/main/java/org/dcache/nfs/v4/xdr/ALLOCATE4res.java
0 → 100644
View file @
05f51790
/*
* Automatically generated by jrpcgen 1.0.7+ on 4/3/20, 4:01 PM
* jrpcgen is part of the "Remote Tea" ONC/RPC package for Java
* See http://remotetea.sourceforge.net for details
*
* This version of jrpcgen adopted by dCache project
* See http://www.dCache.ORG for details
*/
package
org.dcache.nfs.v4.xdr
;
import
org.dcache.oncrpc4j.rpc.*
;
import
org.dcache.oncrpc4j.rpc.net.*
;
import
org.dcache.oncrpc4j.xdr.*
;
import
java.io.IOException
;
public
class
ALLOCATE4res
implements
XdrAble
{
public
int
ar_status
;
public
ALLOCATE4res
()
{
}
public
ALLOCATE4res
(
XdrDecodingStream
xdr
)
throws
OncRpcException
,
IOException
{
xdrDecode
(
xdr
);
}
public
void
xdrEncode
(
XdrEncodingStream
xdr
)
throws
OncRpcException
,
IOException
{
xdr
.
xdrEncodeInt
(
ar_status
);
}
public
void
xdrDecode
(
XdrDecodingStream
xdr
)
throws
OncRpcException
,
IOException
{
ar_status
=
xdr
.
xdrDecodeInt
();
}
}
// End of ALLOCATE4res.java
core/src/main/java/org/dcache/nfs/v4/xdr/CB_OFFLOAD4args.java
0 → 100644
View file @
05f51790
/*
* Automatically generated by jrpcgen 1.0.7+ on 4/3/20, 4:01 PM
* jrpcgen is part of the "Remote Tea" ONC/RPC package for Java
* See http://remotetea.sourceforge.net for details
*
* This version of jrpcgen adopted by dCache project
* See http://www.dCache.ORG for details
*/
package
org.dcache.nfs.v4.xdr
;
import
org.dcache.oncrpc4j.rpc.*
;
import
org.dcache.oncrpc4j.rpc.net.*
;
import
org.dcache.oncrpc4j.xdr.*
;
import
java.io.IOException
;
public
class
CB_OFFLOAD4args
implements
XdrAble
{
public
nfs_fh4
coa_fh
;
public
stateid4
coa_stateid
;
public
offload_info4
coa_offload_info
;
public
CB_OFFLOAD4args
()
{
}
public
CB_OFFLOAD4args
(
XdrDecodingStream
xdr
)
throws
OncRpcException
,
IOException
{
xdrDecode
(
xdr
);
}
public
void
xdrEncode
(
XdrEncodingStream
xdr
)
throws
OncRpcException
,
IOException
{
coa_fh
.
xdrEncode
(
xdr
);
coa_stateid
.
xdrEncode
(
xdr
);
coa_offload_info
.
xdrEncode
(
xdr
);
}
public
void
xdrDecode
(
XdrDecodingStream
xdr
)
throws
OncRpcException
,
IOException
{
coa_fh
=
new
nfs_fh4
(
xdr
);
coa_stateid
=
new
stateid4
(
xdr
);
coa_offload_info
=
new
offload_info4
(
xdr
);
}
}
// End of CB_OFFLOAD4args.java
core/src/main/java/org/dcache/nfs/v4/xdr/CB_OFFLOAD4res.java
0 → 100644
View file @
05f51790
/*
* Automatically generated by jrpcgen 1.0.7+ on 4/3/20, 4:01 PM
* jrpcgen is part of the "Remote Tea" ONC/RPC package for Java
* See http://remotetea.sourceforge.net for details
*
* This version of jrpcgen adopted by dCache project
* See http://www.dCache.ORG for details
*/
package
org.dcache.nfs.v4.xdr
;
import
org.dcache.oncrpc4j.rpc.*
;
import
org.dcache.oncrpc4j.rpc.net.*
;
import
org.dcache.oncrpc4j.xdr.*
;
import
java.io.IOException
;
public
class
CB_OFFLOAD4res
implements
XdrAble
{
public
int
cor_status
;
public
CB_OFFLOAD4res
()
{
}
public
CB_OFFLOAD4res
(
XdrDecodingStream
xdr
)
throws
OncRpcException
,
IOException
{
xdrDecode
(
xdr
);
}
public
void
xdrEncode
(
XdrEncodingStream
xdr
)
throws
OncRpcException
,
IOException
{
xdr
.
xdrEncodeInt
(
cor_status
);
}
public
void
xdrDecode
(
XdrDecodingStream
xdr
)
throws
OncRpcException
,
IOException
{
cor_status
=
xdr
.
xdrDecodeInt
();
}
}
// End of CB_OFFLOAD4res.java
core/src/main/java/org/dcache/nfs/v4/xdr/CLONE4args.java
0 → 100644
View file @
05f51790
/*
* Automatically generated by jrpcgen 1.0.7+ on 4/3/20, 4:01 PM
* jrpcgen is part of the "Remote Tea" ONC/RPC package for Java
* See http://remotetea.sourceforge.net for details
*
* This version of jrpcgen adopted by dCache project
* See http://www.dCache.ORG for details
*/
package
org.dcache.nfs.v4.xdr
;
import
org.dcache.oncrpc4j.rpc.*
;
import
org.dcache.oncrpc4j.rpc.net.*
;
import
org.dcache.oncrpc4j.xdr.*
;
import
java.io.IOException
;
public
class
CLONE4args
implements
XdrAble
{
public
stateid4
cl_src_stateid
;
public
stateid4
cl_dst_stateid
;
public
offset4
cl_src_offset
;
public
offset4
cl_dst_offset
;
public
length4
cl_count
;
public
CLONE4args
()
{
}
public
CLONE4args
(
XdrDecodingStream
xdr
)
throws
OncRpcException
,
IOException
{
xdrDecode
(
xdr
);
}
public
void
xdrEncode
(
XdrEncodingStream
xdr
)
throws
OncRpcException
,
IOException
{
cl_src_stateid
.
xdrEncode
(
xdr
);
cl_dst_stateid
.
xdrEncode
(
xdr
);
cl_src_offset
.
xdrEncode
(
xdr
);
cl_dst_offset
.
xdrEncode
(
xdr
);
cl_count
.
xdrEncode
(
xdr
);
}
public
void
xdrDecode
(
XdrDecodingStream
xdr
)
throws
OncRpcException
,
IOException
{
cl_src_stateid
=
new
stateid4
(
xdr
);
cl_dst_stateid
=
new
stateid4
(
xdr
);
cl_src_offset
=
new
offset4
(
xdr
);
cl_dst_offset
=
new
offset4
(
xdr
);
cl_count
=
new
length4
(
xdr
);
}
}
// End of CLONE4args.java
core/src/main/java/org/dcache/nfs/v4/xdr/CLONE4res.java
0 → 100644
View file @
05f51790
/*
* Automatically generated by jrpcgen 1.0.7+ on 4/3/20, 4:01 PM
* jrpcgen is part of the "Remote Tea" ONC/RPC package for Java
* See http://remotetea.sourceforge.net for details
*
* This version of jrpcgen adopted by dCache project
* See http://www.dCache.ORG for details
*/
package
org.dcache.nfs.v4.xdr
;
import
org.dcache.oncrpc4j.rpc.*
;
import
org.dcache.oncrpc4j.rpc.net.*
;
import
org.dcache.oncrpc4j.xdr.*
;
import
java.io.IOException
;
public
class
CLONE4res
implements
XdrAble
{
public
int
cl_status
;
public
CLONE4res
()
{
}
public
CLONE4res
(
XdrDecodingStream
xdr
)
throws
OncRpcException
,
IOException
{
xdrDecode
(
xdr
);
}
public
void
xdrEncode
(
XdrEncodingStream
xdr
)
throws
OncRpcException
,
IOException
{
xdr
.
xdrEncodeInt
(
cl_status
);
}
public
void
xdrDecode
(
XdrDecodingStream
xdr
)
throws
OncRpcException
,
IOException
{
cl_status
=
xdr
.
xdrDecodeInt
();
}
}
// End of CLONE4res.java
core/src/main/java/org/dcache/nfs/v4/xdr/COPY4args.java
0 → 100644
View file @
05f51790
/*
* Automatically generated by jrpcgen 1.0.7+ on 4/3/20, 4:01 PM
* jrpcgen is part of the "Remote Tea" ONC/RPC package for Java
* See http://remotetea.sourceforge.net for details
*
* This version of jrpcgen adopted by dCache project
* See http://www.dCache.ORG for details
*/
package
org.dcache.nfs.v4.xdr
;
import
org.dcache.oncrpc4j.rpc.*
;
import
org.dcache.oncrpc4j.rpc.net.*
;
import
org.dcache.oncrpc4j.xdr.*
;
import
java.io.IOException
;
public
class
COPY4args
implements
XdrAble
{
public
stateid4
ca_src_stateid
;
public
stateid4
ca_dst_stateid
;
public
offset4
ca_src_offset
;
public
offset4
ca_dst_offset
;
public
length4
ca_count
;
public
boolean
ca_consecutive
;
public
boolean
ca_synchronous
;
public
netloc4
[]
ca_source_server
;
public
COPY4args
()
{
}
public
COPY4args
(
XdrDecodingStream
xdr
)
throws
OncRpcException
,
IOException
{
xdrDecode
(
xdr
);
}
public
void
xdrEncode
(
XdrEncodingStream
xdr
)
throws
OncRpcException
,
IOException
{
ca_src_stateid
.
xdrEncode
(
xdr
);
ca_dst_stateid
.
xdrEncode
(
xdr
);
ca_src_offset
.
xdrEncode
(
xdr
);
ca_dst_offset
.
xdrEncode
(
xdr
);
ca_count
.
xdrEncode
(
xdr
);
xdr
.
xdrEncodeBoolean
(
ca_consecutive
);
xdr
.
xdrEncodeBoolean
(
ca_synchronous
);
{
int
$size
=
ca_source_server
.
length
;
xdr
.
xdrEncodeInt
(
$size
);
for
(
int
$idx
=
0
;
$idx
<
$size
;
++
$idx
)
{
ca_source_server
[
$idx
].
xdrEncode
(
xdr
);
}
}
}
public
void
xdrDecode
(
XdrDecodingStream
xdr
)
throws
OncRpcException
,
IOException
{
ca_src_stateid
=
new
stateid4
(
xdr
);
ca_dst_stateid
=
new
stateid4
(
xdr
);
ca_src_offset
=
new
offset4
(
xdr
);
ca_dst_offset
=
new
offset4
(
xdr
);
ca_count
=
new
length4
(
xdr
);
ca_consecutive
=
xdr
.
xdrDecodeBoolean
();
ca_synchronous
=
xdr
.
xdrDecodeBoolean
();
{
int
$size
=
xdr
.
xdrDecodeInt
();
ca_source_server
=
new
netloc4
[
$size
];
for
(
int
$idx
=
0
;
$idx
<
$size
;
++
$idx
)
{
ca_source_server
[
$idx
]
=
new
netloc4
(
xdr
);
}
}
}
}
// End of COPY4args.java
core/src/main/java/org/dcache/nfs/v4/xdr/COPY4res.java
0 → 100644
View file @
05f51790
/*
* Automatically generated by jrpcgen 1.0.7+ on 4/3/20, 4:01 PM
* jrpcgen is part of the "Remote Tea" ONC/RPC package for Java
* See http://remotetea.sourceforge.net for details
*
* This version of jrpcgen adopted by dCache project
* 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.*
;
import
java.io.IOException
;
public
class
COPY4res
implements
XdrAble
{
public
int
cr_status
;
public
COPY4resok
cr_resok4
;
public
copy_requirements4
cr_requirements
;
public
COPY4res
()
{
}
public
COPY4res
(
XdrDecodingStream
xdr
)
throws
OncRpcException
,
IOException
{
xdrDecode
(
xdr
);
}
public
void
xdrEncode
(
XdrEncodingStream
xdr
)
throws
OncRpcException
,
IOException
{
xdr
.
xdrEncodeInt
(
cr_status
);
switch
(
cr_status
)
{
case
nfsstat
.
NFS_OK
:
cr_resok4
.
xdrEncode
(
xdr
);
break
;
case
nfsstat
.
NFS4ERR_OFFLOAD_NO_REQS
:
cr_requirements
.
xdrEncode
(
xdr
);
break
;
default
:
break
;
}
}
public
void
xdrDecode
(
XdrDecodingStream
xdr
)
throws
OncRpcException
,
IOException
{
cr_status
=
xdr
.
xdrDecodeInt
();
switch
(
cr_status
)
{
case
nfsstat
.
NFS_OK
:
cr_resok4
=
new
COPY4resok
(
xdr
);
break
;
case
nfsstat
.
NFS4ERR_OFFLOAD_NO_REQS
:
cr_requirements
=
new
copy_requirements4
(
xdr
);
break
;
default
:
break
;
}
}
}
// End of COPY4res.java
core/src/main/java/org/dcache/nfs/v4/xdr/COPY4resok.java
0 → 100644
View file @
05f51790
/*
* Automatically generated by jrpcgen 1.0.7+ on 4/3/20, 4:01 PM
* jrpcgen is part of the "Remote Tea" ONC/RPC package for Java
* See http://remotetea.sourceforge.net for details
*
* This version of jrpcgen adopted by dCache project
* See http://www.dCache.ORG for details
*/
package
org.dcache.nfs.v4.xdr
;
import
org.dcache.oncrpc4j.rpc.*
;
import
org.dcache.oncrpc4j.rpc.net.*
;
import
org.dcache.oncrpc4j.xdr.*
;
import
java.io.IOException
;
public
class
COPY4resok
implements
XdrAble
{
public
write_response4
cr_response
;
public
copy_requirements4
cr_requirements
;
public
COPY4resok
()
{
}
public
COPY4resok
(
XdrDecodingStream
xdr
)
throws
OncRpcException
,
IOException
{
xdrDecode
(
xdr
);
}
public
void
xdrEncode
(
XdrEncodingStream
xdr
)
throws
OncRpcException
,
IOException
{
cr_response
.
xdrEncode
(
xdr
);
cr_requirements
.
xdrEncode
(
xdr
);
}
public
void
xdrDecode
(
XdrDecodingStream
xdr
)
throws
OncRpcException
,
IOException
{
cr_response
=
new
write_response4
(
xdr
);
cr_requirements
=
new
copy_requirements4
(
xdr
);
}
}
// End of COPY4resok.java
core/src/main/java/org/dcache/nfs/v4/xdr/COPY_NOTIFY4args.java
0 → 100644
View file @
05f51790
/*
* Automatically generated by jrpcgen 1.0.7+ on 4/3/20, 4:01 PM
* jrpcgen is part of the "Remote Tea" ONC/RPC package for Java
* See http://remotetea.sourceforge.net for details
*
* This version of jrpcgen adopted by dCache project
* See http://www.dCache.ORG for details
*/
package
org.dcache.nfs.v4.xdr
;
import
org.dcache.oncrpc4j.rpc.*
;
import
org.dcache.oncrpc4j.rpc.net.*
;
import
org.dcache.oncrpc4j.xdr.*
;
import
java.io.IOException
;
public
class
COPY_NOTIFY4args
implements
XdrAble
{
public
stateid4
cna_src_stateid
;
public
netloc4
cna_destination_server
;
public
COPY_NOTIFY4args
()
{
}
public
COPY_NOTIFY4args
(
XdrDecodingStream
xdr
)
throws
OncRpcException
,
IOException
{
xdrDecode
(
xdr
);
}
public
void
xdrEncode
(
XdrEncodingStream
xdr
)
throws
OncRpcException
,
IOException
{
cna_src_stateid
.
xdrEncode
(
xdr
);
cna_destination_server
.
xdrEncode
(
xdr
);
}
public
void
xdrDecode
(
XdrDecodingStream
xdr
)
throws
OncRpcException
,
IOException
{
cna_src_stateid
=
new
stateid4
(
xdr
);
cna_destination_server
=
new
netloc4
(
xdr
);
}
}
// End of COPY_NOTIFY4args.java
core/src/main/java/org/dcache/nfs/v4/xdr/COPY_NOTIFY4res.java
0 → 100644
View file @
05f51790
/*
* Automatically generated by jrpcgen 1.0.7+ on 4/3/20, 4:01 PM
* jrpcgen is part of the "Remote Tea" ONC/RPC package for Java
* See http://remotetea.sourceforge.net for details
*
* This version of jrpcgen adopted by dCache project
* 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.*
;
import
java.io.IOException
;
public
class
COPY_NOTIFY4res
implements
XdrAble
{
public
int
cnr_status
;
public
COPY_NOTIFY4resok
resok4
;
public
COPY_NOTIFY4res
()
{
}
public
COPY_NOTIFY4res
(
XdrDecodingStream
xdr
)
throws
OncRpcException
,
IOException
{
xdrDecode
(
xdr
);
}
public
void
xdrEncode
(
XdrEncodingStream
xdr
)
throws
OncRpcException
,
IOException
{
xdr
.
xdrEncodeInt
(
cnr_status
);
switch
(
cnr_status
)
{
case
nfsstat
.
NFS_OK
:
resok4
.
xdrEncode
(
xdr
);
break
;
default
:
break
;
}
}
public
void
xdrDecode
(
XdrDecodingStream
xdr
)
throws
OncRpcException
,
IOException
{
cnr_status
=
xdr
.
xdrDecodeInt
();
switch
(
cnr_status
)
{
case
nfsstat
.
NFS_OK
:
resok4
=
new
COPY_NOTIFY4resok
(
xdr
);
break
;
default
:
break
;
}
}
}
// End of COPY_NOTIFY4res.java
core/src/main/java/org/dcache/nfs/v4/xdr/COPY_NOTIFY4resok.java
0 → 100644
View file @
05f51790
/*
* Automatically generated by jrpcgen 1.0.7+ on 4/3/20, 4:01 PM
* jrpcgen is part of the "Remote Tea" ONC/RPC package for Java
* See http://remotetea.sourceforge.net for details
*
* This version of jrpcgen adopted by dCache project
* See http://www.dCache.ORG for details
*/
package
org.dcache.nfs.v4.xdr
;
import
org.dcache.oncrpc4j.rpc.*
;
import
org.dcache.oncrpc4j.rpc.net.*
;
import
org.dcache.oncrpc4j.xdr.*
;
import
java.io.IOException
;
public
class
COPY_NOTIFY4resok
implements
XdrAble
{
public
nfstime4
cnr_lease_time
;
public
stateid4
cnr_stateid
;
public
netloc4
[]
cnr_source_server
;
public
COPY_NOTIFY4resok
()
{
}
public
COPY_NOTIFY4resok
(
XdrDecodingStream
xdr
)
throws
OncRpcException
,
IOException
{
xdrDecode
(
xdr
);
}
public
void
xdrEncode
(
XdrEncodingStream
xdr
)
throws
OncRpcException
,
IOException
{
cnr_lease_time
.
xdrEncode
(
xdr
);
cnr_stateid
.
xdrEncode
(
xdr
);
{
int
$size
=
cnr_source_server
.
length
;
xdr
.
xdrEncodeInt
(
$size
);
for
(
int
$idx
=
0
;
$idx
<
$size
;
++
$idx
)
{
cnr_source_server
[
$idx
].
xdrEncode
(
xdr
);
}
}
}
public
void
xdrDecode
(
XdrDecodingStream
xdr
)
throws
OncRpcException
,
IOException
{
cnr_lease_time
=
new
nfstime4
(
xdr
);
cnr_stateid
=
new
stateid4
(
xdr
);
{
int
$size
=
xdr
.
xdrDecodeInt
();
cnr_source_server
=
new
netloc4
[
$size
];
for
(
int
$idx
=
0
;
$idx
<
$size
;
++
$idx
)
{
cnr_source_server
[
$idx
]
=
new
netloc4
(
xdr
);
}
}
}
}
// End of COPY_NOTIFY4resok.java
core/src/main/java/org/dcache/nfs/v4/xdr/DEALLOCATE4args.java
0 → 100644
View file @
05f51790
/*
* Automatically generated by jrpcgen 1.0.7+ on 4/3/20, 4:01 PM
* jrpcgen is part of the "Remote Tea" ONC/RPC package for Java
* See http://remotetea.sourceforge.net for details
*
* This version of jrpcgen adopted by dCache project
* See http://www.dCache.ORG for details
*/
package
org.dcache.nfs.v4.xdr
;
import
org.dcache.oncrpc4j.rpc.*
;
import
org.dcache.oncrpc4j.rpc.net.*
;
import
org.dcache.oncrpc4j.xdr.*
;
import
java.io.IOException
;
public
class
DEALLOCATE4args
implements
XdrAble
{
public
stateid4
da_stateid
;
public
offset4
da_offset
;
public
length4
da_length
;
public
DEALLOCATE4args
()
{
}
public
DEALLOCATE4args
(
XdrDecodingStream
xdr
)
throws
OncRpcException
,
IOException
{
xdrDecode
(
xdr
);
}
public
void
xdrEncode
(
XdrEncodingStream
xdr
)
throws
OncRpcException
,
IOException
{
da_stateid
.
xdrEncode
(
xdr
);
da_offset
.
xdrEncode
(
xdr
);
da_length
.
xdrEncode
(
xdr
);
}
public
void
xdrDecode
(
XdrDecodingStream
xdr
)
throws
OncRpcException
,
IOException
{