Lines 89-95
Link Here
|
89 |
*mount_arg; |
89 |
*mount_arg; |
90 |
enum md_types mdtype; /* The type of our memory disk. */ |
90 |
enum md_types mdtype; /* The type of our memory disk. */ |
91 |
bool have_mdtype; |
91 |
bool have_mdtype; |
92 |
bool detach, softdep, autounit; |
92 |
bool detach, softdep, autounit, no_newfs; |
93 |
char *mtpoint, *unitstr; |
93 |
char *mtpoint, *unitstr; |
94 |
char ch, *p; |
94 |
char ch, *p; |
95 |
void *set; |
95 |
void *set; |
Lines 99-104
Link Here
|
99 |
detach = true; |
99 |
detach = true; |
100 |
softdep = true; |
100 |
softdep = true; |
101 |
autounit = false; |
101 |
autounit = false; |
|
|
102 |
no_newfs = false; |
102 |
have_mdtype = false; |
103 |
have_mdtype = false; |
103 |
mdname = MD_NAME; |
104 |
mdname = MD_NAME; |
104 |
mdnamelen = strlen(mdname); |
105 |
mdnamelen = strlen(mdname); |
Lines 118-124
Link Here
|
118 |
compat = true; |
119 |
compat = true; |
119 |
|
120 |
|
120 |
while ((ch = getopt(argc, argv, |
121 |
while ((ch = getopt(argc, argv, |
121 |
"a:b:Cc:Dd:e:F:f:hi:LMm:Nn:O:o:p:Ss:t:Uv:w:X")) != -1) |
122 |
"a:b:Cc:Dd:e:F:f:hi:LMm:Nn:O:o:Pp:Ss:t:Uv:w:X")) != -1) |
122 |
switch (ch) { |
123 |
switch (ch) { |
123 |
case 'a': |
124 |
case 'a': |
124 |
argappend(&newfs_arg, "-a %s", optarg); |
125 |
argappend(&newfs_arg, "-a %s", optarg); |
Lines 189-194
Link Here
|
189 |
case 'o': |
190 |
case 'o': |
190 |
argappend(&mount_arg, "-o %s", optarg); |
191 |
argappend(&mount_arg, "-o %s", optarg); |
191 |
break; |
192 |
break; |
|
|
193 |
case 'P': |
194 |
no_newfs = true; |
195 |
break; |
192 |
case 'p': |
196 |
case 'p': |
193 |
if (compat) |
197 |
if (compat) |
194 |
usage(); |
198 |
usage(); |
Lines 264-270
Link Here
|
264 |
do_mdconfig_attach_au(mdconfig_arg, mdtype); |
268 |
do_mdconfig_attach_au(mdconfig_arg, mdtype); |
265 |
else |
269 |
else |
266 |
do_mdconfig_attach(mdconfig_arg, mdtype); |
270 |
do_mdconfig_attach(mdconfig_arg, mdtype); |
267 |
do_newfs(newfs_arg); |
271 |
if (!no_newfs || (mdtype != MD_VNODE)) |
|
|
272 |
do_newfs(newfs_arg); |
268 |
do_mount(mount_arg, mtpoint); |
273 |
do_mount(mount_arg, mtpoint); |
269 |
do_mtptsetup(mtpoint, &mi); |
274 |
do_mtptsetup(mtpoint, &mi); |
270 |
|
275 |
|
Lines 661-673
Link Here
|
661 |
name = "mdmfs"; |
666 |
name = "mdmfs"; |
662 |
if (!compat) |
667 |
if (!compat) |
663 |
fprintf(stderr, |
668 |
fprintf(stderr, |
664 |
"usage: %s [-DLMNSUX] [-a maxcontig [-b block-size] [-c cylinders]\n" |
669 |
"usage: %s [-DLMNPSUX] [-a maxcontig [-b block-size] [-c cylinders]\n" |
665 |
"\t[-d rotdelay] [-e maxbpg] [-F file] [-f frag-size] [-i bytes]\n" |
670 |
"\t[-d rotdelay] [-e maxbpg] [-F file] [-f frag-size] [-i bytes]\n" |
666 |
"\t[-m percent-free] [-n rotational-positions] [-O optimization]\n" |
671 |
"\t[-m percent-free] [-n rotational-positions] [-O optimization]\n" |
667 |
"\t[-o mount-options] [-p permissions] [-s size] [-w user:group]\n" |
672 |
"\t[-o mount-options] [-p permissions] [-s size] [-w user:group]\n" |
668 |
"\tmd-device mount-point\n", name); |
673 |
"\tmd-device mount-point\n", name); |
669 |
fprintf(stderr, |
674 |
fprintf(stderr, |
670 |
"usage: %s -C [-NU] [-a maxcontig] [-b block-size] [-c cylinders]\n" |
675 |
"usage: %s -C [-NPU] [-a maxcontig] [-b block-size] [-c cylinders]\n" |
671 |
"\t[-d rotdelay] [-e maxbpg] [-F file] [-f frag-size] [-i bytes]\n" |
676 |
"\t[-d rotdelay] [-e maxbpg] [-F file] [-f frag-size] [-i bytes]\n" |
672 |
"\t[-m percent-free] [-n rotational-positions] [-O optimization]\n" |
677 |
"\t[-m percent-free] [-n rotational-positions] [-O optimization]\n" |
673 |
"\t[-o mount-options] [-s size] md-device mount-point\n", name); |
678 |
"\t[-o mount-options] [-s size] md-device mount-point\n", name); |