From: Frans Pop <elendil@planet.nl>
To: Mike Snitzer <snitzer@redhat.com>
Cc: dm-devel@redhat.com, linux-kernel@vger.kernel.org,
martin.petersen@oracle.com
Subject: Re: [2.6.31-rc1] device-mapper: target device sda6 is misaligned
Date: Thu, 25 Jun 2009 20:52:49 +0200 [thread overview]
Message-ID: <200906252052.50364.elendil@planet.nl> (raw)
In-Reply-To: <20090625182302.GA23113@redhat.com>
On Thursday 25 June 2009, Mike Snitzer wrote:
> OK, I found a really stupid bug. I was passing the data start offset
> (pe_start) through to blk_stack_limits() in terms of sectors rather
> than bytes. The following should silence your warnings:
Yes, all clear again. So not broken userspace after all ;-)
Reported-by: Frans Pop <elendil@planet.nl>
Tested-by: Frans Pop <elendil@planet.nl>
Thanks,
FJP
> diff --git a/drivers/md/dm-table.c b/drivers/md/dm-table.c
> index 4899ebe..2cba557 100644
> --- a/drivers/md/dm-table.c
> +++ b/drivers/md/dm-table.c
> @@ -495,7 +495,7 @@ int dm_set_device_limits(struct dm_target *ti,
> struct dm_dev *dev, return 0;
> }
>
> - if (blk_stack_limits(limits, &q->limits, start) < 0)
> + if (blk_stack_limits(limits, &q->limits, start << 9) < 0)
> DMWARN("%s: target device %s is misaligned",
> dm_device_name(ti->table->md), bdevname(bdev, b));
WARNING: multiple messages have this Message-ID (diff)
From: Frans Pop <elendil@planet.nl>
To: Mike Snitzer <snitzer@redhat.com>
Cc: linux-kernel@vger.kernel.org, dm-devel@redhat.com,
martin.petersen@oracle.com
Subject: Re: [2.6.31-rc1] device-mapper: target device sda6 is misaligned
Date: Thu, 25 Jun 2009 20:52:49 +0200 [thread overview]
Message-ID: <200906252052.50364.elendil@planet.nl> (raw)
In-Reply-To: <20090625182302.GA23113@redhat.com>
On Thursday 25 June 2009, Mike Snitzer wrote:
> OK, I found a really stupid bug. I was passing the data start offset
> (pe_start) through to blk_stack_limits() in terms of sectors rather
> than bytes. The following should silence your warnings:
Yes, all clear again. So not broken userspace after all ;-)
Reported-by: Frans Pop <elendil@planet.nl>
Tested-by: Frans Pop <elendil@planet.nl>
Thanks,
FJP
> diff --git a/drivers/md/dm-table.c b/drivers/md/dm-table.c
> index 4899ebe..2cba557 100644
> --- a/drivers/md/dm-table.c
> +++ b/drivers/md/dm-table.c
> @@ -495,7 +495,7 @@ int dm_set_device_limits(struct dm_target *ti,
> struct dm_dev *dev, return 0;
> }
>
> - if (blk_stack_limits(limits, &q->limits, start) < 0)
> + if (blk_stack_limits(limits, &q->limits, start << 9) < 0)
> DMWARN("%s: target device %s is misaligned",
> dm_device_name(ti->table->md), bdevname(bdev, b));
next prev parent reply other threads:[~2009-06-25 18:52 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-06-25 7:04 [2.6.31-rc1] device-mapper: target device sda6 is misaligned Frans Pop
2009-06-25 15:36 ` Martin K. Petersen
2009-06-25 15:36 ` Martin K. Petersen
2009-06-25 15:48 ` Frans Pop
2009-06-25 16:05 ` Martin K. Petersen
2009-06-25 16:05 ` [dm-devel] " Martin K. Petersen
2009-06-25 16:11 ` Mike Snitzer
2009-06-25 16:11 ` Mike Snitzer
2009-06-25 15:41 ` Mike Snitzer
2009-06-25 15:41 ` Mike Snitzer
2009-06-25 16:40 ` Frans Pop
2009-06-25 17:20 ` Mike Snitzer
2009-06-25 17:20 ` Mike Snitzer
2009-06-25 17:53 ` Frans Pop
2009-06-25 18:23 ` Mike Snitzer
2009-06-25 18:23 ` Mike Snitzer
2009-06-25 18:52 ` Frans Pop [this message]
2009-06-25 18:52 ` Frans Pop
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=200906252052.50364.elendil@planet.nl \
--to=elendil@planet.nl \
--cc=dm-devel@redhat.com \
--cc=linux-kernel@vger.kernel.org \
--cc=martin.petersen@oracle.com \
--cc=snitzer@redhat.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.