]> git.baikalelectronics.ru Git - kernel.git/commit
rbd: add code to get the size of a v2 rbd image
authorAlex Elder <elder@inktank.com>
Tue, 3 Jul 2012 21:01:19 +0000 (16:01 -0500)
committerAlex Elder <elder@inktank.com>
Mon, 1 Oct 2012 19:30:53 +0000 (14:30 -0500)
commitc96eaaec5d91f1617549443c5a543f70008b1d92
treeaa0a4e6246ed6f1d9fbcf4d536f6ff448146c98a
parent8cc4acd68e10bf35b8b9a6ec5bc941944008f1d8
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>
drivers/block/rbd.c