projects
/
platform
/
upstream
/
btrfs-progs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0d53b21
)
Make the minimum filesystem size error message more clear
author
Shen Feng
<shen@cn.fujitsu.com>
Wed, 7 Jan 2009 19:57:12 +0000
(14:57 -0500)
committer
Chris Mason
<chris.mason@oracle.com>
Wed, 7 Jan 2009 19:57:12 +0000
(14:57 -0500)
Signed-off-by: Shen Feng <shen@cn.fujitsu.com>
mkfs.c
patch
|
blob
|
history
diff --git
a/mkfs.c
b/mkfs.c
index
89de8ac
..
76d3a59
100644
(file)
--- 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: