提交 f6895fd5 编写于 作者: H Heinz Mauelshagen 提交者: Mike Snitzer

dm raid: fix new superblock/bitmap creation on disk addition

Signed-off-by: NHeinz Mauelshagen <heinzm@redhat.com>
Signed-off-by: NMike Snitzer <snitzer@redhat.com>
上级 2527b56e
......@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册