Skip to content
GitLab
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
66115a7a
Commit
66115a7a
authored
Jan 06, 2012
by
Tigran Mkrtchyan
☕
Browse files
nfsv41: set max IO size to rpc packet size
parent
83927d32
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/org/dcache/chimera/nfs/v4/NFSv4Defaults.java
View file @
66115a7a
...
...
@@ -17,12 +17,18 @@
package
org.dcache.chimera.nfs.v4
;
import
org.dcache.xdr.Xdr
;
public
interface
NFSv4Defaults
{
public
static
final
int
NFS4_LEASE_TIME
=
90
;
public
final
static
int
NFS4_MAXFILENAME
=
255
;
// maximal read/write buffer size
public
static
final
long
NFS4_MAXIOBUFFERSIZE
=
32768
;
/**
* maximal read/write buffer size. Set as maximal rpc packet size
* minus 4k RPC overhead.
*/
public
static
final
long
NFS4_MAXIOBUFFERSIZE
=
Xdr
.
MAX_XDR_SIZE
-
4096
;
// theoretically, there is no limit on file size
public
final
static
long
NFS4_MAXFILESIZE
=
Long
.
MAX_VALUE
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment