]> git.baikalelectronics.ru Git - kernel.git/commit
rbd: create pool_id device attribute
authorAlex Elder <elder@inktank.com>
Thu, 12 Jul 2012 15:46:35 +0000 (10:46 -0500)
committerSage Weil <sage@inktank.com>
Mon, 30 Jul 2012 16:30:00 +0000 (09:30 -0700)
commite42af73ee9d90837bfe571b050c983c38a15cdc8
tree8e43a1a384101819c97d5ab9114c2bf748431463
parenteda9c172f3c4c365ed5bd6d5e7312a154e8d92b6
rbd: create pool_id device attribute

Add an entry under /sys/bus/rbd/devices/<N>/ named "pool_id" that
provides the id for the pool the rbd image is assocatied with.  This
is in addition to the pool name already provided.

Rename the "poolid" field in struct rbd_device  to be "pool_id".

Update the documentation to reflect the addition of this new entry.

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