aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation/ABI
diff options
context:
space:
mode:
authorAlex Elder <elder@inktank.com>2012-07-10 21:30:11 -0400
committerAlex Elder <elder@inktank.com>2012-10-01 15:30:53 -0400
commit589d30e0b3e649e2660f9a67be88e235b28bc319 (patch)
tree7430a5eea84dc3378ba69a5cd563577afb98b228 /Documentation/ABI
parent3bb59ad515527fa75cf71d997d17cea18160da74 (diff)
rbd: define rbd_dev_image_id()
New format 2 rbd images are permanently identified by a unique image id. Each rbd image also has a name, but the name can be changed. A format 2 rbd image will have an object--whose name is based on the image name--which maps an image's name to its image id. Create a new function rbd_dev_image_id() that checks for the existence of the image id object, and if it's found, records the image id in the rbd_device structure. Create a new rbd device attribute (/sys/bus/rbd/<num>/image_id) that makes this information available. Signed-off-by: Alex Elder <elder@inktank.com> Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
Diffstat (limited to 'Documentation/ABI')
-rw-r--r--Documentation/ABI/testing/sysfs-bus-rbd5
1 files changed, 5 insertions, 0 deletions
diff --git a/Documentation/ABI/testing/sysfs-bus-rbd b/Documentation/ABI/testing/sysfs-bus-rbd
index 3c17b62899f6..7cbbe343af5e 100644
--- a/Documentation/ABI/testing/sysfs-bus-rbd
+++ b/Documentation/ABI/testing/sysfs-bus-rbd
@@ -33,6 +33,11 @@ name
33 33
34 The name of the rbd image. 34 The name of the rbd image.
35 35
36image_id
37
38 The unique id for the rbd image. (For rbd image format 1
39 this is empty.)
40
36pool 41pool
37 42
38 The name of the storage pool where this rbd image resides. 43 The name of the storage pool where this rbd image resides.