]> git.baikalelectronics.ru Git - kernel.git/commit
rbd: add 'minor' sysfs rbd device attribute
authorIlya Dryomov <ilya.dryomov@inktank.com>
Fri, 13 Dec 2013 13:28:57 +0000 (15:28 +0200)
committerIlya Dryomov <ilya.dryomov@inktank.com>
Tue, 31 Dec 2013 18:31:57 +0000 (20:31 +0200)
commit0516cf32f37e2ab94badb6fce925beeaf1134eea
tree6a636427042f14379189f5141467f7de7e79cd1c
parent89dab421bd55811c67f1a96e6a9e89483a9ece6e
rbd: add 'minor' sysfs rbd device attribute

Introduce /sys/bus/rbd/devices/<id>/minor sysfs attribute for exporting
rbd whole disk minor numbers.  This is a step towards single-major
device number allocation scheme, but also a good thing on its own.

Signed-off-by: Ilya Dryomov <ilya.dryomov@inktank.com>
Reviewed-by: Alex Elder <elder@linaro.org>
Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
Documentation/ABI/testing/sysfs-bus-rbd
drivers/block/rbd.c