forked from pool/bcache-tools
Jan Engelhardt
df9ecb15f6
- Update bcache-tools to 1.0.9, this is required by yast2 bcache module development. In this version a new program named "bcache" is added, by this program people may avoid many operations on sysfs entries. (bsc#1109460) - Remove the following patche since it is in upstream, - 0001-build-remove-inline-keyword-from-crc64.patch - Rename prefix of 0001-udev-do-not-rely-on-DRIVER-variable.patch to a SUSE specific patch prefix 1001-udev-do-not-rely-on-DRIVER-variable.patch OBS-URL: https://build.opensuse.org/request/show/642512 OBS-URL: https://build.opensuse.org/package/show/filesystems/bcache-tools?expand=0&rev=17
40 lines
1.3 KiB
Diff
40 lines
1.3 KiB
Diff
From b48c30983b1510d94745bd07494fa81a68a5896e Mon Sep 17 00:00:00 2001
|
|
From: Jan Engelhardt <jengelh@inai.de>
|
|
Date: Sat, 28 Mar 2015 10:50:57 +0100
|
|
Subject: [PATCH] udev: do not rely on DRIVER variable
|
|
|
|
The DRIVER variable will only be set on a single event (when the
|
|
module creates the first instance?). Any subsequent udev event, e.g. a
|
|
change event for bcache0, does not have the DRIVER tag set. In fact,
|
|
most events don't. (This can be reproduced with `udevadm trigger`.)
|
|
This leads to a change in the contents of the SYMLINK variable which
|
|
leads to removal of /dev/bcache/, since DRIVER is not set.
|
|
|
|
Don't even bother to create such a volatile /dev/bcache/ in the
|
|
first place so users don't go chasing after it.
|
|
|
|
References: https://bugzilla.opensuse.org/880858
|
|
---
|
|
69-bcache.rules | 6 ------
|
|
1 file changed, 6 deletions(-)
|
|
|
|
diff --git a/69-bcache.rules b/69-bcache.rules
|
|
index 9cc7f0d..096fde6 100644
|
|
--- a/69-bcache.rules
|
|
+++ b/69-bcache.rules
|
|
@@ -22,11 +22,5 @@ RUN{builtin}+="kmod load bcache"
|
|
RUN+="bcache-register $tempnode"
|
|
LABEL="bcache_backing_end"
|
|
|
|
-# 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"
|
|
|
|
--
|
|
2.1.4
|
|
|