commit | 9d475de5d12af8ac4c2101807e0a889ac7389c5a | [log] [tgz] |
---|---|---|
author | Alex Elder <elder@inktank.com> | Tue Jul 03 16:01:19 2012 -0500 |
committer | Alex Elder <elder@inktank.com> | Mon Oct 01 14:30:53 2012 -0500 |
tree | aa0a4e6246ed6f1d9fbcf4d536f6ff448146c98a | |
parent | a30b71b999c92071befec73434f4e67fd4b4734b [diff] |
rbd: add code to get the size of a v2 rbd image The size of an rbd format 2 image is fetched from the server using a "get_size" method. The same method is used for getting the size of a snapshot, so structure this addition with a generic helper routine that we can get this information for either. Signed-off-by: Alex Elder <elder@inktank.com> Reviewed-by: Josh Durgin <josh.durgin@inktank.com>