aboutsummaryrefslogtreecommitdiffstats
path: root/sbin/mdmfs/mdmfs.c
diff options
context:
space:
mode:
authorRobert Watson <rwatson@FreeBSD.org>2004-02-26 01:15:47 +0000
committerRobert Watson <rwatson@FreeBSD.org>2004-02-26 01:15:47 +0000
commit1d3170aa53835ab0f2b64c9e1f8829410dc7c9d7 (patch)
tree9b3aee90bd59c1b25faf06613150c9106dd00909 /sbin/mdmfs/mdmfs.c
parentce20d788fa43a006bd466bc2bf69ee9cf1651a6b (diff)
downloadsrc-1d3170aa53835ab0f2b64c9e1f8829410dc7c9d7.tar.gz
src-1d3170aa53835ab0f2b64c9e1f8829410dc7c9d7.zip
Add a "-l" parameter to mdmfs so that memory file systems can be
created with the multilabel flag from inception. This simply passes the "-l" flag on to newfs(8). Obtained from: TrustedBSD Project Sponsored by: DARPA, McAfee Research
Notes
Notes: svn path=/head/; revision=126255
Diffstat (limited to 'sbin/mdmfs/mdmfs.c')
-rw-r--r--sbin/mdmfs/mdmfs.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/sbin/mdmfs/mdmfs.c b/sbin/mdmfs/mdmfs.c
index ff4d41dbafab..2000f3e6b136 100644
--- a/sbin/mdmfs/mdmfs.c
+++ b/sbin/mdmfs/mdmfs.c
@@ -119,7 +119,7 @@ main(int argc, char **argv)
compat = true;
while ((ch = getopt(argc, argv,
- "a:b:Cc:Dd:e:F:f:hi:LMm:Nn:O:o:p:Ss:t:Uv:w:X")) != -1)
+ "a:b:Cc:Dd:e:F:f:hi:LlMm:Nn:O:o:p:Ss:t:Uv:w:X")) != -1)
switch (ch) {
case 'a':
argappend(&newfs_arg, "-a %s", optarg);
@@ -167,6 +167,9 @@ main(int argc, char **argv)
usage();
loudsubs = true;
break;
+ case 'l':
+ argappend(&newfs_arg, "-l");
+ break;
case 'M':
if (have_mdtype)
usage();