|
@@ -26,69 +26,176 @@ import org.apache.hadoop.oncrpc.XDR;
|
|
|
*/
|
|
|
public interface Nfs3Interface {
|
|
|
|
|
|
- /** NULL: Do nothing */
|
|
|
+ /**
|
|
|
+ * NULL: Do nothing.
|
|
|
+ * @return null NFS procedure
|
|
|
+ */
|
|
|
public NFS3Response nullProcedure();
|
|
|
|
|
|
- /** GETATTR: Get file attributes */
|
|
|
+ /**
|
|
|
+ * GETATTR: Get file attributes.
|
|
|
+ * @param xdr XDR message
|
|
|
+ * @param info context of rpc message
|
|
|
+ * @return NFSv3 response
|
|
|
+ */
|
|
|
public NFS3Response getattr(XDR xdr, RpcInfo info);
|
|
|
|
|
|
- /** SETATTR: Set file attributes */
|
|
|
+ /**
|
|
|
+ * SETATTR: Set file attributes.
|
|
|
+ * @param xdr XDR message
|
|
|
+ * @param info context of rpc message
|
|
|
+ * @return NFSv3 response
|
|
|
+ */
|
|
|
public NFS3Response setattr(XDR xdr, RpcInfo info);
|
|
|
|
|
|
- /** LOOKUP: Lookup filename */
|
|
|
+ /**
|
|
|
+ * LOOKUP: Lookup filename.
|
|
|
+ * @param xdr XDR message
|
|
|
+ * @param info context of rpc message
|
|
|
+ * @return NFSv3 response
|
|
|
+ */
|
|
|
public NFS3Response lookup(XDR xdr, RpcInfo info);
|
|
|
|
|
|
- /** ACCESS: Check access permission */
|
|
|
+ /**
|
|
|
+ * ACCESS: Check access permission.
|
|
|
+ * @param xdr XDR message
|
|
|
+ * @param info context of rpc message
|
|
|
+ * @return NFSv3 response
|
|
|
+ */
|
|
|
public NFS3Response access(XDR xdr, RpcInfo info);
|
|
|
|
|
|
- /** READLINK: Read from symbolic link */
|
|
|
+ /** READLINK: Read from symbolic link.
|
|
|
+ * @param xdr XDR message
|
|
|
+ * @param info context of rpc message
|
|
|
+ * @return NFSv3 response
|
|
|
+ */
|
|
|
public NFS3Response readlink(XDR xdr, RpcInfo info);
|
|
|
|
|
|
- /** READ: Read from file */
|
|
|
+ /**
|
|
|
+ * READ: Read from file.
|
|
|
+ * @param xdr XDR message
|
|
|
+ * @param info context of rpc message
|
|
|
+ * @return NFSv3 response
|
|
|
+ */
|
|
|
public NFS3Response read(XDR xdr, RpcInfo info);
|
|
|
|
|
|
- /** WRITE: Write to file */
|
|
|
+ /**
|
|
|
+ * WRITE: Write to file.
|
|
|
+ * @param xdr XDR message
|
|
|
+ * @param info context of rpc message
|
|
|
+ * @return NFSv3 response
|
|
|
+ */
|
|
|
public NFS3Response write(XDR xdr, RpcInfo info);
|
|
|
|
|
|
- /** CREATE: Create a file */
|
|
|
+ /**
|
|
|
+ * CREATE: Create a file.
|
|
|
+ * @param xdr XDR message
|
|
|
+ * @param info context of rpc message
|
|
|
+ * @return NFSv3 response
|
|
|
+ */
|
|
|
public NFS3Response create(XDR xdr, RpcInfo info);
|
|
|
|
|
|
- /** MKDIR: Create a directory */
|
|
|
+ /**
|
|
|
+ * MKDIR: Create a directory.
|
|
|
+ * @param xdr XDR message
|
|
|
+ * @param info context of rpc message
|
|
|
+ * @return NFSv3 response
|
|
|
+ */
|
|
|
public NFS3Response mkdir(XDR xdr, RpcInfo info);
|
|
|
|
|
|
- /** SYMLINK: Create a symbolic link */
|
|
|
+ /**
|
|
|
+ * SYMLINK: Create a symbolic link.
|
|
|
+ * @param xdr XDR message
|
|
|
+ * @param info context of rpc message
|
|
|
+ * @return NFSv3 response
|
|
|
+ */
|
|
|
public NFS3Response symlink(XDR xdr, RpcInfo info);
|
|
|
|
|
|
- /** MKNOD: Create a special device */
|
|
|
+ /**
|
|
|
+ * MKNOD: Create a special device.
|
|
|
+ * @param xdr XDR message
|
|
|
+ * @param info context of rpc message
|
|
|
+ * @return NFSv3 response
|
|
|
+ */
|
|
|
public NFS3Response mknod(XDR xdr, RpcInfo info);
|
|
|
|
|
|
- /** REMOVE: Remove a file */
|
|
|
+ /**
|
|
|
+ * REMOVE: Remove a file.
|
|
|
+ * @param xdr XDR message
|
|
|
+ * @param info context of rpc message
|
|
|
+ * @return NFSv3 response
|
|
|
+ */
|
|
|
public NFS3Response remove(XDR xdr, RpcInfo info);
|
|
|
|
|
|
- /** RMDIR: Remove a directory */
|
|
|
+ /**
|
|
|
+ * RMDIR: Remove a directory.
|
|
|
+ * @param xdr XDR message
|
|
|
+ * @param info context of rpc message
|
|
|
+ * @return NFSv3 response
|
|
|
+ */
|
|
|
public NFS3Response rmdir(XDR xdr, RpcInfo info);
|
|
|
|
|
|
- /** RENAME: Rename a file or directory */
|
|
|
+ /**
|
|
|
+ * RENAME: Rename a file or directory.
|
|
|
+ * @param xdr XDR message
|
|
|
+ * @param info context of rpc message
|
|
|
+ * @return NFSv3 response
|
|
|
+ */
|
|
|
public NFS3Response rename(XDR xdr, RpcInfo info);
|
|
|
|
|
|
- /** LINK: create link to an object */
|
|
|
+ /**
|
|
|
+ * LINK: create link to an object.
|
|
|
+ * @param xdr XDR message
|
|
|
+ * @param info context of rpc message
|
|
|
+ * @return NFSv3 response
|
|
|
+ */
|
|
|
public NFS3Response link(XDR xdr, RpcInfo info);
|
|
|
|
|
|
- /** READDIR: Read From directory */
|
|
|
+ /**
|
|
|
+ * READDIR: Read From directory.
|
|
|
+ * @param xdr XDR message
|
|
|
+ * @param info context of rpc message
|
|
|
+ * @return NFSv3 response
|
|
|
+ */
|
|
|
public NFS3Response readdir(XDR xdr, RpcInfo info);
|
|
|
|
|
|
- /** READDIRPLUS: Extended read from directory */
|
|
|
+ /**
|
|
|
+ * READDIRPLUS: Extended read from directory.
|
|
|
+ * @param xdr XDR message
|
|
|
+ * @param info context of rpc message
|
|
|
+ * @return NFSv3 response
|
|
|
+ */
|
|
|
public NFS3Response readdirplus(XDR xdr, RpcInfo info);
|
|
|
|
|
|
- /** FSSTAT: Get dynamic file system information */
|
|
|
+ /**
|
|
|
+ * FSSTAT: Get dynamic file system information.
|
|
|
+ * @param xdr XDR message
|
|
|
+ * @param info context of rpc message
|
|
|
+ * @return NFSv3 response
|
|
|
+ */
|
|
|
public NFS3Response fsstat(XDR xdr, RpcInfo info);
|
|
|
|
|
|
- /** FSINFO: Get static file system information */
|
|
|
+ /**
|
|
|
+ * FSINFO: Get static file system information.
|
|
|
+ * @param xdr XDR message
|
|
|
+ * @param info context of rpc message
|
|
|
+ * @return NFSv3 response
|
|
|
+ */
|
|
|
public NFS3Response fsinfo(XDR xdr, RpcInfo info);
|
|
|
|
|
|
- /** PATHCONF: Retrieve POSIX information */
|
|
|
+ /**
|
|
|
+ * PATHCONF: Retrieve POSIX information.
|
|
|
+ * @param xdr XDR message
|
|
|
+ * @param info context of rpc message
|
|
|
+ * @return NFSv3 response
|
|
|
+ */
|
|
|
public NFS3Response pathconf(XDR xdr, RpcInfo info);
|
|
|
|
|
|
- /** COMMIT: Commit cached data on a server to stable storage */
|
|
|
+ /**
|
|
|
+ * COMMIT: Commit cached data on a server to stable storage.
|
|
|
+ * @param xdr XDR message
|
|
|
+ * @param info context of rpc message
|
|
|
+ * @return NFSv3 response
|
|
|
+ */
|
|
|
public NFS3Response commit(XDR xdr, RpcInfo info);
|
|
|
}
|