summaryrefslogtreecommitdiffstats
path: root/Create.c
diff options
context:
space:
mode:
authorNeil Brown <neilb@suse.de>2002-03-15 05:21:36 +0000
committerNeil Brown <neilb@suse.de>2002-03-15 05:21:36 +0000
commit56eb10c0b6e8f21540af444c8a28aa9e8f138ce6 (patch)
tree3b791ce573cca8c746f318411cb63d8c677678a1 /Create.c
parent9a9dab3670110c2db7fe6f716977b72adedbf855 (diff)
downloadmdadm-56eb10c0b6e8f21540af444c8a28aa9e8f138ce6.tar.gz
mdadm-56eb10c0b6e8f21540af444c8a28aa9e8f138ce6.tar.xz
mdadm-56eb10c0b6e8f21540af444c8a28aa9e8f138ce6.zip
mdadm-0.7.1mdadm-0.7.1
Diffstat (limited to 'Create.c')
-rw-r--r--Create.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Create.c b/Create.c
index d801fb4..3dcd82c 100644
--- a/Create.c
+++ b/Create.c
@@ -193,7 +193,7 @@ int Create(char *mddev, int mdfd,
if (verbose && level>0)
fprintf(stderr, Name ": size set to %dK\n", size);
}
- if ((maxsize-size)*100 > maxsize) {
+ if (level >= 1 && ((maxsize-size)*100 > maxsize)) {
fprintf(stderr, Name ": largest drive (%s) exceed size (%dK) by more than 1%\n",
maxdisc, size);
warn = 1;