]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
pybind/rbd: add allow_shrink=True as a parameter to def resize(self, size) method 23605/head
authorzhengyin <zhengyin@cmss.chinamobile.com>
Thu, 16 Aug 2018 11:31:43 +0000 (19:31 +0800)
committerzhengyin <zhengyin@cmss.chinamobile.com>
Thu, 23 Aug 2018 06:35:21 +0000 (14:35 +0800)
commit3f6125a599e48366a3b3fe63cc5530a126587f0e
tree9b66cc75e68a48801023ca4e798c0059ca65ef01
parent760e4718dbf55003f4bb67ada0b5a38954a214dc
pybind/rbd: add allow_shrink=True as a parameter to def resize(self, size) method

resize(size, allow_shrink) has allow_shrink param, if allow_shrink=false
and old_size > new size, it will raise error.

Signed-off-by: Zheng Yin <zhengyin@cmss.chinamobile.com>
src/pybind/rbd/rbd.pyx
src/test/pybind/test_rbd.py