summaryrefslogtreecommitdiff
path: root/mkfs.c
diff options
context:
space:
mode:
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: