Make the minimum filesystem size error message more clear
Signed-off-by: Shen Feng <shen@cn.fujitsu.com>
This commit is contained in:
parent
0d53b212d8
commit
f7f0e8567f
7
mkfs.c
7
mkfs.c
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue