All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] public/io/blkif.h: make the comments on "sectors" self-consistent
@ 2019-03-20 12:52 Paul Durrant
  2019-03-20 13:53 ` Konrad Rzeszutek Wilk
  2019-03-21 12:22 ` Anthony PERARD
  0 siblings, 2 replies; 12+ messages in thread
From: Paul Durrant @ 2019-03-20 12:52 UTC (permalink / raw)
  To: xen-devel; +Cc: Paul Durrant, Konrad Rzeszutek Wilk

Currently the comment at line #267 claims that the value should be
expressed in number logical sectors, whereas the comment at line #613
states that the value should be expressed strictly in units of 512 bytes.

Signed-off-by: Paul Durrant <paul.durrant@citrix.com>
---
Cc: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>

Looking at xen-blkfront in Linux, I'm also not convinced that it would
function correctly is sector-size != 512 anyway so I wonder whether this
patch should go further and define that sector-size is strictly 512.
---
 xen/include/public/io/blkif.h | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/xen/include/public/io/blkif.h b/xen/include/public/io/blkif.h
index 15a71e3fea..d7c904d9dc 100644
--- a/xen/include/public/io/blkif.h
+++ b/xen/include/public/io/blkif.h
@@ -264,8 +264,7 @@
  * sectors
  *      Values:         <uint64_t>
  *
- *      The size of the backend device, expressed in units of its logical
- *      sector size ("sector-size").
+ *      The size of the backend device, expressed in units of 512 bytes.
  *
  *****************************************************************************
  *                            Frontend XenBus Nodes
-- 
2.20.1.2.gb21ebb671


_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel

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

end of thread, other threads:[~2019-03-21 18:01 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-03-20 12:52 [PATCH] public/io/blkif.h: make the comments on "sectors" self-consistent Paul Durrant
2019-03-20 13:53 ` Konrad Rzeszutek Wilk
2019-03-20 13:59   ` Paul Durrant
2019-03-20 14:05     ` Paul Durrant
2019-03-20 14:28       ` Konrad Rzeszutek Wilk
2019-03-20 14:38         ` Paul Durrant
2019-03-21 12:22 ` Anthony PERARD
2019-03-21 12:30   ` Paul Durrant
2019-03-21 15:23     ` Anthony PERARD
2019-03-21 15:39       ` Paul Durrant
2019-03-21 17:23         ` Anthony PERARD
2019-03-21 18:01           ` Paul Durrant

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.