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
This commit is contained in:
parent
ce20d788fa
commit
1d3170aa53
@ -45,6 +45,7 @@ driver
|
|||||||
.Op Fl F Ar file
|
.Op Fl F Ar file
|
||||||
.Op Fl f Ar frag-size
|
.Op Fl f Ar frag-size
|
||||||
.Op Fl i Ar bytes
|
.Op Fl i Ar bytes
|
||||||
|
.Op Fl l
|
||||||
.Op Fl m Ar percent-free
|
.Op Fl m Ar percent-free
|
||||||
.Op Fl n Ar rotational-positions
|
.Op Fl n Ar rotational-positions
|
||||||
.Op Fl O Ar optimization
|
.Op Fl O Ar optimization
|
||||||
@ -162,6 +163,8 @@ memory disk backed by
|
|||||||
The fragment size of the file system in bytes.
|
The fragment size of the file system in bytes.
|
||||||
.It Fl i Ar bytes
|
.It Fl i Ar bytes
|
||||||
Number of bytes per inode.
|
Number of bytes per inode.
|
||||||
|
.It Fl l
|
||||||
|
Enables multilabel MAC on the new file system.
|
||||||
.It Fl L
|
.It Fl L
|
||||||
Show the output of the helper programs.
|
Show the output of the helper programs.
|
||||||
By default,
|
By default,
|
||||||
|
@ -119,7 +119,7 @@ main(int argc, char **argv)
|
|||||||
compat = true;
|
compat = true;
|
||||||
|
|
||||||
while ((ch = getopt(argc, argv,
|
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) {
|
switch (ch) {
|
||||||
case 'a':
|
case 'a':
|
||||||
argappend(&newfs_arg, "-a %s", optarg);
|
argappend(&newfs_arg, "-a %s", optarg);
|
||||||
@ -167,6 +167,9 @@ main(int argc, char **argv)
|
|||||||
usage();
|
usage();
|
||||||
loudsubs = true;
|
loudsubs = true;
|
||||||
break;
|
break;
|
||||||
|
case 'l':
|
||||||
|
argappend(&newfs_arg, "-l");
|
||||||
|
break;
|
||||||
case 'M':
|
case 'M':
|
||||||
if (have_mdtype)
|
if (have_mdtype)
|
||||||
usage();
|
usage();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user