diff options
author | sobomax <sobomax@FreeBSD.org> | 2001-03-09 21:15:08 +0000 |
---|---|---|
committer | sobomax <sobomax@FreeBSD.org> | 2001-03-09 21:15:08 +0000 |
commit | 7197fe7761223aece74c895dbaebb5fb0acc56cf (patch) | |
tree | 5e9df7979c1286372c133f6128ea8a42838207ea /sbin/mdconfig | |
parent | a6a451d74aaac31c4ebac57432c18061b5d1befd (diff) | |
download | FreeBSD-src-7197fe7761223aece74c895dbaebb5fb0acc56cf.zip FreeBSD-src-7197fe7761223aece74c895dbaebb5fb0acc56cf.tar.gz |
In the absence of explicit ``-t type'' option assume that ``-f file''
implies ``-t vnode''.
Approved by: phk
Diffstat (limited to 'sbin/mdconfig')
-rw-r--r-- | sbin/mdconfig/mdconfig.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/sbin/mdconfig/mdconfig.c b/sbin/mdconfig/mdconfig.c index 6ce0e13..28618b8d 100644 --- a/sbin/mdconfig/mdconfig.c +++ b/sbin/mdconfig/mdconfig.c @@ -99,8 +99,13 @@ main(int argc, char **argv) cmdline=2; break; case 'f': - if (cmdline != 2) + if (cmdline != 1 && cmdline != 2) usage(); + if (cmdline == 1) { + /* Imply ``-t vnode'' */ + mdio.md_type = MD_VNODE; + mdio.md_options = MD_CLUSTER | MD_AUTOUNIT | MD_COMPRESS; + } mdio.md_file = optarg; break; case 'o': |