Provide a proper error message in mdconfig(8) when a filesystem is too

small, instead of a less meaningful error in newfs(8).
This commit is contained in:
Mike Barcroft 2002-03-21 07:46:09 +00:00
parent c302e53c27
commit 6a1bd01754
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=92866

View File

@ -144,6 +144,8 @@ main(int argc, char **argv)
mdio.md_size *= (1024 * 1024 * 1024 / DEV_BSIZE);
else
errx(1, "Unknown suffix on -s argument");
if (mdio.md_size < 192)
errx(1, "Filesystem too small");
break;
case 'u':
if (cmdline != 2 && cmdline != 3)