diff options
author | Alex Elder <elder@inktank.com> | 2012-07-11 01:30:11 (GMT) |
---|---|---|
committer | Alex Elder <elder@inktank.com> | 2012-10-01 19:30:53 (GMT) |
commit | a30b71b999c92071befec73434f4e67fd4b4734b (patch) | |
tree | fc48430344eb6904fa59c9f7a2a121add329ebba /drivers/block/cpqarray.h | |
parent | cd892126c617b3837b6088bf6c097ad2def4de83 (diff) | |
download | linux-fsl-qoriq-a30b71b999c92071befec73434f4e67fd4b4734b.tar.xz |
rbd: lay out header probe infrastructure
This defines a new function rbd_dev_probe() as a top-level
function for populating detailed information about an rbd device.
It first checks for the existence of a format 2 rbd image id object.
If it exists, the image is assumed to be a format 2 rbd image, and
another function rbd_dev_v2() is called to finish populating
header data for that image. If it does not exist, it is assumed to
be an old (format 1) rbd image, and calls a similar function
rbd_dev_v1() to populate its header information.
A new field, rbd_dev->format, is defined to record which version
of the rbd image format the device represents. For a valid mapped
rbd device it will have one of two values, 1 or 2.
So far, the format 2 images are not really supported; this is
laying out the infrastructure for fleshing out that support.
Signed-off-by: Alex Elder <elder@inktank.com>
Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
Diffstat (limited to 'drivers/block/cpqarray.h')
0 files changed, 0 insertions, 0 deletions