From: Alex Elder Date: Mon, 6 May 2013 22:40:33 +0000 (-0500) Subject: rbd: set mapping read-only flag in rbd_add() X-Git-Tag: v3.10-rc2~28^2~15 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7ce4eef7b5fad73b365b7e4b8892af3af72d4bd3;p=pandora-kernel.git 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 Reviewed-by: Josh Durgin --- Reading git-diff-tree failed