]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
cls_rbd: handle parent overlap
authorSage Weil <sage@inktank.com>
Sat, 16 Jun 2012 00:27:25 +0000 (17:27 -0700)
committerSage Weil <sage@inktank.com>
Tue, 19 Jun 2012 22:08:18 +0000 (15:08 -0700)
commit3948e0690ee5e5b9e4b8bfadb2120b9bb5e82480
treed2b6036e0a11e13747547f2d6afd6529ef2d522a
parente8b36ed97ef687f93ec2937da4d19f92c11dc69a
cls_rbd: handle parent overlap

Two things:

 * when we set a parent, the overlap is the min of our size and the
   parent's size.
 * when we resize, our overlap may shrink.

Signed-off-by: Sage Weil <sage@inktank.com>
src/cls_rbd.cc
src/test/rbd/test_cls_rbd.cc