aboutsummaryrefslogtreecommitdiff
path: root/sbin/mdconfig
diff options
context:
space:
mode:
Diffstat (limited to 'sbin/mdconfig')
-rw-r--r--sbin/mdconfig/mdconfig.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/sbin/mdconfig/mdconfig.c b/sbin/mdconfig/mdconfig.c
index 2f0049b6c755..0269fe943d4f 100644
--- a/sbin/mdconfig/mdconfig.c
+++ b/sbin/mdconfig/mdconfig.c
@@ -54,7 +54,7 @@ main(int argc, char **argv)
int cmdline = 0;
for (;;) {
- ch = getopt(argc, argv, "ab:df:lo:s:S:t:u:");
+ ch = getopt(argc, argv, "ab:df:lo:s:S:t:u:x:y:");
if (ch == -1)
break;
switch (ch) {
@@ -163,6 +163,16 @@ main(int argc, char **argv)
errx(1, "bad unit: %s", optarg);
mdio.md_options &= ~MD_AUTOUNIT;
break;
+ case 'x':
+ if (cmdline != 2)
+ usage();
+ mdio.md_fwsectors = strtoul(optarg, &p, 0);
+ break;
+ case 'y':
+ if (cmdline != 2)
+ usage();
+ mdio.md_fwheads = strtoul(optarg, &p, 0);
+ break;
default:
usage();
}