]> git.baikalelectronics.ru Git - kernel.git/commit
rbd: show the entire chain of parent images
authorIlya Dryomov <ilya.dryomov@inktank.com>
Tue, 22 Jul 2014 17:53:07 +0000 (21:53 +0400)
committerIlya Dryomov <ilya.dryomov@inktank.com>
Fri, 25 Jul 2014 09:14:27 +0000 (13:14 +0400)
commit15168de6d10a11bf136f61a5ff48abd6060c96a0
treede3cc9d00b9979a2317c9a7d380d1b1f6e3dec66
parent0a4344276fadf76ba50ace5400d1cff50013d816
rbd: show the entire chain of parent images

Make /sys/bus/rbd/devices/<id>/parent show the entire chain of parent
images.  While at it, kernel sprintf() doesn't return negative values,
casting to unsigned long long is no longer necessary and there is no
good reason to split into multiple sprintf() calls.

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