16 #define ONCRPC_NFS 100003 24 #define NFS3ERR_PERM 1 26 #define NFS3ERR_NOENT 2 30 #define NFS3ERR_NXIO 6 32 #define NFS3ERR_ACCES 13 34 #define NFS3ERR_EXIST 17 36 #define NFS3ERR_XDEV 18 38 #define NFS3ERR_NODEV 19 40 #define NFS3ERR_NOTDIR 20 42 #define NFS3ERR_ISDIR 21 44 #define NFS3ERR_INVAL 22 46 #define NFS3ERR_NAMETOOLONG 63 48 #define NFS3ERR_STALE 70 50 #define NFS3ERR_REMOTE 71 52 #define NFS3ERR_BADHANDLE 10001 54 #define NFS3ERR_BAD_COOKIE 10003 56 #define NFS3ERR_NOTSUPP 10004 58 #define NFS3ERR_TOOSMALL 10005 61 #define NFS3ERR_SERVERFAULT 10006 64 #define NFS3ERR_JUKEBOX 10008 144 const struct nfs_fh *fh,
const char *filename );
146 const struct nfs_fh *fh );
FILE_LICENCE(GPL2_OR_LATER_OR_UBDL)
uint32_t status
Reply status.
size_t nfs_iob_add_fh(struct io_buffer *io_buf, const struct nfs_fh *fh)
Add a file handle to the end of an I/O buffer.
uint32_t status
Reply status.
#define ONCRPC_NFS
NFS protocol number.
uint32_t count
Bytes read.
static void nfs_init_session(struct oncrpc_session *session, struct oncrpc_cred *credential)
Prepare an ONC RPC session to be used as a NFS session.
struct nfs_fh fh
File handle.
unsigned long long uint64_t
void oncrpc_init_session(struct oncrpc_session *session, struct oncrpc_cred *credential, struct oncrpc_cred *verifier, uint32_t prog_name, uint32_t prog_vers)
Prepare an ONC RPC session structure to be used by the ONC RPC layer.
#define NFS_VERS
NFS protocol version.
size_t nfs_iob_get_fh(struct io_buffer *io_buf, struct nfs_fh *fh)
Extract a file handle from the beginning of an I/O buffer.
int nfs_lookup(struct interface *intf, struct oncrpc_session *session, const struct nfs_fh *fh, const char *filename)
Send a LOOKUP request.
int nfs_get_lookup_reply(struct nfs_lookup_reply *lookup_reply, struct oncrpc_reply *reply)
Parse a LOOKUP reply.
uint32_t eof
End-of-File indicator.
enum nfs_attr_type ent_type
Entity type.
uint16_t count
Number of entries.
int nfs_get_read_reply(struct nfs_read_reply *read_reply, struct oncrpc_reply *reply)
Parse a READ reply.
struct oncrpc_cred oncrpc_auth_none
AUTH NONE authentication flavor.
uint32_t data_len
Data length.
uint32_t status
Reply status.
int nfs_read(struct interface *intf, struct oncrpc_session *session, const struct nfs_fh *fh, uint64_t offset, uint32_t count)
Send a READ request.
int nfs_get_readlink_reply(struct nfs_readlink_reply *readlink_reply, struct oncrpc_reply *reply)
Parse a READLINK reply.
uint16_t offset
Offset to command line.
int nfs_readlink(struct interface *intf, struct oncrpc_session *session, const struct nfs_fh *fh)
Send a READLINK request.
uint64_t filesize
File size.
uint32_t path_len
File path length.