Re: [ceph-users] LibRBD_Show Real Size of RBD Image

2016-11-29 Thread Jason Dillaman
The rbd CLI has a built-in disk usage command with the Jewel release that no longer requires the awk example. If you wanted to implement something similar using the Python API, you would need to use the "diff_iterate" API method to locate all used extents within an object and add them up to calcula

[ceph-users] LibRBD_Show Real Size of RBD Image

2016-11-29 Thread Sam Huracan
Hi all, I'm trying to use LIBRBD (Python) http://docs.ceph.com/docs/jewel/rbd/librbdpy/ Is there a way to find real size of RBD Image through LIBRBD?? I saw I can get it by CMD: http://ceph.com/planet/real-size-of-a-ceph-rbd-image/ Thanks ___ ceph-user