rbd: get parent spec for version 2 images
commit86b00e0da6be7bbc16412f126c5b548ac5d91d50
authorAlex Elder <elder@inktank.com>
Fri, 26 Oct 2012 04:34:42 +0000 (25 23:34 -0500)
committerAlex Elder <elder@inktank.com>
Thu, 1 Nov 2012 12:55:42 +0000 (1 07:55 -0500)
tree466c0dcecd75ca707f33b18265be969e385f366c
parenta92ffdf8a9b09f8fae9a8f418f87f30a5e459570
rbd: get parent spec for version 2 images

Add support for getting the the information identifying the parent
image for rbd images that have them.  The child image holds a
reference to its parent image specification structure.  Create a new
entry "parent" in /sys/bus/rbd/image/N/ to report the identifying
information for the parent image, if any.

Signed-off-by: Alex Elder <elder@inktank.com>
Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
Documentation/ABI/testing/sysfs-bus-rbd
drivers/block/rbd.c
include/linux/ceph/rados.h