Changeset View
Changeset View
Standalone View
Standalone View
head/sbin/mount/mount.c
Show First 20 Lines • Show All 112 Lines • ▼ Show 20 Lines | static struct opt { | ||||
{ MNT_SOFTDEP, "soft-updates" }, | { MNT_SOFTDEP, "soft-updates" }, | ||||
{ MNT_SUJ, "journaled soft-updates" }, | { MNT_SUJ, "journaled soft-updates" }, | ||||
{ MNT_MULTILABEL, "multilabel" }, | { MNT_MULTILABEL, "multilabel" }, | ||||
{ MNT_ACLS, "acls" }, | { MNT_ACLS, "acls" }, | ||||
{ MNT_NFS4ACLS, "nfsv4acls" }, | { MNT_NFS4ACLS, "nfsv4acls" }, | ||||
{ MNT_GJOURNAL, "gjournal" }, | { MNT_GJOURNAL, "gjournal" }, | ||||
{ MNT_AUTOMOUNTED, "automounted" }, | { MNT_AUTOMOUNTED, "automounted" }, | ||||
{ MNT_VERIFIED, "verified" }, | { MNT_VERIFIED, "verified" }, | ||||
{ MNT_UNTRUSTED, "untrusted" }, | |||||
{ 0, NULL } | { 0, NULL } | ||||
}; | }; | ||||
/* | /* | ||||
* List of VFS types that can be remounted without becoming mounted on top | * List of VFS types that can be remounted without becoming mounted on top | ||||
* of each other. | * of each other. | ||||
* XXX Is this list correct? | * XXX Is this list correct? | ||||
*/ | */ | ||||
▲ Show 20 Lines • Show All 838 Lines • ▼ Show 20 Lines | flags2opts(int flags) | ||||
if (flags & MNT_NOATIME) res = catopt(res, "noatime"); | if (flags & MNT_NOATIME) res = catopt(res, "noatime"); | ||||
if (flags & MNT_NOCLUSTERR) res = catopt(res, "noclusterr"); | if (flags & MNT_NOCLUSTERR) res = catopt(res, "noclusterr"); | ||||
if (flags & MNT_NOCLUSTERW) res = catopt(res, "noclusterw"); | if (flags & MNT_NOCLUSTERW) res = catopt(res, "noclusterw"); | ||||
if (flags & MNT_NOSYMFOLLOW) res = catopt(res, "nosymfollow"); | if (flags & MNT_NOSYMFOLLOW) res = catopt(res, "nosymfollow"); | ||||
if (flags & MNT_SUIDDIR) res = catopt(res, "suiddir"); | if (flags & MNT_SUIDDIR) res = catopt(res, "suiddir"); | ||||
if (flags & MNT_MULTILABEL) res = catopt(res, "multilabel"); | if (flags & MNT_MULTILABEL) res = catopt(res, "multilabel"); | ||||
if (flags & MNT_ACLS) res = catopt(res, "acls"); | if (flags & MNT_ACLS) res = catopt(res, "acls"); | ||||
if (flags & MNT_NFS4ACLS) res = catopt(res, "nfsv4acls"); | if (flags & MNT_NFS4ACLS) res = catopt(res, "nfsv4acls"); | ||||
if (flags & MNT_UNTRUSTED) res = catopt(res, "untrusted"); | |||||
return (res); | return (res); | ||||
} | } |