Project

General

Profile

Actions

Feature #12113

closed

rbd map should probably avoid creating duplicate devices for the same image

Added by Samuel Just almost 9 years ago. Updated over 6 years ago.

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

0%

Source:
other
Tags:
Backport:
Reviewed:
Affected Versions:
Pull request ID:

Description

Perhaps the default should be that mapping an rbd image creates a new /dev/rbd* if one does not exist for the image, and then creates a symlink, perhaps in /dev/rbd/ ? mapping the new alias to the same device. That would prevent ext4 from incorrectly mounting the same image twice. It would also allow rbd map to let the user specify a name for the rbd image mapping.

The current behavior is useful in some cases, however. Probably there should be a --force-duplicate option to force a new kernel mapping as in the current behavior.

Actions

Also available in: Atom PDF