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:
parent
c302e53c27
commit
6a1bd01754
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=92866
@ -144,6 +144,8 @@ main(int argc, char **argv)
|
|||||||
mdio.md_size *= (1024 * 1024 * 1024 / DEV_BSIZE);
|
mdio.md_size *= (1024 * 1024 * 1024 / DEV_BSIZE);
|
||||||
else
|
else
|
||||||
errx(1, "Unknown suffix on -s argument");
|
errx(1, "Unknown suffix on -s argument");
|
||||||
|
if (mdio.md_size < 192)
|
||||||
|
errx(1, "Filesystem too small");
|
||||||
break;
|
break;
|
||||||
case 'u':
|
case 'u':
|
||||||
if (cmdline != 2 && cmdline != 3)
|
if (cmdline != 2 && cmdline != 3)
|
||||||
|
Loading…
Reference in New Issue
Block a user