All of lore.kernel.org
 help / color / mirror / Atom feed
From: Mike Snitzer <snitzer@redhat.com>
To: device-mapper development <dm-devel@redhat.com>
Cc: agk@redhat.com, Jens Axboe <jens.axboe@oracle.com>
Subject: Re: dm: add topology support
Date: Fri, 5 Jun 2009 10:21:12 -0400	[thread overview]
Message-ID: <20090605142111.GA21775@redhat.com> (raw)
In-Reply-To: <yq17hzrl2pu.fsf@sermon.lab.mkp.net>

On Fri, Jun 05 2009 at 12:33am -0400,
Martin K. Petersen <martin.petersen@oracle.com> wrote:

> >>>>> "Mike" == Mike Snitzer <snitzer@redhat.com> 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.

I followed your lead :)
 http://mkp.net/code/topology/dm-topology.patch

But, yes I became concerned about this just last night myself when I
added yet another call to blk_stack_limits().

I need to continue looking at this problem; particularly as it relates
to the LVM2 userspace's role in seeding the DM layer appropriately.

My initial thinking was that if LVM2 understood how to consume the
alignment_offset when constructing an LV then the alignment_offset
information becomes unnecessary to propagate.  Thinking being that
alignment_offset was already accounted for in LVM2 by adjusting each
target devices' 'start' within the DM table (associated with the LV).

So I'm not yet seeing why alignment_offset _should_ matter as you stack
within DM (because of LVM2's role in accounting for it) but...

I'll work through this further; I welcome any ideas/feedback you might
have.

Thanks,
Mike

  reply	other threads:[~2009-06-05 14:21 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-06-03 19:59 [PATCH] dm: add topology support Mike Snitzer
2009-06-05  4:33 ` Martin K. Petersen
2009-06-05 14:21   ` Mike Snitzer [this message]
2009-06-05 19:34     ` Martin K. Petersen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20090605142111.GA21775@redhat.com \
    --to=snitzer@redhat.com \
    --cc=agk@redhat.com \
    --cc=dm-devel@redhat.com \
    --cc=jens.axboe@oracle.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.