summaryrefslogtreecommitdiffstats
path: root/sbin/mdconfig
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2003-04-09 11:59:29 +0000
committerphk <phk@FreeBSD.org>2003-04-09 11:59:29 +0000
commitf3a79aea416b801c084dcb489e742ede4cc0db35 (patch)
treef2b382b11837e511915f6b395f4e2822271ab31b /sbin/mdconfig
parent10cf38638588a4fce7f343231a94eab7909408e4 (diff)
downloadFreeBSD-src-f3a79aea416b801c084dcb489e742ede4cc0db35.zip
FreeBSD-src-f3a79aea416b801c084dcb489e742ede4cc0db35.tar.gz
Add a couple of undocumented test options to MD(4) to aid in regression
testting of GEOM.
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 2f0049b..0269fe9 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();
}
OpenPOWER on IntegriCloud