In the absence of explicit `-t type'' option assume that `-f file''

implies ``-t vnode''.

Approved by:	phk
This commit is contained in:
Maxim Sobolev 2001-03-09 21:15:08 +00:00
parent b42cba33a3
commit ed23a390c2
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=74052

View File

@ -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':