diff options
author | Gabriel <g2p.code@gmail.com> | 2013-06-09 01:12:40 +0200 |
---|---|---|
committer | Gabriel <g2p.code@gmail.com> | 2013-06-09 01:12:40 +0200 |
commit | df844c04d1c2de10bbd44cfc4bd36d9e36760798 (patch) | |
tree | ae677a8ed89ed77b2b32a832cbb04dffd9ee0441 | |
parent | 0b2587b5bc3869cb96161273c32c9fe6be93b6e1 (diff) | |
download | bcache-tools-df844c04d1c2de10bbd44cfc4bd36d9e36760798.tar.gz |
udev: Add /dev/bcache/by-label symlinks to cached devices
-rw-r--r-- | 61-bcache.rules | 2 |
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" |