| Modifier and Type | Field and Description |
|---|---|
static int |
MAXIMUM_NFS_REQUEST_SIZE
The maximum size in bytes.
|
static int |
NFS_TIMEOUT
The timeout in seconds.
|
static int |
VERSION
The NFS version number.
|
ACCESS3_DELETE, ACCESS3_EXECUTE, ACCESS3_EXTEND, ACCESS3_LOOKUP, ACCESS3_MODIFY, ACCESS3_READ, MOUNTPROG, NFSPROC3_ACCESS, NFSPROC3_COMMIT, NFSPROC3_CREATE, NFSPROC3_FSINFO, NFSPROC3_FSSTAT, NFSPROC3_GETATTR, NFSPROC3_LINK, NFSPROC3_LOOKUP, NFSPROC3_MKDIR, NFSPROC3_MKNOD, NFSPROC3_NULL, NFSPROC3_PATHCONF, NFSPROC3_READ, NFSPROC3_READDIR, NFSPROC3_READDIRPLUS, NFSPROC3_READLINK, NFSPROC3_REMOVE, NFSPROC3_RENAME, NFSPROC3_RMDIR, NFSPROC3_SETATTR, NFSPROC3_SYMLINK, NFSPROC3_WRITE, RPC_PROGRAM| Constructor and Description |
|---|
Nfs3(java.lang.String absolutePath,
Credential credential,
int maximumRetries)
Convenience constructor
|
Nfs3(java.lang.String absolutePath,
int uid,
int gid,
int maximumRetries)
Convenience constructor
|
Nfs3(java.lang.String server,
java.lang.String exportedPath,
byte[] rootFileHandle,
Credential credential,
int maximumRetries)
Full constructor.
|
Nfs3(java.lang.String server,
java.lang.String exportedPath,
byte[] rootFileHandle,
int maximumRetries)
Convenience constructor
|
Nfs3(java.lang.String server,
java.lang.String exportedPath,
Credential credential,
int maximumRetries)
Convenience constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
disableSudo()
Return to the default Credential.
|
void |
enableSudo(int uid,
int gid)
Use a custom Credential.
|
void |
fsync(java.lang.String path,
byte[] fh,
java.lang.Long verifier) |
Nfs3AccessResponse |
getAccess(NfsAccessRequest request)
Bare implementation of the NFS RPC call.
|
Nfs3GetAttrResponse |
getAttr(NfsGetAttrRequest request)
Bare implementation of the NFS RPC call.
|
Credential |
getCredential() |
java.lang.String |
getExportedPath() |
Nfs3FsInfoResponse |
getFsInfo(NfsFsInfoRequest request)
Bare implementation of the NFS RPC call.
|
Nfs3FsStatResponse |
getFsStat(NfsFsStatRequest request)
Bare implementation of the NFS RPC call.
|
Nfs3LookupResponse |
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.
|
Nfs3PathconfResponse |
getPathconf(NfsPathconfRequest request)
Bare implementation of the NFS RPC call.
|
int |
getPort() |
Nfs3ReadResponse |
getRead(NfsReadRequest request,
byte[] bytes,
int position)
Bare implementation of the NFS RPC call.
|
Nfs3ReaddirResponse |
getReaddir(NfsReaddirRequest request)
Bare implementation of the NFS RPC call.
|
Nfs3ReaddirplusResponse |
getReaddirplus(NfsReaddirplusRequest request)
Bare implementation of the NFS RPC call.
|
Nfs3ReadlinkResponse |
getReadlink(NfsReadlinkRequest request)
Bare implementation of the NFS RPC call.
|
byte[] |
getRootFileHandle() |
java.lang.String |
getServer() |
Nfs3AccessRequest |
makeAccessRequest(byte[] fileHandle,
long accessToCheck)
Creates the request, as specified by RFC 1813
(https://tools.ietf.org/html/rfc1813).
|
Nfs3CommitRequest |
makeCommitRequest(byte[] fileHandle,
long offsetToCommit,
int dataSizeToCommit)
Convenience method for creating the request, as specified by RFC 1813
(https://tools.ietf.org/html/rfc1813).
|
Nfs3CreateRequest |
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).
|
Nfs3FsInfoRequest |
makeFsInfoRequest()
Convenience method for creating the request, as specified by RFC 1813
(https://tools.ietf.org/html/rfc1813).
|
Nfs3FsInfoRequest |
makeFsInfoRequest(byte[] fileHandle)
Convenience method for creating the request, as specified by RFC 1813
(https://tools.ietf.org/html/rfc1813).
|
Nfs3FsStatRequest |
makeFsStatRequest()
Convenience method for creating the request, as specified by RFC 1813
(https://tools.ietf.org/html/rfc1813).
|
Nfs3FsStatRequest |
makeFsStatRequest(byte[] fileHandle)
Convenience method for creating the request, as specified by RFC 1813
(https://tools.ietf.org/html/rfc1813).
|
Nfs3GetAttrRequest |
makeGetAttrRequest(byte[] fileHandle)
Convenience method for creating the request, as specified by RFC 1813
(https://tools.ietf.org/html/rfc1813).
|
Nfs3LinkRequest |
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).
|
Nfs3LookupRequest |
makeLookupRequest(byte[] fileHandle,
java.lang.String name)
Convenience method for creating the request, as specified by RFC 1813
(https://tools.ietf.org/html/rfc1813).
|
Nfs3MkdirRequest |
makeMkdirRequest(byte[] parentDirectoryFileHandle,
java.lang.String name,
NfsSetAttributes attributes)
Convenience method for creating the request, as specified by RFC 1813
(https://tools.ietf.org/html/rfc1813).
|
Nfs3MknodRequest |
makeMknodRequest(byte[] parentDirectoryFileHandle,
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).
|
Nfs3PathconfRequest |
makePathconfRequest(byte[] fileHandle)
Convenience method for creating the request, as specified by RFC 1813
(https://tools.ietf.org/html/rfc1813).
|
NfsReaddirplusRequest |
makeReaddirplusRequest(byte[] directoryFileHandle,
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[] directoryFileHandle,
long cookie,
long cookieverf,
int count)
Convenience method for creating the request, as specified by RFC 1813
(https://tools.ietf.org/html/rfc1813).
|
Nfs3ReadlinkRequest |
makeReadlinkRequest(byte[] fileHandle)
Convenience method for creating the request, as specified by RFC 1813
(https://tools.ietf.org/html/rfc1813).
|
Nfs3ReadRequest |
makeReadRequest(byte[] fileHandle,
long offset,
int size)
Convenience method for creating the request, as specified by RFC 1813
(https://tools.ietf.org/html/rfc1813).
|
Nfs3RemoveRequest |
makeRemoveRequest(byte[] parentDirectoryFileHandle,
java.lang.String name)
Convenience method for creating the request, as specified by RFC 1813
(https://tools.ietf.org/html/rfc1813).
|
Nfs3RenameRequest |
makeRenameRequest(byte[] fromDirectoryFileHandle,
java.lang.String fromName,
byte[] toDirectoryFileHandle,
java.lang.String toName)
Convenience method for creating the request, as specified by RFC 1813
(https://tools.ietf.org/html/rfc1813).
|
Nfs3RmdirRequest |
makeRmdirRequest(byte[] parentDirectoryFileHandle,
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).
|
Nfs3SymlinkRequest |
makeSymlinkRequest(java.lang.String symbolicLinkData,
byte[] parentDirectoryFileHandle,
java.lang.String name,
NfsSetAttributes attributes)
Convenience method for creating the request, as specified by RFC 1813
(https://tools.ietf.org/html/rfc1813).
|
Nfs3WriteRequest |
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).
|
Nfs3File |
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.
|
int |
read(java.lang.String path,
byte[] fileHandle,
long offset,
int length,
byte[] data,
int pos,
org.apache.commons.lang.mutable.MutableBoolean eof)
Read data from a file handle
|
Nfs3CommitResponse |
sendCommit(NfsCommitRequest request)
Bare implementation of the NFS RPC call.
|
Nfs3CreateResponse |
sendCreate(NfsCreateRequest request)
Bare implementation of the NFS RPC call.
|
Nfs3LinkResponse |
sendLink(NfsLinkRequest request)
Bare implementation of the NFS RPC call.
|
Nfs3MkdirResponse |
sendMkdir(NfsMkdirRequest request)
Bare implementation of the NFS RPC call.
|
Nfs3MknodResponse |
sendMknod(NfsMknodRequest request)
Bare implementation of the NFS RPC call.
|
Nfs3RemoveResponse |
sendRemove(NfsRemoveRequest request)
Bare implementation of the NFS RPC call.
|
Nfs3RenameResponse |
sendRename(NfsRenameRequest request)
Bare implementation of the NFS RPC call.
|
Nfs3RmdirResponse |
sendRmdir(NfsRmdirRequest request)
Bare implementation of the NFS RPC call.
|
Nfs3SymlinkResponse |
sendSymlink(NfsSymlinkRequest request)
Bare implementation of the NFS RPC call.
|
Nfs3WriteResponse |
sendWrite(NfsWriteRequest request)
Bare implementation of the NFS RPC call.
|
Nfs3SetAttrResponse |
setAttr(NfsSetAttrRequest request)
Bare implementation of the NFS RPC call.
|
Nfs3AccessResponse |
wrapped_getAccess(NfsAccessRequest request)
Implementation of the NFS RPC call, wrapped to include repeated attempts,
error checking, and logging.
|
Nfs3GetAttrResponse |
wrapped_getAttr(NfsGetAttrRequest request)
Implementation of the NFS RPC call, wrapped to include repeated attempts,
error checking, and logging.
|
Nfs3FsInfoResponse |
wrapped_getFsInfo(NfsFsInfoRequest request)
Implementation of the NFS RPC call, wrapped to include repeated attempts,
error checking, and logging.
|
Nfs3FsStatResponse |
wrapped_getFsStat(NfsFsStatRequest request)
Implementation of the NFS RPC call, wrapped to include repeated attempts,
error checking, and logging.
|
Nfs3LookupResponse |
wrapped_getLookup(NfsLookupRequest request)
Implementation of the NFS RPC call, wrapped to include repeated attempts,
error checking, and logging.
|
Nfs3PathconfResponse |
wrapped_getPathconf(NfsPathconfRequest request)
Implementation of the NFS RPC call, wrapped to include repeated attempts,
error checking, and logging.
|
Nfs3ReadResponse |
wrapped_getRead(NfsReadRequest request,
byte[] bytes,
int position)
Implementation of the NFS RPC call, wrapped to include repeated attempts,
error checking, and logging.
|
Nfs3ReaddirResponse |
wrapped_getReaddir(NfsReaddirRequest request)
Implementation of the NFS RPC call, wrapped to include repeated attempts,
error checking, and logging.
|
Nfs3ReaddirResponse |
wrapped_getReaddir(NfsReaddirRequest request,
java.util.List<NfsDirectoryEntry> entries)
Implementation of the NFS RPC call, wrapped to include repeated attempts,
error checking, and logging.
|
Nfs3ReaddirplusResponse |
wrapped_getReaddirplus(NfsReaddirplusRequest request)
Implementation of the NFS RPC call, wrapped to include repeated attempts,
error checking, and logging.
|
Nfs3ReaddirplusResponse |
wrapped_getReaddirplus(NfsReaddirplusRequest request,
java.util.List<NfsDirectoryPlusEntry> entries)
Implementation of the NFS RPC call, wrapped to include repeated attempts,
error checking, and logging.
|
Nfs3ReadlinkResponse |
wrapped_getReadlink(NfsReadlinkRequest request)
Implementation of the NFS RPC call, wrapped to include repeated attempts,
error checking, and logging.
|
Nfs3CommitResponse |
wrapped_sendCommit(NfsCommitRequest request)
Implementation of the NFS RPC call, wrapped to include repeated attempts,
error checking, and logging.
|
Nfs3CreateResponse |
wrapped_sendCreate(NfsCreateRequest request)
Implementation of the NFS RPC call, wrapped to include repeated attempts,
error checking, and logging.
|
Nfs3LinkResponse |
wrapped_sendLink(NfsLinkRequest request)
Implementation of the NFS RPC call, wrapped to include repeated attempts,
error checking, and logging.
|
Nfs3MkdirResponse |
wrapped_sendMkdir(NfsMkdirRequest request)
Implementation of the NFS RPC call, wrapped to include repeated attempts,
error checking, and logging.
|
Nfs3MknodResponse |
wrapped_sendMknod(NfsMknodRequest request)
Implementation of the NFS RPC call, wrapped to include repeated attempts,
error checking, and logging.
|
Nfs3RemoveResponse |
wrapped_sendRemove(NfsRemoveRequest request)
Implementation of the NFS RPC call, wrapped to include repeated attempts,
error checking, and logging.
|
Nfs3RenameResponse |
wrapped_sendRename(NfsRenameRequest request)
Implementation of the NFS RPC call, wrapped to include repeated attempts,
error checking, and logging.
|
Nfs3RmdirResponse |
wrapped_sendRmdir(NfsRmdirRequest request)
Implementation of the NFS RPC call, wrapped to include repeated attempts,
error checking, and logging.
|
Nfs3SymlinkResponse |
wrapped_sendSymlink(NfsSymlinkRequest request)
Implementation of the NFS RPC call, wrapped to include repeated attempts,
error checking, and logging.
|
Nfs3WriteResponse |
wrapped_sendWrite(NfsWriteRequest request)
Implementation of the NFS RPC call, wrapped to include repeated attempts,
error checking, and logging.
|
Nfs3WriteResponse |
wrapped_sendWrite(NfsWriteRequest request,
java.lang.Long verifier)
Implementation of the NFS RPC call, wrapped to include repeated attempts,
error checking, and logging.
|
Nfs3SetAttrResponse |
wrapped_setAttr(NfsSetAttrRequest request)
Implementation of the NFS RPC call, wrapped to include repeated attempts,
error checking, and logging.
|
public static final int VERSION
public static final int NFS_TIMEOUT
public static final int MAXIMUM_NFS_REQUEST_SIZE
public Nfs3(java.lang.String server,
java.lang.String exportedPath,
byte[] rootFileHandle,
int maximumRetries)
throws java.io.IOException
server - exportedPath - rootFileHandle - maximumRetries - java.io.IOExceptionpublic Nfs3(java.lang.String server,
java.lang.String exportedPath,
Credential credential,
int maximumRetries)
throws java.io.IOException
server - exportedPath - credential - maximumRetries - java.io.IOExceptionpublic Nfs3(java.lang.String absolutePath,
int uid,
int gid,
int maximumRetries)
throws java.io.IOException
absolutePath - The fully qualified path to the export, e.g., 10.32.172.64:/store.uid - gid - maximumRetries - java.io.IOExceptionpublic Nfs3(java.lang.String absolutePath,
Credential credential,
int maximumRetries)
throws java.io.IOException
absolutePath - The fully qualified path to the export, e.g., 10.32.172.64:/store.credential - maximumRetries - java.io.IOExceptionpublic Nfs3(java.lang.String server,
java.lang.String exportedPath,
byte[] rootFileHandle,
Credential credential,
int maximumRetries)
throws java.io.IOException
server - The NFS server name or IP address.exportedPath - The exported pathrootFileHandle - credential - maximumRetries - java.io.IOExceptionpublic void disableSudo()
throws java.io.IOException
NfsdisableSudo in interface Nfs<Nfs3File>java.io.IOExceptionpublic void enableSudo(int uid,
int gid)
NfsenableSudo in interface Nfs<Nfs3File>uid - Unix uidgid - Unix gidpublic Credential getCredential()
getCredential in interface Nfs<Nfs3File>public java.lang.String getExportedPath()
getExportedPath in interface Nfs<Nfs3File>public Nfs3File newFile(java.lang.String path) throws java.io.IOException
Nfspublic int getPort()
public byte[] getRootFileHandle()
getRootFileHandle in interface Nfs<Nfs3File>public java.lang.String getServer()
public Xdr nullCall() throws java.io.IOException
Nfspublic Nfs3GetAttrRequest makeGetAttrRequest(byte[] fileHandle) throws java.io.FileNotFoundException
NfsProcedure 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).
makeGetAttrRequest in interface Nfs<Nfs3File>fileHandle - The file handle of an object whose attributes are to be
retrieved.java.io.FileNotFoundExceptionpublic Nfs3GetAttrResponse getAttr(NfsGetAttrRequest request) throws java.io.IOException
NfsProcedure 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).
public Nfs3GetAttrResponse wrapped_getAttr(NfsGetAttrRequest request) throws java.io.IOException
NfsProcedure 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).
wrapped_getAttr in interface Nfs<Nfs3File>java.io.IOExceptionpublic NfsSetAttrRequest makeSetAttrRequest(byte[] fileHandle, NfsSetAttributes attributes, NfsTime guardTime) throws java.io.FileNotFoundException
NfsProcedure SETATTR changes one or more of the attributes of a file system object on the server.
makeSetAttrRequest in interface Nfs<Nfs3File>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.FileNotFoundExceptionpublic Nfs3SetAttrResponse setAttr(NfsSetAttrRequest request) throws java.io.IOException
NfsProcedure SETATTR changes one or more of the attributes of a file system object on the server.
public Nfs3SetAttrResponse wrapped_setAttr(NfsSetAttrRequest request) throws java.io.IOException
NfsProcedure SETATTR changes one or more of the attributes of a file system object on the server.
wrapped_setAttr in interface Nfs<Nfs3File>java.io.IOExceptionpublic Nfs3LookupRequest makeLookupRequest(byte[] fileHandle, java.lang.String name) throws java.io.FileNotFoundException
NfsProcedure LOOKUP searches a directory for a specific name and returns the file handle for the corresponding file system object.
makeLookupRequest in interface Nfs<Nfs3File>fileHandle - The file handle for the directory to search.name - The filename to be searched for.java.io.FileNotFoundExceptionpublic Nfs3LookupResponse getLookup(NfsLookupRequest request) throws java.io.IOException
NfsProcedure LOOKUP searches a directory for a specific name and returns the file handle for the corresponding file system object.
public Nfs3LookupResponse wrapped_getLookup(NfsLookupRequest request) throws java.io.IOException
NfsProcedure LOOKUP searches a directory for a specific name and returns the file handle for the corresponding file system object.
wrapped_getLookup in interface Nfs<Nfs3File>java.io.IOExceptionpublic Nfs3AccessRequest makeAccessRequest(byte[] fileHandle, long accessToCheck) throws java.io.FileNotFoundException
NfsProcedure 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.
makeAccessRequest in interface Nfs<Nfs3File>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.FileNotFoundExceptionpublic Nfs3AccessResponse getAccess(NfsAccessRequest request) throws java.io.IOException
NfsProcedure 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.
public Nfs3AccessResponse wrapped_getAccess(NfsAccessRequest request) throws java.io.IOException
NfsProcedure 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.
wrapped_getAccess in interface Nfs<Nfs3File>java.io.IOExceptionpublic Nfs3ReadlinkRequest makeReadlinkRequest(byte[] fileHandle) throws java.io.FileNotFoundException
NfsThis 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.
makeReadlinkRequest in interface Nfs<Nfs3File>fileHandle - the fileHandle for the symbolic linkjava.io.FileNotFoundExceptionpublic Nfs3ReadlinkResponse getReadlink(NfsReadlinkRequest request) throws java.io.IOException
NfsThis 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.
getReadlink in interface Nfs<Nfs3File>java.io.IOExceptionpublic Nfs3ReadlinkResponse wrapped_getReadlink(NfsReadlinkRequest request) throws java.io.IOException
NfsThis 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.
wrapped_getReadlink in interface Nfs<Nfs3File>java.io.IOExceptionpublic Nfs3ReadRequest makeReadRequest(byte[] fileHandle, long offset, int size) throws java.io.FileNotFoundException
NfsProcedure READ reads data from a file.
makeReadRequest in interface Nfs<Nfs3File>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.FileNotFoundExceptionpublic Nfs3ReadResponse getRead(NfsReadRequest request, byte[] bytes, int position) throws java.io.IOException
NfsProcedure READ reads data from a file.
public Nfs3ReadResponse wrapped_getRead(NfsReadRequest request, byte[] bytes, int position) throws java.io.IOException
NfsProcedure READ reads data from a file.
wrapped_getRead in interface Nfs<Nfs3File>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.IOExceptionpublic Nfs3WriteRequest makeWriteRequest(byte[] fileHandle, long offset, java.util.List<java.nio.ByteBuffer> payload, int syncType) throws java.io.FileNotFoundException
NfsProcedure WRITE writes data to a file.
makeWriteRequest in interface Nfs<Nfs3File>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.FileNotFoundExceptionpublic Nfs3WriteResponse sendWrite(NfsWriteRequest request) throws java.io.IOException
NfsProcedure WRITE writes data to a file.
public Nfs3WriteResponse wrapped_sendWrite(NfsWriteRequest request) throws java.io.IOException
NfsProcedure WRITE writes data to a file.
wrapped_sendWrite in interface Nfs<Nfs3File>java.io.IOExceptionpublic Nfs3WriteResponse wrapped_sendWrite(NfsWriteRequest request, java.lang.Long verifier) throws java.io.IOException
NfsProcedure WRITE writes data to a file.
wrapped_sendWrite in interface Nfs<Nfs3File>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.IOExceptionpublic Nfs3CreateRequest makeCreateRequest(NfsCreateMode createMode, byte[] parentDirectoryFileHandle, java.lang.String name, NfsSetAttributes attributes, byte[] verifier) throws java.io.FileNotFoundException
NfsProcedure CREATE creates a regular file.
makeCreateRequest in interface Nfs<Nfs3File>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.FileNotFoundExceptionpublic Nfs3CreateResponse sendCreate(NfsCreateRequest request) throws java.io.IOException
NfsProcedure CREATE creates a regular file.
sendCreate in interface Nfs<Nfs3File>java.io.IOExceptionpublic Nfs3CreateResponse wrapped_sendCreate(NfsCreateRequest request) throws java.io.IOException
NfsProcedure CREATE creates a regular file.
wrapped_sendCreate in interface Nfs<Nfs3File>java.io.IOExceptionpublic Nfs3MkdirRequest makeMkdirRequest(byte[] parentDirectoryFileHandle, java.lang.String name, NfsSetAttributes attributes) throws java.io.FileNotFoundException
NfsProcedure MKDIR creates a new subdirectory.
makeMkdirRequest in interface Nfs<Nfs3File>parentDirectoryFileHandle - 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.FileNotFoundExceptionpublic Nfs3MkdirResponse sendMkdir(NfsMkdirRequest request) throws java.io.IOException
NfsProcedure MKDIR creates a new subdirectory.
public Nfs3MkdirResponse wrapped_sendMkdir(NfsMkdirRequest request) throws java.io.IOException
NfsProcedure MKDIR creates a new subdirectory.
wrapped_sendMkdir in interface Nfs<Nfs3File>java.io.IOExceptionpublic Nfs3SymlinkRequest makeSymlinkRequest(java.lang.String symbolicLinkData, byte[] parentDirectoryFileHandle, java.lang.String name, NfsSetAttributes attributes) throws java.io.FileNotFoundException
NfsProcedure SYMLINK creates a new symbolic link.
makeSymlinkRequest in interface Nfs<Nfs3File>symbolicLinkData - The string containing the symbolic link data.parentDirectoryFileHandle - 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.FileNotFoundExceptionpublic Nfs3SymlinkResponse sendSymlink(NfsSymlinkRequest request) throws java.io.IOException
NfsProcedure SYMLINK creates a new symbolic link.
sendSymlink in interface Nfs<Nfs3File>java.io.IOExceptionpublic Nfs3SymlinkResponse wrapped_sendSymlink(NfsSymlinkRequest request) throws java.io.IOException
NfsProcedure SYMLINK creates a new symbolic link.
wrapped_sendSymlink in interface Nfs<Nfs3File>java.io.IOExceptionpublic Nfs3MknodRequest makeMknodRequest(byte[] parentDirectoryFileHandle, java.lang.String name, NfsType type, NfsSetAttributes attributes, long[] rdev) throws java.io.FileNotFoundException
Nfs
Procedure MKNOD creates a new special file of the type, type
. Special files can be device files or named pipes.
makeMknodRequest in interface Nfs<Nfs3File>parentDirectoryFileHandle - 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.FileNotFoundExceptionpublic Nfs3MknodResponse sendMknod(NfsMknodRequest request) throws java.io.IOException
Nfs
Procedure MKNOD creates a new special file of the type, type
. Special files can be device files or named pipes.
public Nfs3MknodResponse wrapped_sendMknod(NfsMknodRequest request) throws java.io.IOException
Nfs
Procedure MKNOD creates a new special file of the type, type
. Special files can be device files or named pipes.
wrapped_sendMknod in interface Nfs<Nfs3File>java.io.IOExceptionpublic Nfs3RemoveRequest makeRemoveRequest(byte[] parentDirectoryFileHandle, java.lang.String name) throws java.io.FileNotFoundException
NfsProcedure 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.
makeRemoveRequest in interface Nfs<Nfs3File>parentDirectoryFileHandle - 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.FileNotFoundExceptionpublic Nfs3RemoveResponse sendRemove(NfsRemoveRequest request) throws java.io.IOException
NfsProcedure 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.
sendRemove in interface Nfs<Nfs3File>java.io.IOExceptionpublic Nfs3RemoveResponse wrapped_sendRemove(NfsRemoveRequest request) throws java.io.IOException
NfsProcedure 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.
wrapped_sendRemove in interface Nfs<Nfs3File>java.io.IOExceptionpublic Nfs3RmdirRequest makeRmdirRequest(byte[] parentDirectoryFileHandle, java.lang.String name) throws java.io.FileNotFoundException
NfsProcedure 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.
makeRmdirRequest in interface Nfs<Nfs3File>parentDirectoryFileHandle - 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.FileNotFoundExceptionpublic Nfs3RmdirResponse sendRmdir(NfsRmdirRequest request) throws java.io.IOException
NfsProcedure 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.
public Nfs3RmdirResponse wrapped_sendRmdir(NfsRmdirRequest request) throws java.io.IOException
NfsProcedure 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.
wrapped_sendRmdir in interface Nfs<Nfs3File>java.io.IOExceptionpublic Nfs3RenameRequest makeRenameRequest(byte[] fromDirectoryFileHandle, java.lang.String fromName, byte[] toDirectoryFileHandle, java.lang.String toName) throws java.io.FileNotFoundException
Nfs
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.
makeRenameRequest in interface Nfs<Nfs3File>fromDirectoryFileHandle - The file handle for the directory from which the entry is to
be renamedfromName - The name of the entry that identifies the object to be renamedtoDirectoryFileHandle - The file handle for the directory to which the object is to be
renamed.toName - The new name for the object.java.io.FileNotFoundExceptionpublic Nfs3RenameResponse sendRename(NfsRenameRequest request) throws java.io.IOException
Nfs
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.
sendRename in interface Nfs<Nfs3File>java.io.IOExceptionpublic Nfs3RenameResponse wrapped_sendRename(NfsRenameRequest request) throws java.io.IOException
Nfs
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.
wrapped_sendRename in interface Nfs<Nfs3File>java.io.IOExceptionpublic Nfs3LinkRequest makeLinkRequest(byte[] fileHandle, byte[] parentDirectoryFileHandle, java.lang.String name) throws java.io.FileNotFoundException
Nfs
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.
makeLinkRequest in interface Nfs<Nfs3File>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.FileNotFoundExceptionpublic Nfs3LinkResponse sendLink(NfsLinkRequest request) throws java.io.IOException
Nfs
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.
public Nfs3LinkResponse wrapped_sendLink(NfsLinkRequest request) throws java.io.IOException
Nfs
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.
wrapped_sendLink in interface Nfs<Nfs3File>java.io.IOExceptionpublic NfsReaddirRequest makeReaddirRequest(byte[] directoryFileHandle, long cookie, long cookieverf, int count) throws java.io.FileNotFoundException
NfsProcedure 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.
makeReaddirRequest in interface Nfs<Nfs3File>directoryFileHandle - 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.FileNotFoundExceptionpublic Nfs3ReaddirResponse getReaddir(NfsReaddirRequest request) throws java.io.IOException
NfsProcedure 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.
getReaddir in interface Nfs<Nfs3File>java.io.IOExceptionpublic Nfs3ReaddirResponse wrapped_getReaddir(NfsReaddirRequest request) throws java.io.IOException
NfsProcedure 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.
wrapped_getReaddir in interface Nfs<Nfs3File>java.io.IOExceptionpublic Nfs3ReaddirResponse wrapped_getReaddir(NfsReaddirRequest request, java.util.List<NfsDirectoryEntry> entries) throws java.io.IOException
NfsProcedure 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.
wrapped_getReaddir in interface Nfs<Nfs3File>entries - A list of entries to which the returned entries should be
appended.java.io.IOExceptionpublic NfsReaddirplusRequest makeReaddirplusRequest(byte[] directoryFileHandle, long cookie, long cookieverf, int dircount, int maxcount) throws java.io.FileNotFoundException
NfsProcedure 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.
makeReaddirplusRequest in interface Nfs<Nfs3File>directoryFileHandle - 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.FileNotFoundExceptionpublic Nfs3ReaddirplusResponse getReaddirplus(NfsReaddirplusRequest request) throws java.io.IOException
NfsProcedure 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.
getReaddirplus in interface Nfs<Nfs3File>java.io.IOExceptionpublic Nfs3ReaddirplusResponse wrapped_getReaddirplus(NfsReaddirplusRequest request) throws java.io.IOException
NfsProcedure 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.
wrapped_getReaddirplus in interface Nfs<Nfs3File>java.io.IOExceptionpublic Nfs3ReaddirplusResponse wrapped_getReaddirplus(NfsReaddirplusRequest request, java.util.List<NfsDirectoryPlusEntry> entries) throws java.io.IOException
NfsProcedure 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.
wrapped_getReaddirplus in interface Nfs<Nfs3File>entries - A list of entries to which the returned entries should be
appended.java.io.IOExceptionpublic NfsFsStat getNfsFsStat() throws java.io.IOException
NfsgetNfsFsStat in interface Nfs<Nfs3File>java.io.IOExceptionpublic Nfs3FsStatRequest makeFsStatRequest(byte[] fileHandle) throws java.io.FileNotFoundException
NfsProcedure FSSTAT retrieves volatile file system state information.
makeFsStatRequest in interface Nfs<Nfs3File>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.FileNotFoundExceptionpublic Nfs3FsStatRequest makeFsStatRequest() throws java.io.FileNotFoundException
NfsProcedure FSSTAT retrieves volatile file system state information.
makeFsStatRequest in interface Nfs<Nfs3File>java.io.FileNotFoundExceptionpublic Nfs3FsStatResponse getFsStat(NfsFsStatRequest request) throws java.io.IOException
NfsProcedure FSSTAT retrieves volatile file system state information.
public Nfs3FsStatResponse wrapped_getFsStat(NfsFsStatRequest request) throws java.io.IOException
NfsProcedure FSSTAT retrieves volatile file system state information.
wrapped_getFsStat in interface Nfs<Nfs3File>java.io.IOExceptionpublic NfsFsInfo getNfsFsInfo() throws java.io.IOException
NfsgetNfsFsInfo in interface Nfs<Nfs3File>java.io.IOExceptionpublic Nfs3FsInfoRequest makeFsInfoRequest(byte[] fileHandle) throws java.io.FileNotFoundException
NfsProcedure FSINFO retrieves nonvolatile file system state information and general information about the NFS version 3 protocol server implementation.
makeFsInfoRequest in interface Nfs<Nfs3File>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.FileNotFoundExceptionpublic Nfs3FsInfoRequest makeFsInfoRequest() throws java.io.FileNotFoundException
NfsProcedure FSINFO retrieves nonvolatile file system state information and general information about the NFS version 3 protocol server implementation.
makeFsInfoRequest in interface Nfs<Nfs3File>java.io.FileNotFoundExceptionpublic Nfs3FsInfoResponse getFsInfo(NfsFsInfoRequest request) throws java.io.IOException
NfsProcedure FSINFO retrieves nonvolatile file system state information and general information about the NFS version 3 protocol server implementation.
public Nfs3FsInfoResponse wrapped_getFsInfo(NfsFsInfoRequest request) throws java.io.IOException
NfsProcedure FSINFO retrieves nonvolatile file system state information and general information about the NFS version 3 protocol server implementation.
wrapped_getFsInfo in interface Nfs<Nfs3File>java.io.IOExceptionpublic Nfs3PathconfRequest makePathconfRequest(byte[] fileHandle) throws java.io.FileNotFoundException
NfsProcedure 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.
makePathconfRequest in interface Nfs<Nfs3File>fileHandle - The file handle for the file system object.java.io.FileNotFoundExceptionpublic Nfs3PathconfResponse getPathconf(NfsPathconfRequest request) throws java.io.IOException
NfsProcedure 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.
getPathconf in interface Nfs<Nfs3File>java.io.IOExceptionpublic Nfs3PathconfResponse wrapped_getPathconf(NfsPathconfRequest request) throws java.io.IOException
NfsProcedure 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.
wrapped_getPathconf in interface Nfs<Nfs3File>java.io.IOExceptionpublic Nfs3CommitRequest makeCommitRequest(byte[] fileHandle, long offsetToCommit, int dataSizeToCommit) throws java.io.FileNotFoundException
NfsProcedure COMMIT forces or flushes data to stable storage that was previously written with a WRITE procedure call with the stable field set to UNSTABLE.
makeCommitRequest in interface Nfs<Nfs3File>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.FileNotFoundExceptionpublic Nfs3CommitResponse sendCommit(NfsCommitRequest request) throws java.io.IOException
NfsProcedure COMMIT forces or flushes data to stable storage that was previously written with a WRITE procedure call with the stable field set to UNSTABLE.
sendCommit in interface Nfs<Nfs3File>java.io.IOExceptionpublic Nfs3CommitResponse wrapped_sendCommit(NfsCommitRequest request) throws java.io.IOException
NfsProcedure COMMIT forces or flushes data to stable storage that was previously written with a WRITE procedure call with the stable field set to UNSTABLE.
wrapped_sendCommit in interface Nfs<Nfs3File>java.io.IOExceptionpublic int read(java.lang.String path,
byte[] fileHandle,
long offset,
int length,
byte[] data,
int pos,
org.apache.commons.lang.mutable.MutableBoolean eof)
throws java.io.IOException
path - the path of the filefileHandle - file handle of the fileoffset - offset of the file to readlength - the length of the data bufferdata - the data to be returnedeof - is at the end-of-filejava.io.IOExceptionpublic void fsync(java.lang.String path,
byte[] fh,
java.lang.Long verifier)
throws java.io.IOException
java.io.IOException