]> git.proxmox.com Git - lvm.git/commitdiff
re-export patches from patch queue
authorFabian Grünbichler <f.gruenbichler@proxmox.com>
Mon, 9 Oct 2017 12:25:45 +0000 (14:25 +0200)
committerFabian Grünbichler <f.gruenbichler@proxmox.com>
Mon, 9 Oct 2017 12:42:39 +0000 (14:42 +0200)
patchdir/0001-filter-zvols-and-PVE-VG-by-default.patch
patchdir/0002-enable-issue_discards-by-default.patch
patchdir/0004-dmeventd-schedule-exit-on-break.patch
patchdir/0005-dmeventd-ensure-service-gets-stopped-on-shutdown.patch [deleted file]
patchdir/0005-dmeventd-ensure-systemd-service-gets-stopped-on-shut.patch [new file with mode: 0644]
patchdir/0006-disable-init-scripts.patch
patchdir/series

index b02f725ad1b2acde38528d8793113f8f8a73cb23..5ebe4943b08585fad6891a19e834051836f1f07f 100644 (file)
@@ -1,7 +1,7 @@
-From 9133a3b85cc8105dd37b266a8223a44d1c881318 Mon Sep 17 00:00:00 2001
+From 65e9206964c546842ccd8cc8c7885b4feb66c429 Mon Sep 17 00:00:00 2001
 From: =?UTF-8?q?Fabian=20Gr=C3=BCnbichler?= <f.gruenbichler@proxmox.com>
 Date: Fri, 17 Mar 2017 11:59:25 +0100
-Subject: [PATCH 1/4] filter zvols and PVE VG by default
+Subject: [PATCH 1/6] filter zvols and PVE VG by default
 MIME-Version: 1.0
 Content-Type: text/plain; charset=UTF-8
 Content-Transfer-Encoding: 8bit
index 5db99dbb549c84bd43936d00b4849ec6e3d2b2c0..ac667323fbbb462f74bbc0d618f43f15f6bd8e46 100644 (file)
@@ -1,7 +1,7 @@
-From d3cd068c29b356b1b21a013e039d017d7d714f0e Mon Sep 17 00:00:00 2001
+From 829981232ec0ec4e8b2cae15d3fb940907feb28f Mon Sep 17 00:00:00 2001
 From: =?UTF-8?q?Fabian=20Gr=C3=BCnbichler?= <f.gruenbichler@proxmox.com>
 Date: Fri, 17 Mar 2017 11:59:54 +0100
-Subject: [PATCH 2/4] enable issue_discards by default
+Subject: [PATCH 2/6] enable issue_discards by default
 MIME-Version: 1.0
 Content-Type: text/plain; charset=UTF-8
 Content-Transfer-Encoding: 8bit
index ed5dd44e653b7b9011c98fb7c52a06d021288368..98c948c696e6b246a9bd817f7fee134173be80ed 100644 (file)
@@ -1,7 +1,10 @@
-From 9940c2f754e3292b6d96628682c254941ae6cc58 Mon Sep 17 00:00:00 2001
+From 2d388d787ea9100da535dd5f7e57a6802f4567ba Mon Sep 17 00:00:00 2001
 From: Zdenek Kabelac <zkabelac@redhat.com>
 Date: Wed, 4 Oct 2017 13:58:21 +0200
-Subject: [PATCH] dmeventd: schedule exit on break
+Subject: [PATCH 4/6] dmeventd: schedule exit on break
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
 
 When dmeventd receives SIGTERM/INT/HUP/QUIT it validates if exit is possible.
 If there was any device still monitored, such exit request used to
@@ -24,12 +27,13 @@ started.
 cherry picked from commit 9940c2f754e3292b6d96628682c254941ae6cc58
 
 Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
+Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
 ---
  daemons/dmeventd/dmeventd.c | 13 ++++++++-----
- 1 files changed, 8 insertions(+), 5 deletions(-)
+ 1 file changed, 8 insertions(+), 5 deletions(-)
 
 diff --git a/daemons/dmeventd/dmeventd.c b/daemons/dmeventd/dmeventd.c
-index 3a92ab6..cc520d3 100644
+index 1565b80..a16cb1f 100644
 --- a/daemons/dmeventd/dmeventd.c
 +++ b/daemons/dmeventd/dmeventd.c
 @@ -62,6 +62,8 @@
@@ -59,7 +63,7 @@ index 3a92ab6..cc520d3 100644
                                log_info("dmeventd detected break while being idle "
                                         "for %ld second(s), exiting.",
                                         (long) (time(NULL) - _idle_since));
-@@ -2264,15 +2268,14 @@ int main(int argc, char *argv[])
+@@ -2263,15 +2267,14 @@ int main(int argc, char *argv[])
                                        break;
                                }
                        }
@@ -79,4 +83,5 @@ index 3a92ab6..cc520d3 100644
                _process_request(&fifos);
                _cleanup_unused_threads();
 -- 
