|
iPXE
|
NFS MOUNT protocol. More...
#include <stdint.h>#include <stdlib.h>#include <stdio.h>#include <string.h>#include <assert.h>#include <errno.h>#include <libgen.h>#include <byteswap.h>#include <ipxe/time.h>#include <ipxe/iobuf.h>#include <ipxe/open.h>#include <ipxe/features.h>#include <ipxe/oncrpc.h>#include <ipxe/oncrpc_iob.h>#include <ipxe/nfs.h>#include <ipxe/mount.h>Go to the source code of this file.
Macros | |
| #define | MOUNT_MNT 1 |
| MNT procedure number. More... | |
| #define | MOUNT_UMNT 3 |
| UMNT procedure number. More... | |
Functions | |
| int | mount_mnt (struct interface *intf, struct oncrpc_session *session, const char *mountpoint) |
| Send a MNT request. More... | |
| int | mount_umnt (struct interface *intf, struct oncrpc_session *session, const char *mountpoint) |
| Send a UMNT request. More... | |
| int | mount_get_mnt_reply (struct mount_mnt_reply *mnt_reply, struct oncrpc_reply *reply) |
| Parse an MNT reply. More... | |
NFS MOUNT protocol.
Definition in file mount.c.
| int mount_mnt | ( | struct interface * | intf, |
| struct oncrpc_session * | session, | ||
| const char * | mountpoint | ||
| ) |
Send a MNT request.
| intf | Interface to send the request on |
| session | ONC RPC session |
| mountpoinrt | The path of the directory to mount. |
| rc | Return status code |
Definition at line 56 of file mount.c.
References MOUNT_MNT, oncrpc_call(), ONCRPC_FIELD, and ONCRPC_FIELD_END.
Referenced by nfs_mount_step().
| int mount_umnt | ( | struct interface * | intf, |
| struct oncrpc_session * | session, | ||
| const char * | mountpoint | ||
| ) |
Send a UMNT request.
| intf | Interface to send the request on |
| session | ONC RPC session |
| mountpoinrt | The path of the directory to unmount. |
| rc | Return status code |
Definition at line 74 of file mount.c.
References MOUNT_UMNT, oncrpc_call(), ONCRPC_FIELD, and ONCRPC_FIELD_END.
Referenced by nfs_mount_step().
| int mount_get_mnt_reply | ( | struct mount_mnt_reply * | mnt_reply, |
| struct oncrpc_reply * | reply | ||
| ) |
Parse an MNT reply.
| mnt_reply | A structure where the data will be saved |
| reply | The ONC RPC reply to get data from |
| rc | Return status code |
Definition at line 91 of file mount.c.
References oncrpc_reply::data, EACCES, EINVAL, EIO, ENAMETOOLONG, ENOENT, ENOTDIR, EPROTO, mount_mnt_reply::fh, MNT3_OK, MNT3ERR_ACCES, MNT3ERR_IO, MNT3ERR_NAMETOOLONG, MNT3ERR_NOENT, MNT3ERR_NOTDIR, nfs_iob_get_fh(), oncrpc_iob_get_int, and mount_mnt_reply::status.
Referenced by nfs_mount_deliver().
1.8.15