commit | a51aa0c042fa39946dd017d5f91a073300a71577 | [log] [tgz] |
---|---|---|
author | Josh Durgin <josh.durgin@dreamhost.com> | Mon Dec 05 10:35:04 2011 -0800 |
committer | Sage Weil <sage@inktank.com> | Mon Jul 30 18:15:38 2012 -0700 |
tree | 4afc8c5ba8508f5ccfe07aefe8eeb9b98044d6d4 | |
parent | 474ef7ce832d471148f63a9d07f67fc5564834f1 [diff] |
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 <josh.durgin@dreamhost.com> Reviewed-by: Alex Elder <elder@inktank.com>