-2.9.3
+2.14.1
+
diff --git a/patchdir/0005-dmeventd-ensure-service-gets-stopped-on-shutdown.patch b/patchdir/0005-dmeventd-ensure-service-gets-stopped-on-shutdown.patch
deleted file mode 100644 (file)
index d731649..0000000
+++ /dev/null
@@ -1,46 +0,0 @@
-From a781b1c1788461595f382918bb1fc210d248d444 Mon Sep 17 00:00:00 2001
-From: Thomas Lamprecht <t.lamprecht@proxmox.com>
-Date: Thu, 5 Oct 2017 12:52:15 +0200
-Subject: [PATCH] dmeventd: ensure systemd service gets stopped on shutdown
-
-Add these for dmeventd systemd unit (dm-event.service):
-
-  Before: shutdown.target
-  Conflicts: shutdown.target
-
-This will cause the dmeventd to be properly stopped at shutdown (after
-all the dmeventd clients unregistered their devices from monitoring)
-with dm-event.service's stop action (there's no direct action defined
-for the "stop" so systemd sends SIGTERM instead).
-
-Before, we let dmeventd to get killed only as part of the very last
-SIGTERM/SIGKILL for all the remaining processes late in the shutdown
-sequence so we may have missed some logs if dmeventd encountered an
-error during its shutdown (logging facilities are already off at this
-late time in shutdown sequence).
-
-Ref: https://www.redhat.com/archives/lvm-devel/2017-October/msg00000.html
-
-cherry picked from commit a781b1c1788461595f382918bb1fc210d248d444
-
-Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
----
- scripts/dm_event_systemd_red_hat.service.in | 3 ++-
- 1 file changed, 2 insertions(+), 1 deletion(-)
-
-diff --git a/scripts/dm_event_systemd_red_hat.service.in b/scripts/dm_event_systemd_red_hat.service.in
-index 7c607aa..4924d39 100644
---- a/scripts/dm_event_systemd_red_hat.service.in
-+++ b/scripts/dm_event_systemd_red_hat.service.in
-@@ -3,7 +3,8 @@ Description=Device-mapper event daemon
- Documentation=man:dmeventd(8)
- Requires=dm-event.socket
- After=dm-event.socket
--Before=local-fs-pre.target
-+Before=local-fs-pre.target shutdown.target
-+Conflicts=shutdown.target
- DefaultDependencies=no
- [Service]
--- 
-2.9.3
diff --git a/patchdir/0005-dmeventd-ensure-systemd-service-gets-stopped-on-shut.patch b/patchdir/0005-dmeventd-ensure-systemd-service-gets-stopped-on-shut.patch
new file mode 100644 (file)
index 0000000..e70dbf8
--- /dev/null
@@ -0,0 +1,51 @@
+From e47ceabaa07f5705a80f66f98f2639b562b90793 Mon Sep 17 00:00:00 2001
+From: Thomas Lamprecht <t.lamprecht@proxmox.com>
+Date: Thu, 5 Oct 2017 12:52:15 +0200
+Subject: [PATCH 5/6] dmeventd: ensure systemd service gets stopped on shutdown
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+Add these for dmeventd systemd unit (dm-event.service):
+
+  Before: shutdown.target
+  Conflicts: shutdown.target
+
+This will cause the dmeventd to be properly stopped at shutdown (after
+all the dmeventd clients unregistered their devices from monitoring)
+with dm-event.service's stop action (there's no direct action defined
+for the "stop" so systemd sends SIGTERM instead).
+
+Before, we let dmeventd to get killed only as part of the very last
+SIGTERM/SIGKILL for all the remaining processes late in the shutdown
+sequence so we may have missed some logs if dmeventd encountered an
+error during its shutdown (logging facilities are already off at this
+late time in shutdown sequence).
+
+Ref: https://www.redhat.com/archives/lvm-devel/2017-October/msg00000.html
+
+cherry picked from commit a781b1c1788461595f382918bb1fc210d248d444
+
+Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
+Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
+---
+ scripts/dm_event_systemd_red_hat.service.in | 3 ++-
+ 1 file changed, 2 insertions(+), 1 deletion(-)
+
+diff --git a/scripts/dm_event_systemd_red_hat.service.in b/scripts/dm_event_systemd_red_hat.service.in
+index 7c607aa..4924d39 100644
+--- a/scripts/dm_event_systemd_red_hat.service.in
++++ b/scripts/dm_event_systemd_red_hat.service.in
+@@ -3,7 +3,8 @@ Description=Device-mapper event daemon
+ Documentation=man:dmeventd(8)
+ Requires=dm-event.socket
+ After=dm-event.socket
+-Before=local-fs-pre.target
++Before=local-fs-pre.target shutdown.target
++Conflicts=shutdown.target
+ DefaultDependencies=no
+ [Service]
+-- 
+2.14.1
+
index 5b09027cdc36794e162c0b65c3fc06448fcc589f..614aaa4a6f521daa6fab25be5bed2baa6bf3008b 100644 (file)
@@ -1,4 +1,4 @@
-From 2f1ea95b944a8b4ffa12a0d5bfb8d2aa9f71c365 Mon Sep 17 00:00:00 2001
+From 0a3eb4ba7dc2554e71319e95ad61bd8611cc0c59 Mon Sep 17 00:00:00 2001
 From: =?UTF-8?q?Fabian=20Gr=C3=BCnbichler?= <f.gruenbichler@proxmox.com>
 Date: Mon, 9 Oct 2017 13:05:31 +0200
 Subject: [PATCH 6/6] disable init scripts
index bdba2d6108e1fd45ea2b7289b9babcff0f7573d3..7c98089aa2085e3afbb593ec977b3d6ca5c5a86e 100644 (file)
@@ -2,5 +2,5 @@
 0002-enable-issue_discards-by-default.patch
 0003-disable-use-lvmetad.patch
 0004-dmeventd-schedule-exit-on-break.patch
-0005-dmeventd-ensure-service-gets-stopped-on-shutdown.patch
+0005-dmeventd-ensure-systemd-service-gets-stopped-on-shut.patch
 0006-disable-init-scripts.patch