aboutsummaryrefslogtreecommitdiff
path: root/sbin/mdconfig/mdconfig.c
diff options
context:
space:
mode:
authorPoul-Henning Kamp <phk@FreeBSD.org>2003-04-09 11:59:29 +0000
committerPoul-Henning Kamp <phk@FreeBSD.org>2003-04-09 11:59:29 +0000
commit4e8bfe148260702a6d750c239434e43a3a47a40c (patch)
treef2b382b11837e511915f6b395f4e2822271ab31b /sbin/mdconfig/mdconfig.c
parentce5b934709be8dc766eac9401f19a012315cd53f (diff)
downloadsrc-4e8bfe148260702a6d750c239434e43a3a47a40c.tar.gz
src-4e8bfe148260702a6d750c239434e43a3a47a40c.zip
Add a couple of undocumented test options to MD(4) to aid in regression
testting of GEOM.
Notes
Notes: svn path=/head/; revision=113289
Diffstat (limited to 'sbin/mdconfig/mdconfig.c')
-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();
}