diff options
author | mike <mike@FreeBSD.org> | 2002-03-21 07:46:09 +0000 |
---|---|---|
committer | mike <mike@FreeBSD.org> | 2002-03-21 07:46:09 +0000 |
commit | c0ffe1791c52bb12277d5d8905c040d7754172e6 (patch) | |
tree | 18c6d43acac70006d03656b292ae11713f03b4c7 /sbin | |
parent | b460095c1d66da87440e518a58c6d3797edafba1 (diff) | |
download | FreeBSD-src-c0ffe1791c52bb12277d5d8905c040d7754172e6.zip FreeBSD-src-c0ffe1791c52bb12277d5d8905c040d7754172e6.tar.gz |
Provide a proper error message in mdconfig(8) when a filesystem is too
small, instead of a less meaningful error in newfs(8).
Diffstat (limited to 'sbin')
-rw-r--r-- | sbin/mdconfig/mdconfig.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sbin/mdconfig/mdconfig.c b/sbin/mdconfig/mdconfig.c index 8a6019f..8407423 100644 --- a/sbin/mdconfig/mdconfig.c +++ b/sbin/mdconfig/mdconfig.c @@ -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) |