blob: 7b28dedf124e602aaa19a7fa26272988f5af4b2b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
#ifndef NFSMOUNT_NFSMOUNT_H
#define NFSMOUNT_NFSMOUNT_H
#include <linux/nfs_mount.h>
extern int nfs_port;
extern int nfsmount_main(int argc, char *argv[]);
int nfs_mount(const char *rem_name, const char *hostname,
uint32_t server, const char *rem_path,
const char *path, struct nfs_mount_data *data);
enum nfs_proto {
v2 = 2,
v3,
};
/* masked with NFS_MOUNT_FLAGMASK before mount() call */
#define NFS_MOUNT_KLIBC_RONLY 0x00010000U
#ifdef DEBUG
# define dprintf printf
#else
# define dprintf(...) ((void)0)
#endif
#ifndef MNTPROC_MNT
#define MNTPROC_MNT 1
#endif
#ifndef MNTPROC_UMNT
#define MNTPROC_UMNT 3
#endif
#endif /* NFSMOUNT_NFSMOUNT_H */
|