Skip to content

Commit

Permalink
dm raid: fix new superblock/bitmap creation on disk addition
Browse files Browse the repository at this point in the history
Signed-off-by: Heinz Mauelshagen <[email protected]>
Signed-off-by: Mike Snitzer <[email protected]>
  • Loading branch information
mauelsha authored and snitm committed Jul 18, 2016
1 parent 2527b56 commit f6895fd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/md/dm-raid.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit f6895fd

Please sign in to comment.