Better error message for a case that I hit.

This commit is contained in:
Warner Losh 2000-04-14 06:10:01 +00:00
parent fba0ed115e
commit 71e93b3961
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=59215

View File

@ -520,7 +520,8 @@ main(int argc, char *argv[])
warnx("warning: sectors/FAT limits file system to %u clusters",
cls);
if (cls < mincls(fat))
errx(1, "too few clusters for FAT%u", fat);
errx(1, "%u clusters too few clusters for FAT%u, need %u", cls, fat,
mincls(fat));
if (cls > maxcls(fat)) {
cls = maxcls(fat);
bpb.bsec = x1 + (cls + 1) * bpb.spc - 1;