]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
cls_rbd: check for LAYERING feature for parent methods
authorSage Weil <sage@inktank.com>
Fri, 15 Jun 2012 17:42:49 +0000 (10:42 -0700)
committerSage Weil <sage@inktank.com>
Tue, 19 Jun 2012 22:08:17 +0000 (15:08 -0700)
commitf87c441f6891e5e72d5e712d9a19e45a1b9a97eb
treefdda19d389d8d3c815fb4f965c4f58b43602300b
parent2f75b466c9bd978a0891adf8b06c0a010b32734c
cls_rbd: check for LAYERING feature for parent methods

You need to set the feature on the image before you can use these methods.
We *could* allow get_parent, but that just means they'll get ENOENT instead
of ENOEXEC, and the latter is more informative.

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