Skip to content
Commit a51aa0c0 authored by Josh Durgin's avatar Josh Durgin Committed by Sage Weil
Browse files

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: default avatarJosh Durgin <josh.durgin@dreamhost.com>
Reviewed-by: default avatarAlex Elder <elder@inktank.com>
parent 474ef7ce
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment