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@xxxxxxxxx> --- super-intel.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/super-intel.c b/super-intel.c index 44c100b..acd7571 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; -- To unsubscribe from this list: send the line "unsubscribe linux-raid" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html