]> git.ipfire.org Git - thirdparty/mdadm.git/commitdiff
imsm: FIX: indicate that metadada has to be written
authorAdam Kwolek <adam.kwolek@intel.com>
Sun, 20 Mar 2011 04:47:31 +0000 (15:47 +1100)
committerNeilBrown <neilb@suse.de>
Sun, 20 Mar 2011 04:47:31 +0000 (15:47 +1100)
During adding spare disks to raid0, spare metadata is not written.
This is due to exit form sync_metadata() on empty updates_pending flag.

When mdmon is absent indicate sync_metadata() to flush changes to disks.

Signed-off-by: Adam Kwolek <adam.kwolek@intel.com>
Signed-off-by: NeilBrown <neilb@suse.de>
super-intel.c

index 44c100b5e97bf22a375cf687fcd5b1b5fe19f435..acd7571fa4af1debd09585cb1788cb1851c26dd0 100644 (file)
@@ -3838,6 +3838,7 @@ static int add_to_super_imsm(struct supertype *st, mdu_disk_info_t *dk,
        } else {
                dd->next = super->disks;
                super->disks = dd;
+               super->updates_pending++;
        }
 
        return 0;