All of lore.kernel.org
 help / color / mirror / Atom feed
* bug when using 4K sectors?
@ 2012-08-13 14:12 James Harper
  2012-09-05 20:29 ` Konrad Rzeszutek Wilk
  0 siblings, 1 reply; 13+ messages in thread
From: James Harper @ 2012-08-13 14:12 UTC (permalink / raw)
  To: xen-devel@lists.xen.org

I notice this code in drivers/block/xen-blkback/common.h

#define vbd_sz(_v)      ((_v)->bdev->bd_part ? \
                         (_v)->bdev->bd_part->nr_sects : \
                          get_capacity((_v)->bdev->bd_disk))

is the value returned by vbd_sz(_v) the number of sectors in the Linux device (eg size / 4096), or the number of 512 byte sectors? I suspect the former which is causing block requests beyond 1/8th the size of the device to fail (assuming 4K sectors are expected to work at all - I can't quite get my head around how it would be expected to work - does Linux do the read-modify-write if required?)

I can't test until tomorrow AEDT, but maybe someone here knows the answer already?

James

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2012-09-16 16:07 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-08-13 14:12 bug when using 4K sectors? James Harper
2012-09-05 20:29 ` Konrad Rzeszutek Wilk
2012-09-05 23:56   ` James Harper
2012-09-06 10:58     ` Konrad Rzeszutek Wilk
2012-09-16  7:00       ` Joseph Glanville
2012-09-16  8:31         ` Keir Fraser
2012-09-16  9:00           ` Joseph Glanville
2012-09-16 10:37           ` James Harper
2012-09-16 11:18             ` Keir Fraser
2012-09-16 11:21               ` James Harper
2012-09-16 11:27           ` Alan Cox
2012-09-16 11:50             ` James Harper
2012-09-16 16:07               ` Alan Cox

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.