57 const char *mountpoint ) {
75 const char *mountpoint ) {
93 if ( ! mnt_reply || ! reply )
98 switch ( mnt_reply->
status )
#define ONCRPC_FIELD(type, value)
#define EINVAL
Invalid argument.
int mount_get_mnt_reply(struct mount_mnt_reply *mnt_reply, struct oncrpc_reply *reply)
Parse an MNT reply.
#define ENOENT
No such file or directory.
#define EACCES
Permission denied.
#define MNT3ERR_IO
I/O error.
int oncrpc_call(struct interface *intf, struct oncrpc_session *session, uint32_t proc_name, const struct oncrpc_field fields[])
#define MOUNT_UMNT
UMNT procedure number.
#define oncrpc_iob_get_int(buf)
Get a 32 bits integer from the beginning of an I/O buffer.
struct nfs_fh fh
Root file handle.
#define ENOTDIR
Not a directory.
#define EPROTO
Protocol error.
#define MNT3ERR_NOENT
No such file or directory.
uint32_t status
Reply status.
Data transfer interface opening.
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.
#define MOUNT_MNT
MNT procedure number.
int mount_mnt(struct interface *intf, struct oncrpc_session *session, const char *mountpoint)
Send a MNT request.
Network File System protocol.
#define EIO
Input/output error.
#define ENAMETOOLONG
Filename too long.
#define MNT3ERR_NAMETOOLONG
Filename too long.
int mount_umnt(struct interface *intf, struct oncrpc_session *session, const char *mountpoint)
Send a UMNT request.
#define MNT3ERR_ACCES
Permission denied.
#define MNT3ERR_NOTDIR
Not a directory.