All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] use int64_t for return values from rbd instead of int
@ 2012-11-20 12:44 ` Stefan Priebe
  0 siblings, 0 replies; 29+ messages in thread
From: Stefan Priebe @ 2012-11-20 12:44 UTC (permalink / raw)
  To: qemu-devel-qX2TKyscuCcdnm+yROfE0A
  Cc: pbonzini-H+wXaHxf7aLQT0dZR+AlfA,
	ceph-devel-u79uwXL29TY76Z2rM5mHXA,
	pve-devel-KmHT29P9Uc/4CZzEM2C48g,
	josh.durgin-4GqslpFJ+cxBDgjK7y7TUQ

rbd / rados tends to return pretty often length of writes
or discarded blocks. These values might be bigger than int.

Signed-off-by: Stefan Priebe <s.priebe-2Lf/h1ldwEHR5kwTpVNS9A@public.gmane.org>
---
 block/rbd.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/block/rbd.c b/block/rbd.c
index f57d0c6..6bf9c2e 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;
@@ -87,7 +87,7 @@ typedef struct RADOSCB {
     int done;
     int64_t size;
     char *buf;
-    int ret;
+    int64_t ret;
 } RADOSCB;
 
 #define RBD_FD_READ 0
-- 
1.7.10.4

^ permalink raw reply related	[flat|nested] 29+ messages in thread
* Re: [PATCH] use int64_t for return values from rbd instead of int
@ 2012-11-21 21:26 Stefan Weil
  0 siblings, 0 replies; 29+ messages in thread
From: Stefan Weil @ 2012-11-21 21:26 UTC (permalink / raw)
  To: Stefan Priebe - Profihost AG
  Cc: pbonzini@redhat.com, ceph-devel@vger.kernel.org,
	qemu-devel@nongnu.org, Stefan Hajnoczi

                   Am 21.11.2012 21:53, schrieb Stefan       Priebe -
Profihost AG:
                 Not sure about off_t. What is min and max size?  Stefan

     off_t is a signed value which is used in function lseek to
     address any byte of a seekable file.
     The range is typically 64 bit (like int64_t), but may be smaller if
the host only supports 2 GB files.
     Stefan

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

end of thread, other threads:[~2012-11-22  9:08 UTC | newest]

Thread overview: 29+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-11-20 12:44 [PATCH] use int64_t for return values from rbd instead of int Stefan Priebe
2012-11-20 12:44 ` [Qemu-devel] " Stefan Priebe
2012-11-20 16:29 ` Stefan Hajnoczi
2012-11-20 16:29   ` Stefan Hajnoczi
2012-11-20 19:16   ` Stefan Priebe
2012-11-20 19:16     ` Stefan Priebe
2012-11-21  6:41     ` Stefan Hajnoczi
2012-11-21  6:41       ` Stefan Hajnoczi
2012-11-21  7:47       ` Stefan Priebe - Profihost AG
2012-11-21  7:47         ` Stefan Priebe - Profihost AG
2012-11-21  8:26         ` Stefan Hajnoczi
2012-11-21  8:26           ` Stefan Hajnoczi
     [not found]           ` <20121121082616.GB13504-lxVrvc10SDTaErKTczak/Dh473NlOPsLVpNB7YpNyf8@public.gmane.org>
2012-11-21  8:33             ` Stefan Priebe - Profihost AG
2012-11-21  8:33               ` Stefan Priebe - Profihost AG
2012-11-21  8:43               ` Stefan Hajnoczi
2012-11-21  8:43                 ` Stefan Hajnoczi
2012-11-21 17:03 ` Stefan Weil
2012-11-21 17:03   ` [Qemu-devel] " Stefan Weil
2012-11-21 20:53   ` Stefan Priebe - Profihost AG
2012-11-21 20:53     ` Stefan Priebe - Profihost AG
2012-11-21 22:32   ` Peter Maydell
2012-11-21 22:32     ` [Qemu-devel] " Peter Maydell
     [not found]     ` <CAFEAcA-cAx88UZRQjHT7uk_oj8P+tXBJ+hb9v0N1Wym8FUMkHQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2012-11-22  8:23       ` Stefan Priebe - Profihost AG
2012-11-22  8:23         ` Stefan Priebe - Profihost AG
2012-11-22  8:40         ` Peter Maydell
2012-11-22  8:40           ` [Qemu-devel] " Peter Maydell
     [not found]           ` <CAFEAcA86AomWmobTObpw80rMNWM30JzAKqHZXWxmB48+GU3VYQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2012-11-22  9:08             ` Stefan Priebe - Profihost AG
2012-11-22  9:08               ` Stefan Priebe - Profihost AG
  -- strict thread matches above, loose matches on Subject: below --
2012-11-21 21:26 Stefan Weil

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.