From patchwork Tue Jun 28 20:17:30 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonthan Brassow X-Patchwork-Id: 926022 X-Patchwork-Delegate: agk@redhat.com Received: from mx4-phx2.redhat.com (mx4-phx2.redhat.com [209.132.183.25]) by demeter1.kernel.org (8.14.4/8.14.4) with ESMTP id p5SKKhMc023166 for ; Tue, 28 Jun 2011 20:21:04 GMT Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by mx4-phx2.redhat.com (8.13.8/8.13.8) with ESMTP id p5SKHbp3028913; Tue, 28 Jun 2011 16:17:39 -0400 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id p5SKHaWL008154 for ; Tue, 28 Jun 2011 16:17:36 -0400 Received: from [10.0.2.15] (vpn-9-120.rdu.redhat.com [10.11.9.120]) by int-mx10.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id p5SKHUUt007426 for ; Tue, 28 Jun 2011 16:17:31 -0400 From: Jonathan Brassow To: dm-devel@redhat.com Organization: Red Hat, Inc Date: Tue, 28 Jun 2011 15:17:30 -0500 Message-ID: <1309292250.10259.3.camel@f14.redhat.com> Mime-Version: 1.0 X-Scanned-By: MIMEDefang 2.68 on 10.5.11.23 X-loop: dm-devel@redhat.com Subject: [dm-devel] [PATCH 5 of 7] DM RAID: allow metadata devices -- FIX X-BeenThere: dm-devel@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk Reply-To: device-mapper development List-Id: device-mapper development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: dm-devel-bounces@redhat.com Errors-To: dm-devel-bounces@redhat.com X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Tue, 28 Jun 2011 20:21:06 +0000 (UTC) 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. --- dm-devel mailing list dm-devel@redhat.com https://www.redhat.com/mailman/listinfo/dm-devel Index: linux-2.6/drivers/md/dm-raid.c =================================================================== --- linux-2.6.orig/drivers/md/dm-raid.c +++ 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); /*