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

[Xen-changelog] [qemu-upstream-unstable] use int64_t for return values from rbd instead of int



commit 08448d5195aeff49bf25fb62b4a6218f079f5284
Author: Stefan Priebe <s.priebe@xxxxxxxxxxxx>
Date:   Tue Nov 20 13:44:55 2012 +0100

    use int64_t for return values from rbd instead of int
    
    rbd / rados tends to return pretty often length of writes
    or discarded blocks. These values might be bigger than int.
    
    The steps to reproduce are:
    
      mkfs.xfs -f a whole device bigger than int in bytes. mkfs.xfs sends
      a discard. Important is that you use scsi-hd and set
      discard_granularity=512. Otherwise rbd disabled discard support.
    
    Signed-off-by: Stefan Priebe <s.priebe@xxxxxxxxxxxx>
    Signed-off-by: Stefan Hajnoczi <stefanha@xxxxxxxxxx>
---
 block/rbd.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/block/rbd.c b/block/rbd.c
index 0aaacaf..f3becc7 100644
--- a/block/rbd.c
+++ b/block/rbd.c
@@ -69,7 +69,7 @@ typedef enum {
 typedef struct RBDAIOCB {
     BlockDriverAIOCB common;
     QEMUBH *bh;
-    int ret;
+    int64_t ret;
     QEMUIOVector *qiov;
     char *bounce;
     RBDAIOCmd cmd;
@@ -86,7 +86,7 @@ typedef struct RADOSCB {
     int done;
     int64_t size;
     char *buf;
-    int ret;
+    int64_t ret;
 } RADOSCB;
 
 #define RBD_FD_READ 0
--
generated by git-patchbot for /home/xen/git/qemu-upstream-unstable.git

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxx
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®.