diff options
author | Alex Elder <elder@inktank.com> | 2013-05-06 07:40:30 -0500 |
---|---|---|
committer | Alex Elder <elder@inktank.com> | 2013-05-08 07:48:12 -0500 |
commit | 51344a38ba2033be18a4ec23e318845caeccdc04 (patch) | |
tree | ec44e04a0219e9d7b7c99ad6e87b546289eceea5 /Kbuild | |
parent | 6d80b130d516deef51666e210fde674c947b8b5c (diff) | |
download | op-kernel-dev-51344a38ba2033be18a4ec23e318845caeccdc04.zip op-kernel-dev-51344a38ba2033be18a4ec23e318845caeccdc04.tar.gz |
rbd: always set read-only flag in rbd_add()
Hold off setting the read-only flag in rbd_add() for an image being
mapped until we have successfully probed the image. At that point
we know whether it's a snapshot mapping or not, so we can set the
read-only flag in that one place rather than doing so (for
snapshots) in rbd_dev_mapping_set(). To do this, pass a flag to the
image probe routine indicating whether we want a read-only mapping.
Signed-off-by: Alex Elder <elder@inktank.com>
Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
Diffstat (limited to 'Kbuild')
0 files changed, 0 insertions, 0 deletions