From f7f0e8567f9a50546881ee66f70689df694ebabf Mon Sep 17 00:00:00 2001 From: Shen Feng Date: Wed, 7 Jan 2009 14:57:12 -0500 Subject: [PATCH] Make the minimum filesystem size error message more clear Signed-off-by: Shen Feng --- mkfs.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/mkfs.c b/mkfs.c index 89de8ac9..76d3a591 100644 --- a/mkfs.c +++ b/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: