]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
udev: drop device number from name
authorJosh Durgin <josh.durgin@dreamhost.com>
Fri, 9 Dec 2011 00:36:45 +0000 (16:36 -0800)
committerJosh Durgin <josh.durgin@dreamhost.com>
Fri, 9 Dec 2011 00:36:47 +0000 (16:36 -0800)
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>
udev/50-rbd.rules

index ec7abfc7133a1bfa8b00ef9ae8ee29738e7867fd..07f220f1b85cd2610434e722c8ebefe112a48368 100644 (file)
@@ -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}"