Gentoo Archives: gentoo-commits

From: Conrad Kostecki <conikost@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-cluster/glusterfs/files/
Date: Tue, 23 Nov 2021 20:37:23
Message-Id: 1637699789.9f673c23495eb421b5fe80fdc636d30ed5a90e78.conikost@gentoo
1 commit: 9f673c23495eb421b5fe80fdc636d30ed5a90e78
2 Author: Michael Mair-Keimberger <mmk <AT> levelnine <DOT> at>
3 AuthorDate: Tue Nov 23 19:59:15 2021 +0000
4 Commit: Conrad Kostecki <conikost <AT> gentoo <DOT> org>
5 CommitDate: Tue Nov 23 20:36:29 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9f673c23
7
8 sys-cluster/glusterfs: remove unused patches
9
10 Closes: https://github.com/gentoo/gentoo/pull/23058
11 Package-Manager: Portage-3.0.28, Repoman-3.0.3
12 Signed-off-by: Michael Mair-Keimberger <mmk <AT> levelnine.at>
13 Signed-off-by: Conrad Kostecki <conikost <AT> gentoo.org>
14
15 sys-cluster/glusterfs/files/glusterd-r3.initd | 32 -----------
16 .../glusterfs/files/glusterfs-7.7-flock.patch | 65 ----------------------
17 2 files changed, 97 deletions(-)
18
19 diff --git a/sys-cluster/glusterfs/files/glusterd-r3.initd b/sys-cluster/glusterfs/files/glusterd-r3.initd
20 deleted file mode 100644
21 index 27682d06216d..000000000000
22 --- a/sys-cluster/glusterfs/files/glusterd-r3.initd
23 +++ /dev/null
24 @@ -1,32 +0,0 @@
25 -#!/sbin/openrc-run
26 -# Copyright 1999-2015 Gentoo Foundation
27 -# Distributed under the terms of the GNU General Public License v2
28 -
29 -description="Gluster elastic volume management daemon"
30 -command="/usr/sbin/glusterd"
31 -pidfile="/var/run/${SVCNAME}.pid"
32 -command_args="-N"
33 -
34 -command_background="yes"
35 -
36 -depend() {
37 - need net
38 - before netmount
39 -}
40 -
41 -start_pre() {
42 - # Ensure that the GlusterFS auxiliary mount parent directory exists
43 - checkpath --directory --owner gluster:gluster --mode 0775 /var/run/gluster
44 -}
45 -
46 -start_post() {
47 - local c=0
48 - ebegin "Waiting for glusterd to start up"
49 - while ! /usr/sbin/gluster volume list &>/dev/null && [ "${c}" -lt "${glusterd_max_wait_start-60}" ]; do
50 - (( ++c ))
51 - done
52 - [ "${c}" -lt "${glusterd_max_wait_start-60}" ]
53 - eend $?
54 -
55 - return 0
56 -}
57
58 diff --git a/sys-cluster/glusterfs/files/glusterfs-7.7-flock.patch b/sys-cluster/glusterfs/files/glusterfs-7.7-flock.patch
59 deleted file mode 100644
60 index f7930406cd18..000000000000
61 --- a/sys-cluster/glusterfs/files/glusterfs-7.7-flock.patch
62 +++ /dev/null
63 @@ -1,65 +0,0 @@
64 -# https://bugs.gentoo.org/733228
65 -# https://bugzilla.redhat.com/show_bug.cgi?id=1718562
66 -# https://bugzilla.redhat.com/show_bug.cgi?id=1776152
67 -# https://review.gluster.org/#/c/glusterfs/+/23794/8/xlators/features/locks/src/common.c
68 -
69 -From 6ef82683064a87c434bd67e2004935281e4c04cc Mon Sep 17 00:00:00 2001
70 -From: l17zhou <cynthia.zhou@×××××××××××.com>
71 -Date: Tue, 03 Dec 2019 07:43:35 +0200
72 -Subject: [PATCH] add clean local after grant lock
73 -
74 -found by flock test, without correct ref number of fd,
75 -lock will not be correctly released.
76 -
77 -Fixes: bz#1779089
78 -Change-Id: I3e466b17c852eb219c8778e43af8ad670a8449cc
79 -Signed-off-by: l17zhou <cynthia.zhou@×××××××××××.com>
80 ----
81 -
82 -diff --git a/xlators/features/locks/src/common.c b/xlators/features/locks/src/common.c
83 -index c78d537..4c6b78c 100644
84 ---- a/xlators/features/locks/src/common.c
85 -+++ b/xlators/features/locks/src/common.c
86 -@@ -962,7 +962,7 @@
87 - struct list_head granted_list;
88 - posix_lock_t *tmp = NULL;
89 - posix_lock_t *lock = NULL;
90 --
91 -+ pl_local_t *local = NULL;
92 - INIT_LIST_HEAD(&granted_list);
93 -
94 - pthread_mutex_lock(&pl_inode->mutex);
95 -@@ -977,9 +977,9 @@
96 -
97 - pl_trace_out(this, lock->frame, NULL, NULL, F_SETLKW, &lock->user_flock,
98 - 0, 0, NULL);
99 --
100 -- STACK_UNWIND_STRICT(lk, lock->frame, 0, 0, &lock->user_flock, NULL);
101 --
102 -+ local = lock->frame->local;
103 -+ PL_STACK_UNWIND_AND_FREE(local, lk, lock->frame, 0, 0,
104 -+ &lock->user_flock, NULL);
105 - __destroy_lock(lock);
106 - }
107 -
108 -@@ -999,6 +999,7 @@
109 - struct list_head granted_list;
110 - posix_lock_t *tmp = NULL;
111 - posix_lock_t *lock = NULL;
112 -+ pl_local_t *local = NULL;
113 -
114 - int ret = -1;
115 -
116 -@@ -1026,9 +1027,9 @@
117 -
118 - pl_trace_out(this, lock->frame, NULL, NULL, F_SETLKW, &lock->user_flock,
119 - 0, 0, NULL);
120 --
121 -- STACK_UNWIND_STRICT(lk, lock->frame, 0, 0, &lock->user_flock, NULL);
122 --
123 -+ local = lock->frame->local;
124 -+ PL_STACK_UNWIND_AND_FREE(local, lk, lock->frame, 0, 0,
125 -+ &lock->user_flock, NULL);
126 - __destroy_lock(lock);
127 - }
128 -