From: Guoqing Jiang Date: Tue, 1 Dec 2015 16:30:10 +0000 (+0800) Subject: mdadm: output info more precisely when change bitmap to none X-Git-Tag: mdadm-3.4~31 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=37d0ca9be68e4a677bac02a5dde9a87f20110739;p=thirdparty%2Fmdadm.git mdadm: output info more precisely when change bitmap to none WHen change bitmap to none, the infos could be more accurate based on existed bitmap type. And s->bitmap_file is passed from cmd "--bitmap=TYPE", so remove s->bitmap_file from err info since it should means change the bitmap to one type failed rather than the type is already presented. Signed-off-by: Guoqing Jiang Signed-off-by: NeilBrown --- diff --git a/Grow.c b/Grow.c index ee48c361..6dfb9c9c 100755 --- a/Grow.c +++ b/Grow.c @@ -328,12 +328,15 @@ int Grow_addbitmap(char *devname, int fd, struct context *c, struct shape *s) if (strcmp(s->bitmap_file, "none")==0) { array.state &= ~(1<bitmap_file, devname); + pr_err("bitmap already present on %s\n", devname); return 1; }