aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGabriel <g2p.code@gmail.com>2013-06-09 01:12:40 +0200
committerGabriel <g2p.code@gmail.com>2013-06-09 01:12:40 +0200
commitdf844c04d1c2de10bbd44cfc4bd36d9e36760798 (patch)
treeae677a8ed89ed77b2b32a832cbb04dffd9ee0441
parent0b2587b5bc3869cb96161273c32c9fe6be93b6e1 (diff)
downloadbcache-tools-df844c04d1c2de10bbd44cfc4bd36d9e36760798.tar.gz
udev: Add /dev/bcache/by-label symlinks to cached devices
-rw-r--r--61-bcache.rules2
1 files changed, 2 insertions, 0 deletions
diff --git a/61-bcache.rules b/61-bcache.rules
index 3a452491..22c1a90e 100644
--- a/61-bcache.rules
+++ b/61-bcache.rules
@@ -13,6 +13,8 @@ SUBSYSTEM=="block", ACTION=="add|change", ENV{ID_FS_TYPE}=="bcache", \
# Cached devices: symlink
DRIVER=="bcache", ENV{CACHED_UUID}=="?*", \
SYMLINK+="bcache/by-uuid/$env{CACHED_UUID}"
+DRIVER=="bcache", ENV{CACHED_LABEL}=="?*", \
+ SYMLINK+="bcache/by-label/$env{CACHED_LABEL}"
LABEL="bcache_end"