Changeset View
Changeset View
Standalone View
Standalone View
head/sbin/mount/mntopts.h
Show First 20 Lines • Show All 52 Lines • ▼ Show 20 Lines | |||||
#define MOPT_NOCLUSTERR { "clusterr", 1, MNT_NOCLUSTERR, 0 } | #define MOPT_NOCLUSTERR { "clusterr", 1, MNT_NOCLUSTERR, 0 } | ||||
#define MOPT_NOCLUSTERW { "clusterw", 1, MNT_NOCLUSTERW, 0 } | #define MOPT_NOCLUSTERW { "clusterw", 1, MNT_NOCLUSTERW, 0 } | ||||
#define MOPT_SUIDDIR { "suiddir", 0, MNT_SUIDDIR, 0 } | #define MOPT_SUIDDIR { "suiddir", 0, MNT_SUIDDIR, 0 } | ||||
#define MOPT_SNAPSHOT { "snapshot", 0, MNT_SNAPSHOT, 0 } | #define MOPT_SNAPSHOT { "snapshot", 0, MNT_SNAPSHOT, 0 } | ||||
#define MOPT_MULTILABEL { "multilabel", 0, MNT_MULTILABEL, 0 } | #define MOPT_MULTILABEL { "multilabel", 0, MNT_MULTILABEL, 0 } | ||||
#define MOPT_ACLS { "acls", 0, MNT_ACLS, 0 } | #define MOPT_ACLS { "acls", 0, MNT_ACLS, 0 } | ||||
#define MOPT_NFS4ACLS { "nfsv4acls", 0, MNT_NFS4ACLS, 0 } | #define MOPT_NFS4ACLS { "nfsv4acls", 0, MNT_NFS4ACLS, 0 } | ||||
#define MOPT_AUTOMOUNTED { "automounted",0, MNT_AUTOMOUNTED, 0 } | #define MOPT_AUTOMOUNTED { "automounted",0, MNT_AUTOMOUNTED, 0 } | ||||
#define MOPT_UNTRUSTED { "untrusted", 0, MNT_UNTRUSTED, 0 } | |||||
/* Control flags. */ | /* Control flags. */ | ||||
#define MOPT_FORCE { "force", 0, MNT_FORCE, 0 } | #define MOPT_FORCE { "force", 0, MNT_FORCE, 0 } | ||||
#define MOPT_UPDATE { "update", 0, MNT_UPDATE, 0 } | #define MOPT_UPDATE { "update", 0, MNT_UPDATE, 0 } | ||||
#define MOPT_RO { "ro", 0, MNT_RDONLY, 0 } | #define MOPT_RO { "ro", 0, MNT_RDONLY, 0 } | ||||
#define MOPT_RW { "rw", 1, MNT_RDONLY, 0 } | #define MOPT_RW { "rw", 1, MNT_RDONLY, 0 } | ||||
/* This is parsed by mount(8), but is ignored by specific mount_*(8)s. */ | /* This is parsed by mount(8), but is ignored by specific mount_*(8)s. */ | ||||
Show All 19 Lines | #define MOPT_STDOPTS \ | ||||
MOPT_NOSYMFOLLOW, \ | MOPT_NOSYMFOLLOW, \ | ||||
MOPT_RDONLY, \ | MOPT_RDONLY, \ | ||||
MOPT_UNION, \ | MOPT_UNION, \ | ||||
MOPT_NOCLUSTERR, \ | MOPT_NOCLUSTERR, \ | ||||
MOPT_NOCLUSTERW, \ | MOPT_NOCLUSTERW, \ | ||||
MOPT_MULTILABEL, \ | MOPT_MULTILABEL, \ | ||||
MOPT_ACLS, \ | MOPT_ACLS, \ | ||||
MOPT_NFS4ACLS, \ | MOPT_NFS4ACLS, \ | ||||
MOPT_AUTOMOUNTED | MOPT_AUTOMOUNTED, \ | ||||
MOPT_UNTRUSTED | |||||
void getmntopts(const char *, const struct mntopt *, int *, int *); | void getmntopts(const char *, const struct mntopt *, int *, int *); | ||||
void rmslashes(char *, char *); | void rmslashes(char *, char *); | ||||
int checkpath(const char *, char resolved_path[]); | int checkpath(const char *, char resolved_path[]); | ||||
extern int getmnt_silent; | extern int getmnt_silent; | ||||
void build_iovec(struct iovec **iov, int *iovlen, const char *name, void *val, size_t len); | void build_iovec(struct iovec **iov, int *iovlen, const char *name, void *val, size_t len); | ||||
void build_iovec_argf(struct iovec **iov, int *iovlen, const char *name, const char *fmt, ...); | void build_iovec_argf(struct iovec **iov, int *iovlen, const char *name, const char *fmt, ...); | ||||
void free_iovec(struct iovec **iovec, int *iovlen); | void free_iovec(struct iovec **iovec, int *iovlen); |