mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-27 16:39:08 +00:00
In the absence of explicit `-t type'' option assume that
`-f file''
implies ``-t vnode''. Approved by: phk
This commit is contained in:
parent
b42cba33a3
commit
ed23a390c2
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=74052
@ -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':
|
||||
|
Loading…
Reference in New Issue
Block a user