]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
librbd: add read_iterate2 call with fixed argument type 240/head
authorSage Weil <sage@inktank.com>
Tue, 23 Apr 2013 21:58:55 +0000 (14:58 -0700)
committerSage Weil <sage@inktank.com>
Tue, 23 Apr 2013 22:57:26 +0000 (15:57 -0700)
commit857c88e017f082b6ef2a81a1890baa7d20672a31
tree6af4d0efd6a9ebeec35dc636a578d92f90064aab
parent6c798ed940024e4766bf9b8797eafb556624d7c8
librbd: add read_iterate2 call with fixed argument type

The existing read_iterate takes a size_t for the length, which is only 4GB
on 32-bit machines.  Instead, take a uint64_t length for the new
read_iterate2().

Return 0 instead of the number of bytes read; this makes the user-facing
API a bit simpler.

Fixes: #4665
Signed-off-by: Sage Weil <sage@inktank.com>
keep bytes return from internal method
src/include/rbd/librbd.h
src/include/rbd/librbd.hpp
src/librbd/internal.cc
src/librbd/librbd.cc
src/rbd.cc