]> git.sesse.net Git - bcachefs-tools-debian/commitdiff
udev: Add /dev/bcache/by-label symlinks to cached devices
authorGabriel <g2p.code@gmail.com>
Sat, 8 Jun 2013 23:12:40 +0000 (01:12 +0200)
committerGabriel <g2p.code@gmail.com>
Sat, 8 Jun 2013 23:12:40 +0000 (01:12 +0200)
61-bcache.rules

index 3a4524916213bc1cc450e2aa51509324fceef81a..22c1a90e461118334dd7d14ddb8bb5ebcc0a91ad 100644 (file)
@@ -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"