Teach mount(8) about MNT_ACLS for the purposes of mount options and
mount option printing. Obtained from: TrustedBSD Project Sponsored by: DARPA, Network Associates Laboratories
This commit is contained in:
parent
77e8341280
commit
03d94b50e5
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=105118
@ -58,6 +58,7 @@ struct mntopt {
|
|||||||
#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 }
|
||||||
|
|
||||||
/* Control flags. */
|
/* Control flags. */
|
||||||
#define MOPT_FORCE { "force", 0, MNT_FORCE, 0 }
|
#define MOPT_FORCE { "force", 0, MNT_FORCE, 0 }
|
||||||
@ -88,7 +89,8 @@ struct mntopt {
|
|||||||
MOPT_UNION, \
|
MOPT_UNION, \
|
||||||
MOPT_NOCLUSTERR, \
|
MOPT_NOCLUSTERR, \
|
||||||
MOPT_NOCLUSTERW, \
|
MOPT_NOCLUSTERW, \
|
||||||
MOPT_MULTILABEL
|
MOPT_MULTILABEL, \
|
||||||
|
MOPT_ACLS
|
||||||
|
|
||||||
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 *);
|
||||||
|
@ -108,6 +108,7 @@ static struct opt {
|
|||||||
{ MNT_SUIDDIR, "suiddir" },
|
{ MNT_SUIDDIR, "suiddir" },
|
||||||
{ MNT_SOFTDEP, "soft-updates" },
|
{ MNT_SOFTDEP, "soft-updates" },
|
||||||
{ MNT_MULTILABEL, "multilabel" },
|
{ MNT_MULTILABEL, "multilabel" },
|
||||||
|
{ MNT_ACLS, "acls" },
|
||||||
{ 0, NULL }
|
{ 0, NULL }
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -764,6 +765,7 @@ flags2opts(flags)
|
|||||||
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");
|
||||||
|
|
||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user