Thread (20 messages) 20 messages, 6 authors, 2012-08-24

Re: [Qemu-devel] [PATCH 1/2 v1] blkdrv: Add queue limits parameters for sg block drive

From: Stefan Hajnoczi <hidden>
Date: 2012-08-22 08:25:22
Also in: qemu-devel

On Tue, Aug 21, 2012 at 7:31 PM, Blue Swirl [off-list ref] wrote:
On Tue, Aug 21, 2012 at 8:23 AM, Cong Meng [off-list ref] wrote:
quoted
diff --git a/block_int.h b/block_int.h
index d72317f..a9d07a2 100644
--- a/block_int.h
+++ b/block_int.h
@@ -333,6 +333,10 @@ struct BlockDriverState {

     /* long-running background operation */
     BlockJob *job;
+
+    unsigned int max_sectors;
With 32 bit ints and even with 4k sector size, the maximum disk size
would be 16TB which may be soon exceeded by disks on the market.
Please use 64 bit values, probably also for segment values below.
This doesn't specify device size, it specifies max sectors per I/O
request.  When reviewing, I checked that the Linux kernel also uses
unsigned int for these fields.

Stefan
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help