From: Sage Weil Date: Tue, 15 Mar 2011 18:07:10 +0000 (-0700) Subject: rbd: int -> int64_t on do_export X-Git-Tag: v0.25.2~4 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=ca613786f84d44f352fa4fee4ebd57f4b1ec4cdd;p=ceph.git rbd: int -> int64_t on do_export Prevent 32-bit overflow. Signed-off-by: Sage Weil --- diff --git a/src/rbd.cc b/src/rbd.cc index a5eb473be401..0580759a5bc9 100644 --- a/src/rbd.cc +++ b/src/rbd.cc @@ -219,7 +219,7 @@ static int export_read_cb(uint64_t ofs, size_t len, const char *buf, void *arg) static int do_export(librbd::Image& image, const char *path) { - int r; + int64_t r; librbd::image_info_t info; bufferlist bl; int fd = open(path, O_WRONLY | O_CREAT | O_EXCL, 0644);