Skip to contentSkip to conversation

DM RAID: allow metadata devices -- FIX

PATCH New Jonathan Brassow 1 participant 1 message Jun 28, 2011 Device mapper

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 DM RAID: allow metadata devices -- FIX

This patch fixes an improper conditional in the 5th patch of the dm-raid updates series.

brassow

Set the synchronization offset if the '[no]sync' parameters were /not/ specified.

drivers/md/dm-raid.c +1 -1
Index: linux-2.6/drivers/md/dm-raid.c
===================================================================
@@ -709,7 +709,7 @@ static int super_init_validation(mddev_t
 		return -EINVAL;
 	}
 
-	if (rs->print_flags & (DMPF_SYNC | DMPF_NOSYNC))
+	if (!(rs->print_flags & (DMPF_SYNC | DMPF_NOSYNC)))
 		mddev->recovery_cp = le64_to_cpu(sb->array_resync_offset);
 
 	/*