summaryrefslogtreecommitdiff
path: root/mkfs.c
diff options
context:
space:
mode:
authorShen Feng <shen@cn.fujitsu.com>2009-01-07 14:57:12 -0500
committerChris Mason <chris.mason@oracle.com>2009-01-07 14:57:12 -0500
commitf7f0e8567f9a50546881ee66f70689df694ebabf (patch)
tree50c7b00d641c168a658179b3ca1fbddf6835ac02 /mkfs.c
parent0d53b212d8464c6476e0cda0bbb8533e080816f6 (diff)
Make the minimum filesystem size error message more clear
Signed-off-by: Shen Feng <shen@cn.fujitsu.com>
Diffstat (limited to 'mkfs.c')
-rw-r--r--mkfs.c7
1 files changed, 7 insertions, 0 deletions
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: