From ceaf0ee19eaf72754cc8ec689654c06cb4194563 Mon Sep 17 00:00:00 2001 From: Adam Kwolek Date: Sun, 20 Mar 2011 15:47:31 +1100 Subject: [PATCH] imsm: FIX: indicate that metadada has to be written 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 Signed-off-by: NeilBrown --- super-intel.c | 1 + 1 file changed, 1 insertion(+) diff --git a/super-intel.c b/super-intel.c index 44c100b5..acd7571f 100644 --- a/super-intel.c +++ b/super-intel.c @@ -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; -- 2.39.5