Make the minimum filesystem size error message more clear

Signed-off-by: Shen Feng <shen@cn.fujitsu.com>
This commit is contained in:
Shen Feng 2009-01-07 14:57:12 -05:00 committed by Chris Mason
parent 0d53b212d8
commit f7f0e8567f
1 changed files with 7 additions and 0 deletions

7
mkfs.c
View File

@ -373,6 +373,13 @@ int main(int ac, char **av)
break;
case 'b':
block_count = parse_size(optarg);
if (block_count < 256*1024*1024) {
fprintf(stderr, "File system size "
"%llu bytes is too small, "
"256M is required at least\n",
block_count);
exit(1);
}
zero_end = 0;
break;
default: