summaryrefslogtreecommitdiffstats
path: root/Manage.c
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.de>2010-04-09 09:18:53 +1000
committerNeilBrown <neilb@suse.de>2010-04-09 09:19:19 +1000
commit0f9ce65ed03f69c50ca506c2ef68d739db722971 (patch)
tree2f16c2b6d64b0857e6b31b5f44ac42f45ca8622f /Manage.c
parent7a5090d2247936d7cf7d9067c960317ad009940d (diff)
downloadmdadm-0f9ce65ed03f69c50ca506c2ef68d739db722971.tar.gz
mdadm-0f9ce65ed03f69c50ca506c2ef68d739db722971.tar.xz
mdadm-0f9ce65ed03f69c50ca506c2ef68d739db722971.zip
Add -fail support to --incremental
This can be used for hot-unplug. When a device has been remove, udev can call mdadm --incremental --fail sda and mdadm will find the array holding sda and remove sda from the array. Based on code from Doug Ledford <dledford@redhat.com> Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'Manage.c')
-rw-r--r--Manage.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Manage.c b/Manage.c
index ad85705..ba585d2 100644
--- a/Manage.c
+++ b/Manage.c
@@ -893,8 +893,8 @@ int Manage_subdevs(char *devname, int fd,
if (lfd >= 0)
close(lfd);
if (verbose >= 0)
- fprintf(stderr, Name ": hot removed %s\n",
- dnprintable);
+ fprintf(stderr, Name ": hot removed %s from %s\n",
+ dnprintable, devname);
break;
case 'f': /* set faulty */