Project

General

Profile

Bug #4940

rbd: set mapping read-only flag in rbd_add()

Added by Alex Elder almost 11 years ago. Updated almost 11 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
-
Target version:
% Done:

0%

Source:
other
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

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.

Signed-off-by: Alex Elder <>

History

#1 Updated by Alex Elder almost 11 years ago

  • Status changed from In Progress to Fix Under Review

The following has been posted for review. It is one of
the patches available in the "review/wip-rbd-cleanup-2"
branch of the ceph-client git repository.

[PATCH 3/5] rbd: set mapping read-only flag in rbd_add()

#2 Updated by Alex Elder almost 11 years ago

  • Status changed from Fix Under Review to Resolved

The following has been committed to the ceph-client
"testing-next" branch.

7ce4eef rbd: set mapping read-only flag in rbd_add()

Also available in: Atom PDF