From 37d0ca9be68e4a677bac02a5dde9a87f20110739 Mon Sep 17 00:00:00 2001 From: Guoqing Jiang Date: Wed, 2 Dec 2015 00:30:10 +0800 Subject: [PATCH] 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 --- Grow.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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; } -- 2.39.5