]> Git Repo - linux.git/commit
rbd: expose the correct size of the device in sysfs
authorJosh Durgin <[email protected]>
Mon, 5 Dec 2011 18:35:04 +0000 (10:35 -0800)
committerSage Weil <[email protected]>
Tue, 31 Jul 2012 01:15:38 +0000 (18:15 -0700)
commita51aa0c042fa39946dd017d5f91a073300a71577
tree4afc8c5ba8508f5ccfe07aefe8eeb9b98044d6d4
parent474ef7ce832d471148f63a9d07f67fc5564834f1
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 <[email protected]>
Reviewed-by: Alex Elder <[email protected]>
drivers/block/rbd.c
This page took 0.051978 seconds and 4 git commands to generate.