From: Josh Durgin Date: Mon, 5 Dec 2011 18:35:04 +0000 (-0800) Subject: rbd: expose the correct size of the device in sysfs X-Git-Tag: v3.6-rc1~36^2~44 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a51aa0c042fa39946dd017d5f91a073300a71577;p=pandora-kernel.git rbd: expose the correct size of the device in sysfs If an image was mapped to a snapshot, the size of the head version would be shown. Protect capacity with header_rwsem, since it may change. Signed-off-by: Josh Durgin Reviewed-by: Alex Elder --- Reading git-diff-tree failed