From: "Martin K. Petersen" Subject: Re: [PATCH] dm: add topology support Date: Fri, 05 Jun 2009 00:33:01 -0400 Message-ID: References: <1244059149-14279-1-git-send-email-snitzer@redhat.com> Reply-To: device-mapper development Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: In-Reply-To: <1244059149-14279-1-git-send-email-snitzer@redhat.com> (Mike Snitzer's message of "Wed, 3 Jun 2009 15:59:09 -0400") List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: dm-devel-bounces@redhat.com Errors-To: dm-devel-bounces@redhat.com To: Mike Snitzer Cc: device-mapper development , agk@redhat.com, Jens Axboe List-Id: dm-devel.ids >>>>> "Mike" == Mike Snitzer writes: Mike, + if (blk_stack_limits(&ti->limits, &q->limits, 0) < 0) + DMWARN("%s: target device %s is misaligned", + dm_device_name(ti->table->md), bdevname(bdev, b)); I did some testing tonight. You're always passing offset 0 into the stacking function so things are not working right. This argument should contain the offset to the first (data) sector. So you want something like get_start_sect(bdev) << 9 for the stacking to do its magic. -- Martin K. Petersen Oracle Linux Engineering