]> git.ipfire.org Git - thirdparty/mdadm.git/blobdiff - managemon.c
Handle device removal from container
[thirdparty/mdadm.git] / managemon.c
index 4592a9914ff73fda42ea5a5b8b5c64265c3be2e2..569449b5d97aedac090e1bf2d60886989ece6ae0 100644 (file)
@@ -434,20 +434,12 @@ void manage(struct mdstat_ent *mdstat, struct supertype *container)
 
 static int handle_message(struct supertype *container, struct md_message *msg)
 {
-       int err;
        struct md_generic_cmd *cmd = msg->buf;
 
        if (!cmd)
                return 0;
 
        switch (cmd->action) {
-       case md_action_remove_device:
-
-               /* forward to the monitor */
-               active_cmd = cmd;
-               write(container->mgr_pipe[1], &err, 1);
-               read(container->mon_pipe[0], &err, 1);
-               return err;
 
        default:
                return -1;