]> git.ipfire.org Git - thirdparty/mdadm.git/blobdiff - managemon.c
Remove getinfo_super_n and do some other cleaning up.
[thirdparty/mdadm.git] / managemon.c
index 43db56692a4f61ad006767f542f280dee9752077..4592a9914ff73fda42ea5a5b8b5c64265c3be2e2 100644 (file)
@@ -105,6 +105,7 @@ static void free_aa(struct active_array *aa)
        /* Note that this doesn't close fds if they are being used
         * by a clone.  ->container will be set for a clone
         */
+       dprintf("%s: devnum: %d\n", __func__, aa->devnum);
        if (!aa->container)
                close_aa(aa);
        while (aa->info.devs) {
@@ -198,7 +199,9 @@ void check_update_queue(struct supertype *container)
        while (update_queue_handled) {
                struct metadata_update *this = update_queue_handled;
                update_queue_handled = this->next;
-//             free(this->buf);
+               free(this->buf);
+               if (this->space)
+                       free(this->space);
                free(this);
        }
        if (update_queue == NULL &&
@@ -380,6 +383,8 @@ static void manage_new(struct mdstat_ent *mdstat,
        new->info.state_fd = sysfs_open(new->devnum, NULL, "array_state");
        new->resync_start_fd = sysfs_open(new->devnum, NULL, "resync_start");
        new->resync_start = 0;
+       dprintf("%s: inst: %d action: %d state: %d\n", __func__, atoi(inst),
+               new->action_fd, new->info.state_fd);
 
        sysfs_free(mdi);
        // finds and compares.