version 1.3, 2003/08/07 09:44:10 |
version 1.16, 2016/01/22 22:26:45 |
|
|
#ifndef _MNTOPTS_H_ |
#ifndef _MNTOPTS_H_ |
#define _MNTOPTS_H_ |
#define _MNTOPTS_H_ |
|
|
|
#include <sys/cdefs.h> |
|
|
struct mntopt { |
struct mntopt { |
const char *m_option; /* option name */ |
const char *m_option; /* option name */ |
int m_inverse; /* if a negative option, eg "dev" */ |
int m_inverse; /* if a negative option, eg "dev" */ |
|
|
#define MOPT_NOATIME { "atime", 1, MNT_NOATIME, 0 } |
#define MOPT_NOATIME { "atime", 1, MNT_NOATIME, 0 } |
#define MOPT_SYMPERM { "symperm", 0, MNT_SYMPERM, 0 } |
#define MOPT_SYMPERM { "symperm", 0, MNT_SYMPERM, 0 } |
#define MOPT_SOFTDEP { "softdep", 0, MNT_SOFTDEP, 0 } |
#define MOPT_SOFTDEP { "softdep", 0, MNT_SOFTDEP, 0 } |
|
#define MOPT_LOG { "log", 0, MNT_LOG, 0 } |
#define MOPT_IGNORE { "hidden", 0, MNT_IGNORE, 0 } |
#define MOPT_IGNORE { "hidden", 0, MNT_IGNORE, 0 } |
|
#define MOPT_EXTATTR { "extattr", 0, MNT_EXTATTR, 0 } |
|
#define MOPT_DISCARD { "discard", 0, MNT_DISCARD, 0 } |
|
|
/* Control flags. */ |
/* Control flags. */ |
#define MOPT_FORCE { "force", 1, 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_RELOAD { "reload", 0, MNT_RELOAD, 0 } |
#define MOPT_RELOAD { "reload", 0, MNT_RELOAD, 0 } |
#define MOPT_GETARGS { "getargs", 0, MNT_GETARGS, 0 } |
#define MOPT_GETARGS { "getargs", 0, MNT_GETARGS, 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. */ |
#define MOPT_AUTO { "auto", 0, 0, 0 } |
#define MOPT_AUTO { "auto", 0, 0, 0 } |
|
#define MOPT_RUMP { "rump", 0, 0, 0 } |
|
#define MOPT_NULL { NULL, 0, 0, 0 } |
|
|
#define MOPT_FSTAB_COMPAT \ |
#define MOPT_FSTAB_COMPAT \ |
MOPT_RO, \ |
MOPT_RO, \ |
|
|
MOPT_RDONLY, \ |
MOPT_RDONLY, \ |
MOPT_UNION, \ |
MOPT_UNION, \ |
MOPT_IGNORE, \ |
MOPT_IGNORE, \ |
MOPT_SYMPERM |
MOPT_SYMPERM, \ |
|
MOPT_RUMP |
|
|
__BEGIN_DECLS |
__BEGIN_DECLS |
typedef struct mntoptparse *mntoptparse_t; |
typedef struct mntoptparse *mntoptparse_t; |
mntoptparse_t getmntopts __P((const char *, const struct mntopt *, int *, |
mntoptparse_t getmntopts(const char *, const struct mntopt *, int *, int *); |
int *)); |
const char *getmntoptstr(mntoptparse_t, const char *); |
const char *getmntoptstr __P((mntoptparse_t, const char *)); |
long getmntoptnum(mntoptparse_t, const char *); |
long getmntoptnum __P((mntoptparse_t, const char *)); |
void freemntopts(mntoptparse_t); |
void freemntopts __P((mntoptparse_t)); |
|
|
|
extern int getmnt_silent; |
extern int getmnt_silent; |
__END_DECLS |
__END_DECLS |