| Modifier and Type | Field and Description |
|---|---|
static long |
ACCESS3_DELETE
Delete an existing directory entry.
|
static long |
ACCESS3_EXECUTE
Execute file (no meaning for a directory).
|
static long |
ACCESS3_EXTEND
Write new data or add directory entries.
|
static long |
ACCESS3_LOOKUP
Look up a name in a directory (no meaning for non-directory objects).
|
static long |
ACCESS3_MODIFY
Rewrite existing file data or modify existing directory entries.
|
static long |
ACCESS3_READ
Read data from file or read a directory.
|
static int |
MOUNTPROG
Program number for Mount calls
|
static int |
NFSPROC3_ACCESS
NFS version 3 procedure number.
|
static int |
NFSPROC3_COMMIT
NFS version 3 procedure number.
|
static int |
NFSPROC3_CREATE
NFS version 3 procedure number.
|
static int |
NFSPROC3_FSINFO
NFS version 3 procedure number.
|
static int |
NFSPROC3_FSSTAT
NFS version 3 procedure number.
|
static int |
NFSPROC3_GETATTR
NFS version 3 procedure number.
|
static int |
NFSPROC3_LINK
NFS version 3 procedure number.
|
static int |
NFSPROC3_LOOKUP
NFS version 3 procedure number.
|
static int |
NFSPROC3_MKDIR
NFS version 3 procedure number.
|
static int |
NFSPROC3_MKNOD
NFS version 3 procedure number.
|
static int |
NFSPROC3_NULL
NFS version 3 procedure number.
|
static int |
NFSPROC3_PATHCONF
NFS version 3 procedure number.
|
static int |
NFSPROC3_READ
NFS version 3 procedure number.
|
static int |
NFSPROC3_READDIR
NFS version 3 procedure number.
|
static int |
NFSPROC3_READDIRPLUS
NFS version 3 procedure number.
|
static int |
NFSPROC3_READLINK
NFS version 3 procedure number.
|
static int |
NFSPROC3_REMOVE
NFS version 3 procedure number.
|
static int |
NFSPROC3_RENAME
NFS version 3 procedure number.
|
static int |
NFSPROC3_RMDIR
NFS version 3 procedure number.
|
static int |
NFSPROC3_SETATTR
NFS version 3 procedure number.
|
static int |
NFSPROC3_SYMLINK
NFS version 3 procedure number.
|
static int |
NFSPROC3_WRITE
NFS version 3 procedure number.
|
static int |
RPC_PROGRAM
Program number for Nfs calls
|
| Modifier and Type | Method and Description |
|---|---|
void |
disableSudo()
Return to the default Credential.
|
void |
enableSudo(int uid,
int gid)
Use a custom Credential.
|
NfsAccessResponse |
getAccess(NfsAccessRequest request)
Bare implementation of the NFS RPC call.
|
NfsGetAttrResponse |
getAttr(NfsGetAttrRequest request)
Bare implementation of the NFS RPC call.
|
Credential |
getCredential() |
java.lang.String |
getExportedPath() |
NfsFsInfoResponse |
getFsInfo(NfsFsInfoRequest request)
Bare implementation of the NFS RPC call.
|
NfsFsStatResponse |
getFsStat(NfsFsStatRequest request)
Bare implementation of the NFS RPC call.
|
NfsLookupResponse |
getLookup(NfsLookupRequest request)
Bare implementation of the NFS RPC call.
|
NfsFsInfo |
getNfsFsInfo()
Procedure FSINFO retrieves nonvolatile file system state information and
general information about the NFS version 3 protocol server
implementation, as specified by RFC 1813
(https://tools.ietf.org/html/rfc1813), using the root handle for the
exported filesystem.
|
NfsFsStat |
getNfsFsStat()
Procedure FSSTAT retrieves volatile file system state information, as
specified by RFC 1813 (https://tools.ietf.org/html/rfc1813), using the
root handle for the exported filesystem.
|
NfsPathconfResponse |
getPathconf(NfsPathconfRequest request)
Bare implementation of the NFS RPC call.
|
int |
getPort() |
NfsReadResponse |
getRead(NfsReadRequest request,
byte[] bytes,
int position)
Bare implementation of the NFS RPC call.
|
NfsReaddirResponse |
getReaddir(NfsReaddirRequest request)
Bare implementation of the NFS RPC call.
|
NfsReaddirplusResponse |
getReaddirplus(NfsReaddirplusRequest request)
Bare implementation of the NFS RPC call.
|
NfsReadlinkResponse |
getReadlink(NfsReadlinkRequest request)
Bare implementation of the NFS RPC call.
|
byte[] |
getRootFileHandle() |
java.lang.String |
getServer() |
NfsAccessRequest |
makeAccessRequest(byte[] fileHandle,
long accessToCheck)
Creates the request, as specified by RFC 1813
(https://tools.ietf.org/html/rfc1813).
|
NfsCommitRequest |
makeCommitRequest(byte[] fileHandle,
long offsetToCommit,
int dataSizeToCommit)
Convenience method for creating the request, as specified by RFC 1813
(https://tools.ietf.org/html/rfc1813).
|
NfsCreateRequest |
makeCreateRequest(NfsCreateMode createMode,
byte[] parentDirectoryFileHandle,
java.lang.String name,
NfsSetAttributes attributes,
byte[] verifier)
Convenience method for creating the request, as specified by RFC 1813
(https://tools.ietf.org/html/rfc1813).
|
NfsFsInfoRequest |
makeFsInfoRequest()
Convenience method for creating the request, as specified by RFC 1813
(https://tools.ietf.org/html/rfc1813).
|
NfsFsInfoRequest |
makeFsInfoRequest(byte[] fileHandle)
Convenience method for creating the request, as specified by RFC 1813
(https://tools.ietf.org/html/rfc1813).
|
NfsFsStatRequest |
makeFsStatRequest()
Convenience method for creating the request, as specified by RFC 1813
(https://tools.ietf.org/html/rfc1813).
|
NfsFsStatRequest |
makeFsStatRequest(byte[] fileHandle)
Convenience method for creating the request, as specified by RFC 1813
(https://tools.ietf.org/html/rfc1813).
|
NfsGetAttrRequest |
makeGetAttrRequest(byte[] fileHandle)
Convenience method for creating the request, as specified by RFC 1813
(https://tools.ietf.org/html/rfc1813).
|
NfsLinkRequest |
makeLinkRequest(byte[] fileHandle,
byte[] parentDirectoryFileHandle,
java.lang.String name)
Convenience method for creating the request, as specified by RFC 1813
(https://tools.ietf.org/html/rfc1813).
|
NfsLookupRequest |
makeLookupRequest(byte[] fileHandle,
java.lang.String name)
Convenience method for creating the request, as specified by RFC 1813
(https://tools.ietf.org/html/rfc1813).
|
NfsMkdirRequest |
makeMkdirRequest(byte[] fileHandle,
java.lang.String name,
NfsSetAttributes attributes)
Convenience method for creating the request, as specified by RFC 1813
(https://tools.ietf.org/html/rfc1813).
|
NfsMknodRequest |
makeMknodRequest(byte[] fileHandle,
java.lang.String name,
NfsType type,
NfsSetAttributes attributes,
long[] rdev)
Convenience method for creating the request, as specified by RFC 1813
(https://tools.ietf.org/html/rfc1813).
|
NfsPathconfRequest |
makePathconfRequest(byte[] fileHandle)
Convenience method for creating the request, as specified by RFC 1813
(https://tools.ietf.org/html/rfc1813).
|
NfsReaddirplusRequest |
makeReaddirplusRequest(byte[] fileHandle,
long cookie,
long cookieverf,
int dircount,
int maxcount)
Convenience method for creating the request, as specified by RFC 1813
(https://tools.ietf.org/html/rfc1813).
|
NfsReaddirRequest |
makeReaddirRequest(byte[] fileHandle,
long cookie,
long cookieverf,
int count)
Convenience method for creating the request, as specified by RFC 1813
(https://tools.ietf.org/html/rfc1813).
|
NfsReadlinkRequest |
makeReadlinkRequest(byte[] fileHandle)
Convenience method for creating the request, as specified by RFC 1813
(https://tools.ietf.org/html/rfc1813).
|
NfsReadRequest |
makeReadRequest(byte[] fileHandle,
long offset,
int size)
Convenience method for creating the request, as specified by RFC 1813
(https://tools.ietf.org/html/rfc1813).
|
NfsRemoveRequest |
makeRemoveRequest(byte[] fileHandle,
java.lang.String name)
Convenience method for creating the request, as specified by RFC 1813
(https://tools.ietf.org/html/rfc1813).
|
NfsRenameRequest |
makeRenameRequest(byte[] fileHandle,
java.lang.String name,
byte[] toFileHandle,
java.lang.String toName)
Convenience method for creating the request, as specified by RFC 1813
(https://tools.ietf.org/html/rfc1813).
|
NfsRmdirRequest |
makeRmdirRequest(byte[] fileHandle,
java.lang.String name)
Convenience method for creating the request, as specified by RFC 1813
(https://tools.ietf.org/html/rfc1813).
|
NfsSetAttrRequest |
makeSetAttrRequest(byte[] fileHandle,
NfsSetAttributes attributes,
NfsTime guardTime)
Convenience method for creating the request, as specified by RFC 1813
(https://tools.ietf.org/html/rfc1813).
|
NfsSymlinkRequest |
makeSymlinkRequest(java.lang.String symbolicLinkData,
byte[] fileHandle,
java.lang.String name,
NfsSetAttributes attributes)
Convenience method for creating the request, as specified by RFC 1813
(https://tools.ietf.org/html/rfc1813).
|
NfsWriteRequest |
makeWriteRequest(byte[] fileHandle,
long offset,
java.util.List<java.nio.ByteBuffer> payload,
int syncType)
Convenience method for creating the request, as specified by RFC 1813
(https://tools.ietf.org/html/rfc1813).
|
F |
newFile(java.lang.String path)
Convenience method to create an nfs file from this client and the path.
|
Xdr |
nullCall()
Procedure NULL does not do any work.
|
NfsCommitResponse |
sendCommit(NfsCommitRequest request)
Bare implementation of the NFS RPC call.
|
NfsCreateResponse |
sendCreate(NfsCreateRequest request)
Bare implementation of the NFS RPC call.
|
NfsLinkResponse |
sendLink(NfsLinkRequest request)
Bare implementation of the NFS RPC call.
|
NfsMkdirResponse |
sendMkdir(NfsMkdirRequest request)
Bare implementation of the NFS RPC call.
|
NfsMknodResponse |
sendMknod(NfsMknodRequest request)
Bare implementation of the NFS RPC call.
|
NfsRemoveResponse |
sendRemove(NfsRemoveRequest request)
Bare implementation of the NFS RPC call.
|
NfsRenameResponse |
sendRename(NfsRenameRequest request)
Bare implementation of the NFS RPC call.
|
NfsRmdirResponse |
sendRmdir(NfsRmdirRequest request)
Bare implementation of the NFS RPC call.
|
NfsSymlinkResponse |
sendSymlink(NfsSymlinkRequest request)
Bare implementation of the NFS RPC call.
|
NfsWriteResponse |
sendWrite(NfsWriteRequest request)
Bare implementation of the NFS RPC call.
|
NfsSetAttrResponse |
setAttr(NfsSetAttrRequest request)
Bare implementation of the NFS RPC call.
|
NfsAccessResponse |
wrapped_getAccess(NfsAccessRequest request)
Implementation of the NFS RPC call, wrapped to include repeated attempts,
error checking, and logging.
|
NfsGetAttrResponse |
wrapped_getAttr(NfsGetAttrRequest request)
Implementation of the NFS RPC call, wrapped to include repeated attempts,
error checking, and logging.
|
NfsFsInfoResponse |
wrapped_getFsInfo(NfsFsInfoRequest request)
Implementation of the NFS RPC call, wrapped to include repeated attempts,
error checking, and logging.
|
NfsFsStatResponse |
wrapped_getFsStat(NfsFsStatRequest request)
Implementation of the NFS RPC call, wrapped to include repeated attempts,
error checking, and logging.
|
NfsLookupResponse |
wrapped_getLookup(NfsLookupRequest request)
Implementation of the NFS RPC call, wrapped to include repeated attempts,
error checking, and logging.
|
NfsPathconfResponse |
wrapped_getPathconf(NfsPathconfRequest request)
Implementation of the NFS RPC call, wrapped to include repeated attempts,
error checking, and logging.
|
NfsReadResponse |
wrapped_getRead(NfsReadRequest request,
byte[] bytes,
int position)
Implementation of the NFS RPC call, wrapped to include repeated attempts,
error checking, and logging.
|
NfsReaddirResponse |
wrapped_getReaddir(NfsReaddirRequest request)
Implementation of the NFS RPC call, wrapped to include repeated attempts,
error checking, and logging.
|
NfsReaddirResponse |
wrapped_getReaddir(NfsReaddirRequest request,
java.util.List<NfsDirectoryEntry> entries)
Implementation of the NFS RPC call, wrapped to include repeated attempts,
error checking, and logging.
|
NfsReaddirplusResponse |
wrapped_getReaddirplus(NfsReaddirplusRequest request)
Implementation of the NFS RPC call, wrapped to include repeated attempts,
error checking, and logging.
|
NfsReaddirplusResponse |
wrapped_getReaddirplus(NfsReaddirplusRequest request,
java.util.List<NfsDirectoryPlusEntry> entries)
Implementation of the NFS RPC call, wrapped to include repeated attempts,
error checking, and logging.
|
NfsReadlinkResponse |
wrapped_getReadlink(NfsReadlinkRequest request)
Implementation of the NFS RPC call, wrapped to include repeated attempts,
error checking, and logging.
|
NfsCommitResponse |
wrapped_sendCommit(NfsCommitRequest request)
Implementation of the NFS RPC call, wrapped to include repeated attempts,
error checking, and logging.
|
NfsCreateResponse |
wrapped_sendCreate(NfsCreateRequest request)
Implementation of the NFS RPC call, wrapped to include repeated attempts,
error checking, and logging.
|
NfsLinkResponse |
wrapped_sendLink(NfsLinkRequest request)
Implementation of the NFS RPC call, wrapped to include repeated attempts,
error checking, and logging.
|
NfsMkdirResponse |
wrapped_sendMkdir(NfsMkdirRequest request)
Implementation of the NFS RPC call, wrapped to include repeated attempts,
error checking, and logging.
|
NfsMknodResponse |
wrapped_sendMknod(NfsMknodRequest request)
Implementation of the NFS RPC call, wrapped to include repeated attempts,
error checking, and logging.
|
NfsRemoveResponse |
wrapped_sendRemove(NfsRemoveRequest request)
Implementation of the NFS RPC call, wrapped to include repeated attempts,
error checking, and logging.
|
NfsRenameResponse |
wrapped_sendRename(NfsRenameRequest request)
Implementation of the NFS RPC call, wrapped to include repeated attempts,
error checking, and logging.
|
NfsRmdirResponse |
wrapped_sendRmdir(NfsRmdirRequest request)
Implementation of the NFS RPC call, wrapped to include repeated attempts,
error checking, and logging.
|
NfsSymlinkResponse |
wrapped_sendSymlink(NfsSymlinkRequest request)
Implementation of the NFS RPC call, wrapped to include repeated attempts,
error checking, and logging.
|
NfsWriteResponse |
wrapped_sendWrite(NfsWriteRequest request)
Implementation of the NFS RPC call, wrapped to include repeated attempts,
error checking, and logging.
|
NfsWriteResponse |
wrapped_sendWrite(NfsWriteRequest request,
java.lang.Long verifier)
Implementation of the NFS RPC call, wrapped to include repeated attempts,
error checking, and logging.
|
NfsSetAttrResponse |
wrapped_setAttr(NfsSetAttrRequest request)
Implementation of the NFS RPC call, wrapped to include repeated attempts,
error checking, and logging.
|
static final int RPC_PROGRAM
static final int MOUNTPROG
static final int NFSPROC3_NULL
static final int NFSPROC3_GETATTR
static final int NFSPROC3_SETATTR
static final int NFSPROC3_LOOKUP
static final int NFSPROC3_ACCESS
static final int NFSPROC3_READLINK
static final int NFSPROC3_READ
static final int NFSPROC3_WRITE
static final int NFSPROC3_CREATE
static final int NFSPROC3_MKDIR
static final int NFSPROC3_SYMLINK
static final int NFSPROC3_MKNOD
static final int NFSPROC3_REMOVE
static final int NFSPROC3_RMDIR
static final int NFSPROC3_RENAME
static final int NFSPROC3_LINK
static final int NFSPROC3_READDIR
static final int NFSPROC3_READDIRPLUS
static final int NFSPROC3_FSSTAT
static final int NFSPROC3_FSINFO
static final int NFSPROC3_PATHCONF
static final int NFSPROC3_COMMIT
static final long ACCESS3_READ
static final long ACCESS3_LOOKUP
static final long ACCESS3_MODIFY
static final long ACCESS3_EXTEND
static final long ACCESS3_DELETE
static final long ACCESS3_EXECUTE
void disableSudo()
throws java.io.IOException
java.io.IOExceptionvoid enableSudo(int uid,
int gid)
uid - Unix uidgid - Unix gidCredential getCredential()
java.lang.String getExportedPath()
byte[] getRootFileHandle()
int getPort()
java.lang.String getServer()
F newFile(java.lang.String path) throws java.io.IOException
path - The file's path from the mount point.java.io.IOExceptionXdr nullCall() throws java.io.IOException
java.io.IOExceptionNfsGetAttrRequest makeGetAttrRequest(byte[] fileHandle) throws java.io.FileNotFoundException
Procedure GETATTR retrieves the attributes for a specified file system object. The object is identified by the file handle that the server returned as part of the response from a LOOKUP, CREATE, MKDIR, SYMLINK, MKNOD, or READDIRPLUS procedure (or from the MOUNT service, described elsewhere).
fileHandle - The file handle of an object whose attributes are to be
retrieved.java.io.FileNotFoundExceptionNfsGetAttrResponse getAttr(NfsGetAttrRequest request) throws java.io.IOException
Procedure GETATTR retrieves the attributes for a specified file system object. The object is identified by the file handle that the server returned as part of the response from a LOOKUP, CREATE, MKDIR, SYMLINK, MKNOD, or READDIRPLUS procedure (or from the MOUNT service, described elsewhere).
request - java.io.IOExceptionNfsGetAttrResponse wrapped_getAttr(NfsGetAttrRequest request) throws java.io.IOException
Procedure GETATTR retrieves the attributes for a specified file system object. The object is identified by the file handle that the server returned as part of the response from a LOOKUP, CREATE, MKDIR, SYMLINK, MKNOD, or READDIRPLUS procedure (or from the MOUNT service, described elsewhere).
request - java.io.IOExceptionNfsSetAttrRequest makeSetAttrRequest(byte[] fileHandle, NfsSetAttributes attributes, NfsTime guardTime) throws java.io.FileNotFoundException
Procedure SETATTR changes one or more of the attributes of a file system object on the server.
fileHandle - The file handle for the object.attributes - The attributes to set.guardTime - If guardTime is not null, the server must compare
the value of guardTime to the current ctime of
the object. If the values are different, the server must
preserve the object attributes and must return a status of
NFS3ERR_NOT_SYNC.java.io.FileNotFoundExceptionNfsSetAttrResponse setAttr(NfsSetAttrRequest request) throws java.io.IOException
Procedure SETATTR changes one or more of the attributes of a file system object on the server.
request - java.io.IOExceptionNfsSetAttrResponse wrapped_setAttr(NfsSetAttrRequest request) throws java.io.IOException
Procedure SETATTR changes one or more of the attributes of a file system object on the server.
request - java.io.IOExceptionNfsLookupRequest makeLookupRequest(byte[] fileHandle, java.lang.String name) throws java.io.FileNotFoundException
Procedure LOOKUP searches a directory for a specific name and returns the file handle for the corresponding file system object.
fileHandle - The file handle for the directory to search.name - The filename to be searched for.java.io.FileNotFoundExceptionNfsLookupResponse getLookup(NfsLookupRequest request) throws java.io.IOException
Procedure LOOKUP searches a directory for a specific name and returns the file handle for the corresponding file system object.
request - java.io.IOExceptionNfsLookupResponse wrapped_getLookup(NfsLookupRequest request) throws java.io.IOException
Procedure LOOKUP searches a directory for a specific name and returns the file handle for the corresponding file system object.
request - java.io.IOExceptionNfsAccessRequest makeAccessRequest(byte[] fileHandle, long accessToCheck) throws java.io.FileNotFoundException
Procedure ACCESS determines the access rights that a user, as identified by the credentials in the request, has with respect to a file system object. The client encodes the set of permissions that are to be checked in a bit mask. The server checks the permissions encoded in the bit mask. A status of NFS3_OK is returned along with a bit mask encoded with the permissions that the client is allowed.
The results of this procedure are necessarily advisory in nature. That is, a return status of NFS3_OK and the appropriate bit set in the bit mask does not imply that such access will be allowed to the file system object in the future, as access rights can be revoked by the server at any time.
fileHandle - The file handle for the file system object to which access is
to be checked.accessToCheck - A bit mask of access permissions to check, as specified below.
ACCESS3_READ = 0x0001 - Read data from file or read a directory.
ACCESS3_LOOKUP = 0x0002 - Look up a name in a directory (no meaning for non-directory objects).
ACCESS3_MODIFY = 0x0004 - Rewrite existing file data or modify existing directory entries.
ACCESS3_EXTEND = 0x0008 - Write new data or add directory entries.
ACCESS3_DELETE = 0x0010 - Delete an existing directory entry.
ACCESS3_EXECUTE = 0x0020 - Execute file (no meaning for a directory).
java.io.FileNotFoundExceptionNfsAccessResponse getAccess(NfsAccessRequest request) throws java.io.IOException
Procedure ACCESS determines the access rights that a user, as identified by the credentials in the request, has with respect to a file system object. The client encodes the set of permissions that are to be checked in a bit mask. The server checks the permissions encoded in the bit mask. A status of NFS3_OK is returned along with a bit mask encoded with the permissions that the client is allowed.
The results of this procedure are necessarily advisory in nature. That is, a return status of NFS3_OK and the appropriate bit set in the bit mask does not imply that such access will be allowed to the file system object in the future, as access rights can be revoked by the server at any time.
request - java.io.IOExceptionNfsAccessResponse wrapped_getAccess(NfsAccessRequest request) throws java.io.IOException
Procedure ACCESS determines the access rights that a user, as identified by the credentials in the request, has with respect to a file system object. The client encodes the set of permissions that are to be checked in a bit mask. The server checks the permissions encoded in the bit mask. A status of NFS3_OK is returned along with a bit mask encoded with the permissions that the client is allowed.
The results of this procedure are necessarily advisory in nature. That is, a return status of NFS3_OK and the appropriate bit set in the bit mask does not imply that such access will be allowed to the file system object in the future, as access rights can be revoked by the server at any time.
request - java.io.IOExceptionNfsReadlinkRequest makeReadlinkRequest(byte[] fileHandle) throws java.io.FileNotFoundException
This method reads the data associated with a symbolic link. The data is an ASCII string that is opaque to the server. That is, whether created by the NFS version 3 protocol software from a client or created locally on the server, the data in a symbolic link is not interpreted when created, but is simply stored.
A symbolic link is nominally a pointer to another file. The data is not necessarily interpreted by the server, just stored in the file. It is possible for a client implementation to store a path name that is not meaningful to the server operating system in a symbolic link. A READLINK operation returns the data to the client for interpretation. If different implementations want to share access to symbolic links, then they must agree on the interpretation of the data in the symbolic link.
fileHandle - the fileHandle for the symbolic linkjava.io.FileNotFoundExceptionNfsReadlinkResponse getReadlink(NfsReadlinkRequest request) throws java.io.IOException
This method reads the data associated with a symbolic link. The data is an ASCII string that is opaque to the server. That is, whether created by the NFS version 3 protocol software from a client or created locally on the server, the data in a symbolic link is not interpreted when created, but is simply stored.
A symbolic link is nominally a pointer to another file. The data is not necessarily interpreted by the server, just stored in the file. It is possible for a client implementation to store a path name that is not meaningful to the server operating system in a symbolic link. A READLINK operation returns the data to the client for interpretation. If different implementations want to share access to symbolic links, then they must agree on the interpretation of the data in the symbolic link.
request - java.io.IOExceptionNfsReadlinkResponse wrapped_getReadlink(NfsReadlinkRequest request) throws java.io.IOException
This method reads the data associated with a symbolic link. The data is an ASCII string that is opaque to the server. That is, whether created by the NFS version 3 protocol software from a client or created locally on the server, the data in a symbolic link is not interpreted when created, but is simply stored.
A symbolic link is nominally a pointer to another file. The data is not necessarily interpreted by the server, just stored in the file. It is possible for a client implementation to store a path name that is not meaningful to the server operating system in a symbolic link. A READLINK operation returns the data to the client for interpretation. If different implementations want to share access to symbolic links, then they must agree on the interpretation of the data in the symbolic link.
request - java.io.IOExceptionNfsReadRequest makeReadRequest(byte[] fileHandle, long offset, int size) throws java.io.FileNotFoundException
Procedure READ reads data from a file.
fileHandle - The file handle of the file from which data is to be read.
This must identify a file system object of type, NF3REG.offset - The position within the file at which the read is to begin. An
offset of 0 means to read data starting at the
beginning of the file. If offset is greater than
or equal to the size of the file, the status, NFS3_OK, is
returned with size set to 0 and eof
set to true, subject to access permissions
checking.size - The number of bytes of data that are to be read. If
size is 0, the READ will succeed and return 0
bytes of data, subject to access permissions checking.
size must be less than or equal to the value of
the rtmax field in the FSINFO reply structure for
the file system that contains file. If greater, the server may
return only rtmax bytes, resulting in a short
read.java.io.FileNotFoundExceptionNfsReadResponse getRead(NfsReadRequest request, byte[] bytes, int position) throws java.io.IOException
Procedure READ reads data from a file.
request - bytes - optional externally provided buffer - if not provided, the
method will create a new, empty buffer for receiving the data.position - position to start writing, defaults to 0 if buffer is nulljava.io.IOExceptionNfsReadResponse wrapped_getRead(NfsReadRequest request, byte[] bytes, int position) throws java.io.IOException
Procedure READ reads data from a file.
request - bytes - optional externally provided buffer - if not provided, the
method will create a new, empty buffer for receiving the data.position - position to start writing, defaults to 0 if buffer is nulljava.io.IOExceptionNfsWriteRequest makeWriteRequest(byte[] fileHandle, long offset, java.util.List<java.nio.ByteBuffer> payload, int syncType) throws java.io.FileNotFoundException
Procedure WRITE writes data to a file.
fileHandle - The file handle for the file to which data is to be written.
This must identify a file system object of type, NF3REG.offset - The position within the file at which the write is to begin.
An offset of 0 means to write data starting at the beginning
of the file.payload - The data to be written to the file.syncType - One of the values below.
java.io.FileNotFoundExceptionNfsWriteResponse sendWrite(NfsWriteRequest request) throws java.io.IOException
Procedure WRITE writes data to a file.
request - java.io.IOExceptionNfsWriteResponse wrapped_sendWrite(NfsWriteRequest request) throws java.io.IOException
Procedure WRITE writes data to a file.
request - java.io.IOExceptionNfsWriteResponse wrapped_sendWrite(NfsWriteRequest request, java.lang.Long verifier) throws java.io.IOException
Procedure WRITE writes data to a file.
request - verifier - This is a cookie, previously returned from the server, that
the client can use to determine whether the server has changed
state between a call to WRITE and a subsequent call to either
WRITE or COMMIT.java.io.IOExceptionNfsCreateRequest makeCreateRequest(NfsCreateMode createMode, byte[] parentDirectoryFileHandle, java.lang.String name, NfsSetAttributes attributes, byte[] verifier) throws java.io.FileNotFoundException
Procedure CREATE creates a regular file.
createMode - The instance describing how the file is to be created.
UNCHECKED means that the file should be created without
checking for the existence of a duplicate file in the same
directory. In this case, how.obj_attributes is a sattr3
describing the initial attributes for the file. GUARDED
specifies that the server should check for the presence of a
duplicate file before performing the create and should fail
the request with NFS3ERR_EXIST if a duplicate file exists. If
the file does not exist, the request is performed as described
for UNCHECKED. EXCLUSIVE specifies that the server is to
follow exclusive creation semantics, using the verifier to
ensure exclusive creation of the target. No attributes may be
provided in this case, since the server may use the target
file metadata to store the createverf3 verifier.parentDirectoryFileHandle - The file handle for the directory in which the file is to be
created.name - The name that is to be associated with the created file.attributes - the initial attributes for the new file.verifier - A unique identifier to ensure exclusive creation of the new
file. If no value is provided for exclusive creation, this is
generated.java.io.FileNotFoundExceptionNfsCreateResponse sendCreate(NfsCreateRequest request) throws java.io.IOException
Procedure CREATE creates a regular file.
request - java.io.IOExceptionNfsCreateResponse wrapped_sendCreate(NfsCreateRequest request) throws java.io.IOException
Procedure CREATE creates a regular file.
request - java.io.IOExceptionNfsMkdirRequest makeMkdirRequest(byte[] fileHandle, java.lang.String name, NfsSetAttributes attributes) throws java.io.FileNotFoundException
Procedure MKDIR creates a new subdirectory.
fileHandle - The file handle for the directory in which the subdirectory is
to be created.name - The name that is to be associated with the created
subdirectory.attributes - The initial attributes for the subdirectory.java.io.FileNotFoundExceptionNfsMkdirResponse sendMkdir(NfsMkdirRequest request) throws java.io.IOException
Procedure MKDIR creates a new subdirectory.
request - java.io.IOExceptionNfsMkdirResponse wrapped_sendMkdir(NfsMkdirRequest request) throws java.io.IOException
Procedure MKDIR creates a new subdirectory.
request - java.io.IOExceptionNfsSymlinkRequest makeSymlinkRequest(java.lang.String symbolicLinkData, byte[] fileHandle, java.lang.String name, NfsSetAttributes attributes) throws java.io.FileNotFoundException
Procedure SYMLINK creates a new symbolic link.
symbolicLinkData - The string containing the symbolic link data.fileHandle - The file handle for the directory in which the symbolic link
is to be created.name - The name that is to be associated with the created symbolic
link.attributes - The initial attributes for the symbolic link.java.io.FileNotFoundExceptionNfsSymlinkResponse sendSymlink(NfsSymlinkRequest request) throws java.io.IOException
Procedure SYMLINK creates a new symbolic link.
request - java.io.IOExceptionNfsSymlinkResponse wrapped_sendSymlink(NfsSymlinkRequest request) throws java.io.IOException
Procedure SYMLINK creates a new symbolic link.
request - java.io.IOExceptionNfsMknodRequest makeMknodRequest(byte[] fileHandle, java.lang.String name, NfsType type, NfsSetAttributes attributes, long[] rdev) throws java.io.FileNotFoundException
Procedure MKNOD creates a new special file of the type, type
. Special files can be device files or named pipes.
fileHandle - The file handle for the directory in which the special file is
to be created.name - The name that is to be associated with the created special
file.type - The type of the object to be created.attributes - The initial attributes for the special file.rdev - When creating a character special file (type is
NF3CHR) or a block special file (
type is NF3BLK),
rdev[0] is the major number and
rdev[1] is the minor number.java.io.FileNotFoundExceptionNfsMknodResponse sendMknod(NfsMknodRequest request) throws java.io.IOException
Procedure MKNOD creates a new special file of the type, type
. Special files can be device files or named pipes.
request - java.io.IOExceptionNfsMknodResponse wrapped_sendMknod(NfsMknodRequest request) throws java.io.IOException
Procedure MKNOD creates a new special file of the type, type
. Special files can be device files or named pipes.
request - java.io.IOExceptionNfsRemoveRequest makeRemoveRequest(byte[] fileHandle, java.lang.String name) throws java.io.FileNotFoundException
Procedure REMOVE removes (deletes) an entry from a directory. If the entry in the directory was the last reference to the corresponding file system object, the object may be destroyed.
fileHandle - The file handle for the directory from which the entry is to
be removed.name - The name of the entry to be removed.java.io.FileNotFoundExceptionNfsRemoveResponse sendRemove(NfsRemoveRequest request) throws java.io.IOException
Procedure REMOVE removes (deletes) an entry from a directory. If the entry in the directory was the last reference to the corresponding file system object, the object may be destroyed.
request - java.io.IOExceptionNfsRemoveResponse wrapped_sendRemove(NfsRemoveRequest request) throws java.io.IOException
Procedure REMOVE removes (deletes) an entry from a directory. If the entry in the directory was the last reference to the corresponding file system object, the object may be destroyed.
request - java.io.IOExceptionNfsRmdirRequest makeRmdirRequest(byte[] fileHandle, java.lang.String name) throws java.io.FileNotFoundException
Procedure RMDIR removes (deletes) a subdirectory from a directory. If the directory entry of the subdirectory is the last reference to the subdirectory, the subdirectory may be destroyed.
fileHandle - The file handle for the directory from which the subdirectory
is to be removed.name - The name of the subdirectory to be removed.java.io.FileNotFoundExceptionNfsRmdirResponse sendRmdir(NfsRmdirRequest request) throws java.io.IOException
Procedure RMDIR removes (deletes) a subdirectory from a directory. If the directory entry of the subdirectory is the last reference to the subdirectory, the subdirectory may be destroyed.
request - java.io.IOExceptionNfsRmdirResponse wrapped_sendRmdir(NfsRmdirRequest request) throws java.io.IOException
Procedure RMDIR removes (deletes) a subdirectory from a directory. If the directory entry of the subdirectory is the last reference to the subdirectory, the subdirectory may be destroyed.
request - java.io.IOExceptionNfsRenameRequest makeRenameRequest(byte[] fileHandle, java.lang.String name, byte[] toFileHandle, java.lang.String toName) throws java.io.FileNotFoundException
Procedure RENAME renames the file identified by name in the
directory, fileHandle, to toName in the
directory, toFileHandle. The operation is required to be
atomic to the client. toFileHandle and
fileHandle must reside on the same file system and server.
fileHandle - The file handle for the directory from which the entry is to
be renamedname - The name of the entry that identifies the object to be renamedtoFileHandle - The file handle for the directory to which the object is to be
renamed.toName - The new name for the object.java.io.FileNotFoundExceptionNfsRenameResponse sendRename(NfsRenameRequest request) throws java.io.IOException
Procedure RENAME renames the file identified by name in the
directory, fileHandle, to toName in the
directory, toFileHandle. The operation is required to be
atomic to the client. toFileHandle and
fileHandle must reside on the same file system and server.
request - java.io.IOExceptionNfsRenameResponse wrapped_sendRename(NfsRenameRequest request) throws java.io.IOException
Procedure RENAME renames the file identified by name in the
directory, fileHandle, to toName in the
directory, toFileHandle. The operation is required to be
atomic to the client. toFileHandle and
fileHandle must reside on the same file system and server.
request - java.io.IOExceptionNfsLinkRequest makeLinkRequest(byte[] fileHandle, byte[] parentDirectoryFileHandle, java.lang.String name) throws java.io.FileNotFoundException
Procedure LINK creates a hard link from fileHandle to
name, in the directory,
parentDirectoryFileHandle. fileHandle and
parentDirectoryFileHandle must reside on the same file
system and server.
fileHandle - The file handle for the existing file system object.parentDirectoryFileHandle - The file handle for the directory in which the link is to be
created.name - The name that is to be associated with the created link.java.io.FileNotFoundExceptionNfsLinkResponse sendLink(NfsLinkRequest request) throws java.io.IOException
Procedure LINK creates a hard link from fileHandle to
name, in the directory,
parentDirectoryFileHandle. fileHandle and
parentDirectoryFileHandle must reside on the same file
system and server.
request - java.io.IOExceptionNfsLinkResponse wrapped_sendLink(NfsLinkRequest request) throws java.io.IOException
Procedure LINK creates a hard link from fileHandle to
name, in the directory,
parentDirectoryFileHandle. fileHandle and
parentDirectoryFileHandle must reside on the same file
system and server.
request - java.io.IOExceptionNfsReaddirRequest makeReaddirRequest(byte[] fileHandle, long cookie, long cookieverf, int count) throws java.io.FileNotFoundException
Procedure READDIR retrieves a variable number of entries, in sequence, from a directory and returns the name and file identifier for each, with information to allow the client to request additional directory entries in a subsequent READDIR request.
fileHandle - The file handle for the directory to be read.cookie - This should be set to 0 in the first request to read the
directory. On subsequent requests, it should be a
cookie as returned by the server.cookieverf - This should be set to 0 in the first request to read the
directory. On subsequent requests, it should be a
cookieverf as returned by the server. The
cookieverf must match that returned by the
READDIR in which the cookie was acquired.count - The maximum size of the READDIR3resok structure, in bytes. The
size must include all XDR overhead. The server is free to
return less than count bytes of data.java.io.FileNotFoundExceptionNfsReaddirResponse getReaddir(NfsReaddirRequest request) throws java.io.IOException
Procedure READDIR retrieves a variable number of entries, in sequence, from a directory and returns the name and file identifier for each, with information to allow the client to request additional directory entries in a subsequent READDIR request.
request - java.io.IOExceptionNfsReaddirResponse wrapped_getReaddir(NfsReaddirRequest request) throws java.io.IOException
Procedure READDIR retrieves a variable number of entries, in sequence, from a directory and returns the name and file identifier for each, with information to allow the client to request additional directory entries in a subsequent READDIR request.
request - java.io.IOExceptionNfsReaddirResponse wrapped_getReaddir(NfsReaddirRequest request, java.util.List<NfsDirectoryEntry> entries) throws java.io.IOException
Procedure READDIR retrieves a variable number of entries, in sequence, from a directory and returns the name and file identifier for each, with information to allow the client to request additional directory entries in a subsequent READDIR request.
request - entries - A list of entries to which the returned entries should be
appended.java.io.IOExceptionNfsReaddirplusRequest makeReaddirplusRequest(byte[] fileHandle, long cookie, long cookieverf, int dircount, int maxcount) throws java.io.FileNotFoundException
Procedure READDIRPLUS retrieves a variable number of entries from a file system directory and returns complete information about each along with information to allow the client to request additional directory entries in a subsequent READDIRPLUS. READDIRPLUS differs from READDIR only in the amount of information returned for each entry. In READDIR, each entry returns the filename and the fileid. In READDIRPLUS, each entry returns the name, the fileid, attributes (including the fileid), and file handle.
fileHandle - The file handle for the directory to be read.cookie - This should be set to 0 in the first request to read the
directory. On subsequent requests, it should be a
cookie as returned by the server.cookieverf - This should be set to 0 in the first request to read the
directory. On subsequent requests, it should be a
cookieverf as returned by the server. The
cookieverf must match that returned by the
READDIRPLUS in which the cookie was acquired.dircount - The maximum number of bytes of directory information returned.
This number should not include the size of the attributes and
file handle portions of the result.maxcount - The maximum size of the READDIRPLUS3resok structure, in bytes.
The size must include all XDR overhead. The server is free to
return less than maxcount bytes of data.java.io.FileNotFoundExceptionNfsReaddirplusResponse getReaddirplus(NfsReaddirplusRequest request) throws java.io.IOException
Procedure READDIRPLUS retrieves a variable number of entries from a file system directory and returns complete information about each along with information to allow the client to request additional directory entries in a subsequent READDIRPLUS. READDIRPLUS differs from READDIR only in the amount of information returned for each entry. In READDIR, each entry returns the filename and the fileid. In READDIRPLUS, each entry returns the name, the fileid, attributes (including the fileid), and file handle.
request - java.io.IOExceptionNfsReaddirplusResponse wrapped_getReaddirplus(NfsReaddirplusRequest request) throws java.io.IOException
Procedure READDIRPLUS retrieves a variable number of entries from a file system directory and returns complete information about each along with information to allow the client to request additional directory entries in a subsequent READDIRPLUS. READDIRPLUS differs from READDIR only in the amount of information returned for each entry. In READDIR, each entry returns the filename and the fileid. In READDIRPLUS, each entry returns the name, the fileid, attributes (including the fileid), and file handle.
request - java.io.IOExceptionNfsReaddirplusResponse wrapped_getReaddirplus(NfsReaddirplusRequest request, java.util.List<NfsDirectoryPlusEntry> entries) throws java.io.IOException
Procedure READDIRPLUS retrieves a variable number of entries from a file system directory and returns complete information about each along with information to allow the client to request additional directory entries in a subsequent READDIRPLUS. READDIRPLUS differs from READDIR only in the amount of information returned for each entry. In READDIR, each entry returns the filename and the fileid. In READDIRPLUS, each entry returns the name, the fileid, attributes (including the fileid), and file handle.
request - entries - A list of entries to which the returned entries should be
appended.java.io.IOExceptionNfsFsStat getNfsFsStat() throws java.io.IOException
java.io.IOExceptionNfsFsStatRequest makeFsStatRequest(byte[] fileHandle) throws java.io.FileNotFoundException
Procedure FSSTAT retrieves volatile file system state information.
fileHandle - A file handle identifying a object in the file system. This is
normally a file handle for a mount point for a file system, as
originally obtained from the MOUNT service on the server.java.io.FileNotFoundExceptionNfsFsStatRequest makeFsStatRequest() throws java.io.FileNotFoundException
Procedure FSSTAT retrieves volatile file system state information.
java.io.FileNotFoundExceptionNfsFsStatResponse getFsStat(NfsFsStatRequest request) throws java.io.IOException
Procedure FSSTAT retrieves volatile file system state information.
request - java.io.IOExceptionNfsFsStatResponse wrapped_getFsStat(NfsFsStatRequest request) throws java.io.IOException
Procedure FSSTAT retrieves volatile file system state information.
request - java.io.IOExceptionNfsFsInfo getNfsFsInfo() throws java.io.IOException
java.io.IOExceptionNfsFsInfoRequest makeFsInfoRequest(byte[] fileHandle) throws java.io.FileNotFoundException
Procedure FSINFO retrieves nonvolatile file system state information and general information about the NFS version 3 protocol server implementation.
fileHandle - A file handle identifying a file object. Normal usage is to
provide a file handle for a mount point for a file system, as
originally obtained from the MOUNT service on the server.java.io.FileNotFoundExceptionNfsFsInfoRequest makeFsInfoRequest() throws java.io.FileNotFoundException
Procedure FSINFO retrieves nonvolatile file system state information and general information about the NFS version 3 protocol server implementation.
java.io.FileNotFoundExceptionNfsFsInfoResponse getFsInfo(NfsFsInfoRequest request) throws java.io.IOException
Procedure FSINFO retrieves nonvolatile file system state information and general information about the NFS version 3 protocol server implementation.
request - java.io.IOExceptionNfsFsInfoResponse wrapped_getFsInfo(NfsFsInfoRequest request) throws java.io.IOException
Procedure FSINFO retrieves nonvolatile file system state information and general information about the NFS version 3 protocol server implementation.
request - java.io.IOExceptionNfsPathconfRequest makePathconfRequest(byte[] fileHandle) throws java.io.FileNotFoundException
Procedure PATHCONF retrieves the pathconf information for a file or directory. If the FSF_HOMOGENEOUS bit is set in FSFINFO3resok.properties, the pathconf information will be the same for all files and directories in the exported file system in which this file or directory resides.
fileHandle - The file handle for the file system object.java.io.FileNotFoundExceptionNfsPathconfResponse getPathconf(NfsPathconfRequest request) throws java.io.IOException
Procedure PATHCONF retrieves the pathconf information for a file or directory. If the FSF_HOMOGENEOUS bit is set in FSFINFO3resok.properties, the pathconf information will be the same for all files and directories in the exported file system in which this file or directory resides.
request - java.io.IOExceptionNfsPathconfResponse wrapped_getPathconf(NfsPathconfRequest request) throws java.io.IOException
Procedure PATHCONF retrieves the pathconf information for a file or directory. If the FSF_HOMOGENEOUS bit is set in FSFINFO3resok.properties, the pathconf information will be the same for all files and directories in the exported file system in which this file or directory resides.
request - java.io.IOExceptionNfsCommitRequest makeCommitRequest(byte[] fileHandle, long offsetToCommit, int dataSizeToCommit) throws java.io.FileNotFoundException
Procedure COMMIT forces or flushes data to stable storage that was previously written with a WRITE procedure call with the stable field set to UNSTABLE.
fileHandle - The file handle for the file to which data is to be flushed
(committed). This must identify a file system object of type,
NF3REG.offsetToCommit - The position within the file at which the flush is to begin.
An offset of 0 means to flush data starting at the beginning
of the file.dataSizeToCommit - The number of bytes of data to flush. If count is 0, a flush
from offset to the end of file is done.java.io.FileNotFoundExceptionNfsCommitResponse sendCommit(NfsCommitRequest request) throws java.io.IOException
Procedure COMMIT forces or flushes data to stable storage that was previously written with a WRITE procedure call with the stable field set to UNSTABLE.
request - java.io.IOExceptionNfsCommitResponse wrapped_sendCommit(NfsCommitRequest request) throws java.io.IOException
Procedure COMMIT forces or flushes data to stable storage that was previously written with a WRITE procedure call with the stable field set to UNSTABLE.
request - java.io.IOException