From: Samuel Thibault Subject: Re: [PATCH 1 of 2] blkfront: sector size > 512 Date: Thu, 21 May 2009 15:20:15 +0200 Message-ID: <20090521132015.GU5806@const.famille.thibault.fr> References: <4A153DC4.5070803@eu.citrix.com> <20090521120849.GA5806@const.famille.thibault.fr> <4A155457.7020205@eu.citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Return-path: Content-Disposition: inline In-Reply-To: <4A155457.7020205@eu.citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Stefano Stabellini Cc: xen-devel List-Id: xen-devel@lists.xenproject.org Stefano Stabellini, le Thu 21 May 2009 14:17:11 +0100, a =E9crit : > Samuel Thibault wrote: > > Stefano Stabellini, le Thu 21 May 2009 12:40:52 +0100, a =E9crit : > >> The first and last sector as well as the sector number of the reques= t is > >> expressed in 512 bytes units, independently from the real sector siz= e. > >> req->id =3D (uintptr_t) aiocbp; > >> - req->sector_number =3D aiocbp->aio_offset / dev->info.sector_si= ze; > >> + req->sector_number =3D aiocbp->aio_offset / 512; > >> =20 > >=20 > > Oh?! > >=20 > > 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. > >=20 >=20 > Yeah, I am surprised as you are, but the linux blkfront does the same > thing so I prefer to avoid changing the protocol now. Well, it's not about changing the protocol, it's about fixing drivers doing the wrong thing according to the documentation. What is the use of the xenstore sector_size value if not here? Samuel