Changeset View
Changeset View
Standalone View
Standalone View
sys/sys/mount.h
Show First 20 Lines • Show All 288 Lines • ▼ Show 20 Lines | #define MNT_REL(mp) do { \ | ||||
if ((mp)->mnt_vfs_ops && (mp)->mnt_ref < 0) \ | if ((mp)->mnt_vfs_ops && (mp)->mnt_ref < 0) \ | ||||
vfs_dump_mount_counters(mp); \ | vfs_dump_mount_counters(mp); \ | ||||
if ((mp)->mnt_ref == 0 && (mp)->mnt_vfs_ops) \ | if ((mp)->mnt_ref == 0 && (mp)->mnt_vfs_ops) \ | ||||
wakeup((mp)); \ | wakeup((mp)); \ | ||||
} while (0) | } while (0) | ||||
#endif /* _KERNEL */ | #endif /* _KERNEL */ | ||||
#if defined(_WANT_MNTOPTNAMES) || defined(_KERNEL) | |||||
struct mntoptnames { | |||||
uint64_t o_opt; | |||||
const char *o_name; | |||||
}; | |||||
#define MNTOPT_NAMES \ | |||||
{ MNT_ASYNC, "asynchronous" }, \ | |||||
{ MNT_EXPORTED, "NFS exported" }, \ | |||||
{ MNT_LOCAL, "local" }, \ | |||||
{ MNT_NOATIME, "noatime" }, \ | |||||
{ MNT_NOEXEC, "noexec" }, \ | |||||
{ MNT_NOSUID, "nosuid" }, \ | |||||
{ MNT_NOSYMFOLLOW, "nosymfollow" }, \ | |||||
{ MNT_QUOTA, "with quotas" }, \ | |||||
{ MNT_RDONLY, "read-only" }, \ | |||||
{ MNT_SYNCHRONOUS, "synchronous" }, \ | |||||
{ MNT_UNION, "union" }, \ | |||||
{ MNT_NOCLUSTERR, "noclusterr" }, \ | |||||
{ MNT_NOCLUSTERW, "noclusterw" }, \ | |||||
{ MNT_SUIDDIR, "suiddir" }, \ | |||||
{ MNT_SOFTDEP, "soft-updates" }, \ | |||||
{ MNT_SUJ, "journaled soft-updates" }, \ | |||||
{ MNT_MULTILABEL, "multilabel" }, \ | |||||
{ MNT_ACLS, "acls" }, \ | |||||
{ MNT_NFS4ACLS, "nfsv4acls" }, \ | |||||
{ MNT_GJOURNAL, "gjournal" }, \ | |||||
{ MNT_AUTOMOUNTED, "automounted" }, \ | |||||
{ MNT_VERIFIED, "verified" }, \ | |||||
{ MNT_UNTRUSTED, "untrusted" }, \ | |||||
{ MNT_NOCOVER, "nocover" }, \ | |||||
{ MNT_EMPTYDIR, "emptydir" }, \ | |||||
{ MNT_UPDATE, "update" }, \ | |||||
{ MNT_DELEXPORT, "delexport" }, \ | |||||
{ MNT_RELOAD, "reload" }, \ | |||||
{ MNT_FORCE, "force" }, \ | |||||
{ MNT_SNAPSHOT, "snapshot" }, \ | |||||
{ 0, NULL } | |||||
#endif | |||||
/* | /* | ||||
* User specifiable flags, stored in mnt_flag. | * User specifiable flags, stored in mnt_flag. | ||||
*/ | */ | ||||
#define MNT_RDONLY 0x0000000000000001ULL /* read only filesystem */ | #define MNT_RDONLY 0x0000000000000001ULL /* read only filesystem */ | ||||
#define MNT_SYNCHRONOUS 0x0000000000000002ULL /* fs written synchronously */ | #define MNT_SYNCHRONOUS 0x0000000000000002ULL /* fs written synchronously */ | ||||
#define MNT_NOEXEC 0x0000000000000004ULL /* can't exec from filesystem */ | #define MNT_NOEXEC 0x0000000000000004ULL /* can't exec from filesystem */ | ||||
#define MNT_NOSUID 0x0000000000000008ULL /* don't honor setuid fs bits */ | #define MNT_NOSUID 0x0000000000000008ULL /* don't honor setuid fs bits */ | ||||
#define MNT_NFS4ACLS 0x0000000000000010ULL /* enable NFS version 4 ACLs */ | #define MNT_NFS4ACLS 0x0000000000000010ULL /* enable NFS version 4 ACLs */ | ||||
▲ Show 20 Lines • Show All 795 Lines • Show Last 20 Lines |