diff options
author | Alex Elder <elder@inktank.com> | 2013-05-06 17:40:33 -0500 |
---|---|---|
committer | Alex Elder <elder@inktank.com> | 2013-05-08 20:16:50 -0500 |
commit | 7ce4eef7b5fad73b365b7e4b8892af3af72d4bd3 (patch) | |
tree | cde113dd54f09cac813475c111be21e3500f4252 /net/ceph | |
parent | 5b2ab72d367d2682c1a237448fbc1595881a88fa (diff) |
rbd: set mapping read-only flag in rbd_add()
The rbd_dev->mapping field for a parent image is not meaningful.
Since rbd_image_probe() is used both for images being mapped and
their parents, it doesn't make sense to set that flag in that
function.
So move the setting of the mapping.read_only flag out of
rbd_dev_image_probe() and into rbd_add() instead.
This resolves:
http://tracker.ceph.com/issues/4940
Signed-off-by: Alex Elder <elder@inktank.com>
Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
Diffstat (limited to 'net/ceph')
0 files changed, 0 insertions, 0 deletions