summaryrefslogtreecommitdiff
path: root/udev
diff options
context:
space:
mode:
authorJosh Durgin <josh.durgin@dreamhost.com>2011-12-08 16:36:45 -0800
committerJosh Durgin <josh.durgin@dreamhost.com>2011-12-08 16:36:47 -0800
commit891025e539a92b5d75011e2e75c475fc0c272042 (patch)
tree03407d42cf4e46f05115ae5fcf6ca72ca96205ef /udev
parenta5606ca435869f3ccd9b9932349d52a8cbccc386 (diff)
downloadceph-891025e539a92b5d75011e2e75c475fc0c272042.tar.gz
udev: drop device number from name
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 <josh.durgin@dreamhost.com>
Diffstat (limited to 'udev')
-rw-r--r--udev/50-rbd.rules2
1 files changed, 1 insertions, 1 deletions
diff --git a/udev/50-rbd.rules b/udev/50-rbd.rules
index ec7abfc7133..07f220f1b85 100644
--- a/udev/50-rbd.rules
+++ b/udev/50-rbd.rules
@@ -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}"