diff options
author | phk <phk@FreeBSD.org> | 2003-03-03 13:05:00 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2003-03-03 13:05:00 +0000 |
commit | 7499df545729c9d91d2eabb72e479a6cd3e09fab (patch) | |
tree | ebeb4dc8a6258d6e27bf80318a7c535c404b73c1 /sbin/mdconfig/mdconfig.c | |
parent | 8a0180038b858afdb5efab37fccdc9cd13a552e9 (diff) | |
download | FreeBSD-src-7499df545729c9d91d2eabb72e479a6cd3e09fab.zip FreeBSD-src-7499df545729c9d91d2eabb72e479a6cd3e09fab.tar.gz |
Add a "-S sectorsize" option to enable Kirk to find a bug :-)
Diffstat (limited to 'sbin/mdconfig/mdconfig.c')
-rw-r--r-- | sbin/mdconfig/mdconfig.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/sbin/mdconfig/mdconfig.c b/sbin/mdconfig/mdconfig.c index f92e6a9..8ead3ad 100644 --- a/sbin/mdconfig/mdconfig.c +++ b/sbin/mdconfig/mdconfig.c @@ -37,7 +37,7 @@ void usage() { fprintf(stderr, "usage:\n"); - fprintf(stderr, "\tmdconfig -a -t type [-o [no]option]... [ -f file] [-s size] [-u unit]\n"); + fprintf(stderr, "\tmdconfig -a -t type [-o [no]option]... [ -f file] [-s size] [-S sectorsize] [-u unit]\n"); fprintf(stderr, "\tmdconfig -d -u unit\n"); fprintf(stderr, "\tmdconfig -l [-u unit]\n"); fprintf(stderr, "\t\ttype = {malloc, preload, vnode, swap}\n"); @@ -54,7 +54,7 @@ main(int argc, char **argv) int cmdline = 0; for (;;) { - ch = getopt(argc, argv, "ab:df:lo:s:t:u:"); + ch = getopt(argc, argv, "ab:df:lo:s:S:t:u:"); if (ch == -1) break; switch (ch) { @@ -130,6 +130,11 @@ main(int argc, char **argv) else errx(1, "Unknown option."); break; + case 'S': + if (cmdline != 2) + usage(); + mdio.md_secsize = strtoul(optarg, &p, 0); + break; case 's': if (cmdline != 2) usage(); |