From f6895fd5058910d010026e1b78c4e596754994be Mon Sep 17 00:00:00 2001 From: Heinz Mauelshagen Date: Fri, 24 Jun 2016 01:06:28 +0200 Subject: [PATCH] dm raid: fix new superblock/bitmap creation on disk addition Signed-off-by: Heinz Mauelshagen Signed-off-by: Mike Snitzer --- drivers/md/dm-raid.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/md/dm-raid.c b/drivers/md/dm-raid.c index 4572202..5e41bf3 100644 --- a/drivers/md/dm-raid.c +++ b/drivers/md/dm-raid.c @@ -2850,8 +2850,9 @@ static int raid_ctr(struct dm_target *ti, unsigned argc, char **argv) set_bit(RT_FLAG_KEEP_RS_FROZEN, &rs->runtime_flags); } + /* Create new superblocks and bitmaps, if any */ if (rs->md.raid_disks < rs->raid_disks) - set_bit(MD_ARRAY_FIRST_USE, &mddev->flags); + set_bit(RT_FLAG_UPDATE_SBS, &rs->runtime_flags); rs_set_cur(rs); rs_setup_recovery(rs, MaxSector); -- 2.7.4