From: Neil Brown Date: Wed, 25 Jun 2008 23:27:15 +0000 (+1000) Subject: Improve error message when mdadm fails to stop an array. X-Git-Tag: mdadm-2.6.8~25 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d927f3c4dbd0f2ae25c9b52d9b7c30ed1e8729f8;p=thirdparty%2Fmdadm.git Improve error message when mdadm fails to stop an array. Signed-off-by: Neil Brown --- diff --git a/Manage.c b/Manage.c index 1fb84689..8297708d 100644 --- a/Manage.c +++ b/Manage.c @@ -112,9 +112,14 @@ int Manage_runstop(char *devname, int fd, int runstop, int quiet) struct map_ent *map = NULL; struct stat stb; if (ioctl(fd, STOP_ARRAY, NULL)) { - if (quiet==0) + if (quiet==0) { fprintf(stderr, Name ": fail to stop array %s: %s\n", devname, strerror(errno)); + if (errno == EBUSY) + fprintf(stderr, "Perhaps a running " + "process, mounted filesystem " + "or active volume group?\n"); + } return 1; } if (quiet <= 0)