fix udev block device watch
This commit is contained in:
parent
4dc6b4953d
commit
6cfa04faa1
21
0005-rules-fix-typo-in-block-watch-rule.patch
Normal file
21
0005-rules-fix-typo-in-block-watch-rule.patch
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
From 10c7cf9e109f6b59159e439774b5be5fd1faa24e Mon Sep 17 00:00:00 2001
|
||||||
|
From: Tom Gundersen <teg@jklm.no>
|
||||||
|
Date: Fri, 29 May 2015 19:59:24 +0200
|
||||||
|
Subject: [PATCH] rules: fix typo in block watch rule
|
||||||
|
|
||||||
|
The intention was to turn this rule from using a blacklist to a whitelist, but
|
||||||
|
there was a stray '!'.
|
||||||
|
---
|
||||||
|
rules/60-block.rules | 2 +-
|
||||||
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||||
|
|
||||||
|
diff --git a/rules/60-block.rules b/rules/60-block.rules
|
||||||
|
index de41499..cfd5010 100644
|
||||||
|
--- a/rules/60-block.rules
|
||||||
|
+++ b/rules/60-block.rules
|
||||||
|
@@ -8,4 +8,4 @@ ACTION=="add", SUBSYSTEM=="module", KERNEL=="block", ATTR{parameters/events_dfl_
|
||||||
|
ACTION=="change", SUBSYSTEM=="scsi", ENV{DEVTYPE}=="scsi_device", TEST=="block", ATTR{block/*/uevent}="change"
|
||||||
|
|
||||||
|
# watch metadata changes, caused by tools closing the device node which was opened for writing
|
||||||
|
-ACTION=="add", SUBSYSTEM=="block", KERNEL!="loop*|nvme*|sd*|vd*", OPTIONS+="watch"
|
||||||
|
+ACTION=="add", SUBSYSTEM=="block", KERNEL=="loop*|nvme*|sd*|vd*", OPTIONS+="watch"
|
21
0006-rules-restore-block-watch-after-CHANGE-events.patch
Normal file
21
0006-rules-restore-block-watch-after-CHANGE-events.patch
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
From 7a41b5a87167c3628d702d5f9db0cba1df4eff2c Mon Sep 17 00:00:00 2001
|
||||||
|
From: Tom Gundersen <teg@jklm.no>
|
||||||
|
Date: Fri, 29 May 2015 20:55:39 +0200
|
||||||
|
Subject: [PATCH] rules: restore block watch after CHANGE events
|
||||||
|
|
||||||
|
When processing an event, the watch is disabled, make sure it is restorted after
|
||||||
|
a CHANGE event has been processed.
|
||||||
|
---
|
||||||
|
rules/60-block.rules | 2 +-
|
||||||
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||||
|
|
||||||
|
diff --git a/rules/60-block.rules b/rules/60-block.rules
|
||||||
|
index cfd5010..a69d648 100644
|
||||||
|
--- a/rules/60-block.rules
|
||||||
|
+++ b/rules/60-block.rules
|
||||||
|
@@ -8,4 +8,4 @@ ACTION=="add", SUBSYSTEM=="module", KERNEL=="block", ATTR{parameters/events_dfl_
|
||||||
|
ACTION=="change", SUBSYSTEM=="scsi", ENV{DEVTYPE}=="scsi_device", TEST=="block", ATTR{block/*/uevent}="change"
|
||||||
|
|
||||||
|
# watch metadata changes, caused by tools closing the device node which was opened for writing
|
||||||
|
-ACTION=="add", SUBSYSTEM=="block", KERNEL=="loop*|nvme*|sd*|vd*", OPTIONS+="watch"
|
||||||
|
+ACTION!="remove", SUBSYSTEM=="block", KERNEL=="loop*|nvme*|sd*|vd*", OPTIONS+="watch"
|
@ -16,7 +16,7 @@
|
|||||||
Name: systemd
|
Name: systemd
|
||||||
Url: http://www.freedesktop.org/wiki/Software/systemd
|
Url: http://www.freedesktop.org/wiki/Software/systemd
|
||||||
Version: 220
|
Version: 220
|
||||||
Release: 6%{?gitcommit:.git%{gitcommit}}%{?dist}
|
Release: 7%{?gitcommit:.git%{gitcommit}}%{?dist}
|
||||||
# For a breakdown of the licensing, see README
|
# For a breakdown of the licensing, see README
|
||||||
License: LGPLv2+ and MIT and GPLv2+
|
License: LGPLv2+ and MIT and GPLv2+
|
||||||
Summary: A System and Service Manager
|
Summary: A System and Service Manager
|
||||||
@ -56,6 +56,10 @@ Patch1002: 0001-udevd-fix-SIGCHLD-handling-in-daemon-mode.patch
|
|||||||
# Add support for petera disk encryption
|
# Add support for petera disk encryption
|
||||||
Patch1003: 0004-cryptsetup-craft-a-unique-ID-with-the-source-device.patch
|
Patch1003: 0004-cryptsetup-craft-a-unique-ID-with-the-source-device.patch
|
||||||
|
|
||||||
|
# Fix udev block device watch
|
||||||
|
Patch1004: 0005-rules-fix-typo-in-block-watch-rule.patch
|
||||||
|
Patch1005: 0006-rules-restore-block-watch-after-CHANGE-events.patch
|
||||||
|
|
||||||
%global num_patches %{lua: c=0; for i,p in ipairs(patches) do c=c+1; end; print(c);}
|
%global num_patches %{lua: c=0; for i,p in ipairs(patches) do c=c+1; end; print(c);}
|
||||||
|
|
||||||
BuildRequires: libcap-devel
|
BuildRequires: libcap-devel
|
||||||
@ -863,6 +867,9 @@ getent passwd systemd-journal-upload >/dev/null 2>&1 || useradd -r -l -g systemd
|
|||||||
/usr/lib/firewalld/services/*
|
/usr/lib/firewalld/services/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Jun 09 2015 Harald Hoyer <harald@redhat.com> 220-7
|
||||||
|
- fix udev block device watch
|
||||||
|
|
||||||
* Tue Jun 09 2015 Harald Hoyer <harald@redhat.com> 220-6
|
* Tue Jun 09 2015 Harald Hoyer <harald@redhat.com> 220-6
|
||||||
- add support for network disk encryption
|
- add support for network disk encryption
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user