[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen-3.3-testing] blkif: Clarify units for 'sector'-sized blkif request params.



# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1243864046 -3600
# Node ID 8c7551684dad6abfd12f48d8d193d858ee525277
# Parent  2ae3024ff40603524c69fa3b7c966470a5d17825
blkif: Clarify units for 'sector'-sized blkif request params.

Signed-off-by: Stefano Stabellini <stefano.stabellini@xxxxxxxxxxxxx>
xen-unstable changeset:   19640:cc682927d123
xen-unstable date:        Tue May 26 10:01:54 2009 +0100
---
 xen/include/public/io/blkif.h |    7 +++++++
 1 files changed, 7 insertions(+)

diff -r 2ae3024ff406 -r 8c7551684dad xen/include/public/io/blkif.h
--- a/xen/include/public/io/blkif.h     Mon Jun 01 14:47:01 2009 +0100
+++ b/xen/include/public/io/blkif.h     Mon Jun 01 14:47:26 2009 +0100
@@ -84,6 +84,13 @@
  */
 #define BLKIF_MAX_SEGMENTS_PER_REQUEST 11
 
+/* 
+ * NB. first_sect and last_sect in blkif_request_segment, as well as
+ * sector_number in blkif_request, are always expressed in 512-byte units.
+ * However they must be properly aligned to the real sector size of the
+ * physical disk, which is reported in the "sector-size" node in the backend
+ * xenbus info. Also the xenbus "sectors" node is expressed in 512-byte units.
+ */
 struct blkif_request_segment {
     grant_ref_t gref;        /* reference to I/O buffer frame        */
     /* @first_sect: first sector in frame to transfer (inclusive).   */

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.