mirror of
https://git.FreeBSD.org/src.git
synced 2025-02-06 18:29:47 +00:00
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);
|
||||
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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user