15 #define ONCRPC_MOUNT 100005 23 #define MNT3ERR_PERM 1 25 #define MNT3ERR_NOENT 2 29 #define MNT3ERR_ACCES 13 31 #define MNT3ERR_NOTDIR 20 33 #define MNT3ERR_INVAL 22 35 #define MNT3ERR_NAMETOOLONG 63 37 #define MNT3ERR_NOTSUPP 10004 39 #define MNT3ERR_SERVERFAULT 10006 69 const char *mountpoint );
71 const char *mountpoint );
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.
FILE_LICENCE(GPL2_OR_LATER_OR_UBDL)
#define ONCRPC_MOUNT
NFS MOUNT protocol number.
int mount_mnt(struct interface *intf, struct oncrpc_session *session, const char *mountpoint)
Send a MNT request.
int mount_umnt(struct interface *intf, struct oncrpc_session *session, const char *mountpoint)
Send a UMNT request.
struct nfs_fh fh
Root file handle.
#define MOUNT_VERS
NFS MOUNT protocol version.
struct oncrpc_cred oncrpc_auth_none
AUTH NONE authentication flavor.
uint32_t status
Reply status.
int mount_get_mnt_reply(struct mount_mnt_reply *mnt_reply, struct oncrpc_reply *reply)
Parse an MNT reply.
static void mount_init_session(struct oncrpc_session *session, struct oncrpc_cred *credential)
Prepare an ONC RPC session to be used as a MOUNT session.
Network File System protocol.