From: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
To: Samuel Thibault <samuel.thibault@ens-lyon.org>,
Stefano Stabellini <stefano.stabellini@eu.citrix.com>,
xen-devel <xen-devel@lists.xensource.com>
Subject: Re: [PATCH 1 of 2] blkfront: sector size > 512
Date: Thu, 21 May 2009 14:17:11 +0100 [thread overview]
Message-ID: <4A155457.7020205@eu.citrix.com> (raw)
In-Reply-To: <20090521120849.GA5806@const.famille.thibault.fr>
Samuel Thibault wrote:
> Stefano Stabellini, le Thu 21 May 2009 12:40:52 +0100, a écrit :
>> The first and last sector as well as the sector number of the request is
>> expressed in 512 bytes units, independently from the real sector size.
>> req->id = (uintptr_t) aiocbp;
>> - req->sector_number = aiocbp->aio_offset / dev->info.sector_size;
>> + req->sector_number = aiocbp->aio_offset / 512;
>>
>
> Oh?!
>
> That needs to be better documented in xen/include/public/io/blkif.h,
> then. I'm however wondering whether this shouldn't actually be fixed in
> the blkback/cdrom interface instead.
>
Yeah, I am surprised as you are, but the linux blkfront does the same
thing so I prefer to avoid changing the protocol now.
next prev parent reply other threads:[~2009-05-21 13:17 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-05-21 11:40 [PATCH 1 of 2] blkfront: sector size > 512 Stefano Stabellini
2009-05-21 12:08 ` Samuel Thibault
2009-05-21 13:17 ` Stefano Stabellini [this message]
2009-05-21 13:20 ` Samuel Thibault
2009-05-21 13:32 ` Keir Fraser
2009-05-22 14:31 ` Stefano Stabellini
2009-05-22 14:36 ` Samuel Thibault
2009-05-22 14:55 ` Stefano Stabellini
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=4A155457.7020205@eu.citrix.com \
--to=stefano.stabellini@eu.citrix.com \
--cc=samuel.thibault@ens-lyon.org \
--cc=xen-devel@lists.xensource.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.