summaryrefslogtreecommitdiffstats
path: root/sbin/mdmfs
diff options
context:
space:
mode:
authorremko <remko@FreeBSD.org>2007-05-14 19:23:13 +0000
committerremko <remko@FreeBSD.org>2007-05-14 19:23:13 +0000
commitba2a70ab9b68b48d14ba24cbe6c5f447a2e94e2a (patch)
tree9874cb5cf628de9aaf047191ef68869c870f4b25 /sbin/mdmfs
parent1895dab4af9425cde984800297893366781fa5d5 (diff)
downloadFreeBSD-src-ba2a70ab9b68b48d14ba24cbe6c5f447a2e94e2a.zip
FreeBSD-src-ba2a70ab9b68b48d14ba24cbe6c5f447a2e94e2a.tar.gz
-n is used by newfs to tell "do not generate a .snap directory" instead of
specifying rotational-positions, reflect that in the command arguments. PR: bin/110178 Submitted by: Alex Kozlov <spam at rm-rf dot kiev dot ua> Approved by: imp (mentor)
Diffstat (limited to 'sbin/mdmfs')
-rw-r--r--sbin/mdmfs/mdmfs.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sbin/mdmfs/mdmfs.c b/sbin/mdmfs/mdmfs.c
index 59e194e..bdd880b 100644
--- a/sbin/mdmfs/mdmfs.c
+++ b/sbin/mdmfs/mdmfs.c
@@ -127,7 +127,7 @@ main(int argc, char **argv)
}
while ((ch = getopt(argc, argv,
- "a:b:Cc:Dd:E:e:F:f:hi:LlMm:Nn:O:o:Pp:Ss:t:Uv:w:X")) != -1)
+ "a:b:Cc:Dd:E:e:F:f:hi:LlMm:NnO:o:Pp:Ss:t:Uv:w:X")) != -1)
switch (ch) {
case 'a':
argappend(&newfs_arg, "-a %s", optarg);
@@ -188,7 +188,7 @@ main(int argc, char **argv)
norun = true;
break;
case 'n':
- argappend(&newfs_arg, "-n %s", optarg);
+ argappend(&newfs_arg, "-n");
break;
case 'O':
argappend(&newfs_arg, "-o %s", optarg);
@@ -656,10 +656,10 @@ usage(void)
{
fprintf(stderr,
-"usage: %s [-DLlMNPSUX] [-a maxcontig] [-b block-size]\n"
+"usage: %s [-DLlMNnPSUX] [-a maxcontig] [-b block-size]\n"
"\t[-c blocks-per-cylinder-group][-d max-extent-size] [-E path-mdconfig]\n"
"\t[-e maxbpg] [-F file] [-f frag-size] [-i bytes] [-m percent-free]\n"
-"\t[-n rotational-positions] [-O optimization] [-o mount-options]\n"
+"\t[-O optimization] [-o mount-options]\n"
"\t[-p permissions] [-s size] [-v version] [-w user:group]\n"
"\tmd-device mount-point\n", getprogname());
exit(1);
OpenPOWER on IntegriCloud