aboutsummaryrefslogtreecommitdiff
path: root/sbin/mount
diff options
context:
space:
mode:
authorRobert Watson <rwatson@FreeBSD.org>2002-08-02 07:02:51 +0000
committerRobert Watson <rwatson@FreeBSD.org>2002-08-02 07:02:51 +0000
commitba0fbe963748c752a191b98233acc738c6f4bb0f (patch)
tree985d024099c668b3346f0d73fcc1a3545480a65e /sbin/mount
parentb5620ce3a63ec4e91603b3c30c6b6727e866e3f1 (diff)
Notes
Diffstat (limited to 'sbin/mount')
-rw-r--r--sbin/mount/mntopts.h4
-rw-r--r--sbin/mount/mount.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/sbin/mount/mntopts.h b/sbin/mount/mntopts.h
index 8ff13f7940acb..c7cecf5185509 100644
--- a/sbin/mount/mntopts.h
+++ b/sbin/mount/mntopts.h
@@ -57,6 +57,7 @@ struct mntopt {
#define MOPT_NOCLUSTERW { "clusterw", 1, MNT_NOCLUSTERW, 0 }
#define MOPT_SUIDDIR { "suiddir", 0, MNT_SUIDDIR, 0 }
#define MOPT_SNAPSHOT { "snapshot", 0, MNT_SNAPSHOT, 0 }
+#define MOPT_MULTILABEL { "multilabel", 0, MNT_MULTILABEL, 0 }
/* Control flags. */
#define MOPT_FORCE { "force", 0, MNT_FORCE, 0 }
@@ -86,7 +87,8 @@ struct mntopt {
MOPT_RDONLY, \
MOPT_UNION, \
MOPT_NOCLUSTERR, \
- MOPT_NOCLUSTERW
+ MOPT_NOCLUSTERW, \
+ MOPT_MULTILABEL
void getmntopts(const char *, const struct mntopt *, int *, int *);
void rmslashes(char *, char *);
diff --git a/sbin/mount/mount.c b/sbin/mount/mount.c
index 64c3f573f5d34..e08202ff8a93d 100644
--- a/sbin/mount/mount.c
+++ b/sbin/mount/mount.c
@@ -107,6 +107,7 @@ static struct opt {
{ MNT_NOCLUSTERW, "noclusterw" },
{ MNT_SUIDDIR, "suiddir" },
{ MNT_SOFTDEP, "soft-updates" },
+ { MNT_MULTILABEL, "multilabel" },
{ 0, NULL }
};
@@ -762,6 +763,7 @@ flags2opts(flags)
if (flags & MNT_NOCLUSTERW) res = catopt(res, "noclusterw");
if (flags & MNT_NOSYMFOLLOW) res = catopt(res, "nosymfollow");
if (flags & MNT_SUIDDIR) res = catopt(res, "suiddir");
+ if (flags & MNT_MULTILABEL) res = catopt(res, "multilabel");
return res;
}