public class NfsMknodRequest extends NfsRequestBase
Procedure MKNOD creates a new special file of the type, type .
Special files can be device files or named pipes.
CHARSET| Constructor and Description |
|---|
NfsMknodRequest(byte[] fileHandle,
java.lang.String name,
NfsType type,
NfsSetAttributes attributes,
long[] rdev,
Credential credential,
int nfsVersion)
Creates the request, as specified by RFC 1813
(https://tools.ietf.org/html/rfc1813).
|
| Modifier and Type | Method and Description |
|---|---|
void |
marshalling(Xdr xdr)
Transfer data to an Xdr object for RPC use.
|
java.lang.String |
toString() |
getErrorMessage, getFileHandle, getIpKey, startToStringcloneFileHandle, isUsePrivilegedPort, setUsePrivilegedPort, trimFileNamepublic NfsMknodRequest(byte[] fileHandle,
java.lang.String name,
NfsType type,
NfsSetAttributes attributes,
long[] rdev,
Credential credential,
int nfsVersion)
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.credential - The credential used for RPC authentication.nfsVersion - The NFS version numberjava.io.FileNotFoundExceptionpublic void marshalling(Xdr xdr)
NfsRequestmarshalling in interface NfsRequestmarshalling in class NfsRequestBasexdr - the Xdr to be sent.public java.lang.String toString()
toString in class java.lang.Object