From patchwork Mon Dec 14 14:33:14 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: heinzm@sourceware.org X-Patchwork-Id: 67298 Received: from hormel.redhat.com (hormel1.redhat.com [209.132.177.33]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id nBEEXSpJ005878 for ; Mon, 14 Dec 2009 14:33:28 GMT Received: from listman.util.phx.redhat.com (listman.util.phx.redhat.com [10.8.4.110]) by hormel.redhat.com (Postfix) with ESMTP id 1A05D8E011A; Mon, 14 Dec 2009 09:33:28 -0500 (EST) Received: from int-mx03.intmail.prod.int.phx2.redhat.com (nat-pool.util.phx.redhat.com [10.8.5.200]) by listman.util.phx.redhat.com (8.13.1/8.13.1) with ESMTP id nBEEXR6e028684 for ; Mon, 14 Dec 2009 09:33:27 -0500 Received: from mx1.redhat.com (ext-mx05.extmail.prod.ext.phx2.redhat.com [10.5.110.9]) by int-mx03.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id nBEEXQQt023261 for ; Mon, 14 Dec 2009 09:33:26 -0500 Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) by mx1.redhat.com (8.13.8/8.13.8) with SMTP id nBEEXEci025930 for ; Mon, 14 Dec 2009 09:33:15 -0500 Received: (qmail 18836 invoked by uid 9450); 14 Dec 2009 14:33:14 -0000 Date: 14 Dec 2009 14:33:14 -0000 Message-ID: <20091214143314.18834.qmail@sourceware.org> From: heinzm@sourceware.org To: dm-cvs@sourceware.org, dm-devel@redhat.com X-RedHat-Spam-Score: -2 (AWL) X-Scanned-By: MIMEDefang 2.67 on 10.5.11.16 X-Scanned-By: MIMEDefang 2.67 on 10.5.110.9 X-loop: dm-devel@redhat.com Cc: Subject: [dm-devel] dmraid/lib/format/ataraid pdc.c X-BeenThere: dm-devel@redhat.com X-Mailman-Version: 2.1.5 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 --- dmraid/lib/format/ataraid/pdc.c 2009/11/02 13:20:40 1.7 +++ dmraid/lib/format/ataraid/pdc.c 2009/12/14 14:33:13 1.8 @@ -202,8 +202,11 @@ break; /* Memorize main metadata sector. */ - } else if (!info->u32) + } else if (!info->u32) { info->u32 = *s; + *offset = sub ? di->sectors - *s : + *s; + } } } }