]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
librbd: new pool init/stat API methods
authorJason Dillaman <dillaman@redhat.com>
Tue, 30 Oct 2018 01:55:54 +0000 (21:55 -0400)
committerJason Dillaman <dillaman@redhat.com>
Fri, 9 Nov 2018 17:40:39 +0000 (12:40 -0500)
commitf07fb350af09e58ce3be7e6220091918e5497de5
tree8d87392a46c209a645a604a1275618ea294b1318
parentf21d56aa9cca3e6b6460a4970f214f7c1392a606
librbd: new pool init/stat API methods

The init method is a stub for handling new pool initialization. It
currently only handles setting the application tag. The stats method
will quickly calculate the number of images and provisioned space for
those images within the pool. Querying the pool stats on a pool with
10,000 images only required approximately 2 seconds as compared to
over 2 minutes for a "rbd ls -l" scan.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
src/include/rbd/librbd.h
src/include/rbd/librbd.hpp
src/librbd/CMakeLists.txt
src/librbd/api/Pool.cc [new file with mode: 0644]
src/librbd/api/Pool.h [new file with mode: 0644]
src/librbd/librbd.cc
src/pybind/rbd/rbd.pyx
src/test/librbd/test_librbd.cc
src/test/librbd/test_support.cc
src/test/pybind/test_rbd.py