Skip to content

Commit

Permalink
udev: drop device number from name
Browse files Browse the repository at this point in the history
The device number depends on how many rbd images have been
mapped. Removing it makes the name determined solely by the name,
image, and snapshot that are mapped, for ease of scripting or persistence
across reboots.

Signed-off-by: Josh Durgin <[email protected]>
  • Loading branch information
jdurgin committed Dec 9, 2011
1 parent a5606ca commit 891025e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion udev/50-rbd.rules
Original file line number Diff line number Diff line change
@@ -1 +1 @@
KERNEL=="rbd[0-9]*", PROGRAM="/usr/bin/ceph-rbdnamer %n", SYMLINK+="rbd/%c{1}/%c{2}:%n"
KERNEL=="rbd[0-9]*", PROGRAM="/usr/bin/ceph-rbdnamer %n", SYMLINK+="rbd/%c{1}/%c{2}"

0 comments on commit 891025e

Please sign in to comment.