]> git.proxmox.com Git - qemu.git/commit
use int64_t for return values from rbd instead of int
authorStefan Priebe <s.priebe@profihost.ag>
Tue, 20 Nov 2012 12:44:55 +0000 (13:44 +0100)
committerStefan Hajnoczi <stefanha@redhat.com>
Wed, 21 Nov 2012 08:43:23 +0000 (09:43 +0100)
commit08448d5195aeff49bf25fb62b4a6218f079f5284
tree29dcd1c0312c85e3728fdeef5cd8e42f7772de3d
parent8ba2aae32c40f544def6be7ae82be9bcb781e01d
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@profihost.ag>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
block/rbd.c