lvm2: refresh patches

used quilt to refresh

Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
Armin Kuster
2018-05-20 14:24:15 -07:00
committed by Khem Raj
parent acfc380d4e
commit 40c0b16b72
5 changed files with 86 additions and 101 deletions
@@ -17,17 +17,17 @@ Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
scripts/lvm2_monitoring_init_rhel4 | 4 ++--
8 files changed, 17 insertions(+), 17 deletions(-)
diff --git a/scripts/blk_availability_init_red_hat.in b/scripts/blk_availability_init_red_hat.in
index a84ffe7..6b855b7 100644
--- a/scripts/blk_availability_init_red_hat.in
+++ b/scripts/blk_availability_init_red_hat.in
Index: LVM2.2.02.177/scripts/blk_availability_init_red_hat.in
===================================================================
--- LVM2.2.02.177.orig/scripts/blk_availability_init_red_hat.in
+++ LVM2.2.02.177/scripts/blk_availability_init_red_hat.in
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
#
# Copyright (C) 2012 Red Hat, Inc. All rights reserved.
# Copyright (C) 2012-2017 Red Hat, Inc. All rights reserved.
#
@@ -53,6 +53,6 @@ case "$1" in
@@ -51,6 +51,6 @@ case "$1" in
status)
;;
*)
@@ -35,10 +35,10 @@ index a84ffe7..6b855b7 100644
+ echo "Usage: $0 {start|stop|status}"
;;
esac
diff --git a/scripts/clvmd_init_red_hat.in b/scripts/clvmd_init_red_hat.in
index d7f3392..abc8011 100644
--- a/scripts/clvmd_init_red_hat.in
+++ b/scripts/clvmd_init_red_hat.in
Index: LVM2.2.02.177/scripts/clvmd_init_red_hat.in
===================================================================
--- LVM2.2.02.177.orig/scripts/clvmd_init_red_hat.in
+++ LVM2.2.02.177/scripts/clvmd_init_red_hat.in
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
@@ -63,17 +63,17 @@ index d7f3392..abc8011 100644
rtrn=2
;;
esac
diff --git a/scripts/cmirrord_init_red_hat.in b/scripts/cmirrord_init_red_hat.in
index d4b7e37..d442cbc 100755
--- a/scripts/cmirrord_init_red_hat.in
+++ b/scripts/cmirrord_init_red_hat.in
Index: LVM2.2.02.177/scripts/cmirrord_init_red_hat.in
===================================================================
--- LVM2.2.02.177.orig/scripts/cmirrord_init_red_hat.in
+++ LVM2.2.02.177/scripts/cmirrord_init_red_hat.in
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
#
# chkconfig: - 22 78
# description: Starts and stops cmirrord
@@ -101,7 +101,7 @@ case "$1" in
@@ -103,7 +103,7 @@ case "$1" in
;;
*)
@@ -82,15 +82,15 @@ index d4b7e37..d442cbc 100755
;;
esac
diff --git a/scripts/lvm2_cluster_activation_red_hat.sh.in b/scripts/lvm2_cluster_activation_red_hat.sh.in
index abea026..d8cba2e 100644
--- a/scripts/lvm2_cluster_activation_red_hat.sh.in
+++ b/scripts/lvm2_cluster_activation_red_hat.sh.in
Index: LVM2.2.02.177/scripts/lvm2_cluster_activation_red_hat.sh.in
===================================================================
--- LVM2.2.02.177.orig/scripts/lvm2_cluster_activation_red_hat.sh.in
+++ LVM2.2.02.177/scripts/lvm2_cluster_activation_red_hat.sh.in
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
sbindir=@sbindir@
sbindir="@SBINDIR@"
@@ -54,7 +54,7 @@ case "$1" in
rtrn=$?
@@ -101,15 +101,34 @@ index abea026..d8cba2e 100644
rtrn=3
;;
esac
diff --git a/scripts/lvm2_lvmetad_init_red_hat.in b/scripts/lvm2_lvmetad_init_red_hat.in
index b2f5d50..96269a9 100644
--- a/scripts/lvm2_lvmetad_init_red_hat.in
+++ b/scripts/lvm2_lvmetad_init_red_hat.in
Index: LVM2.2.02.177/scripts/lvm2_lvmetad_init_red_hat.in
===================================================================
--- LVM2.2.02.177.orig/scripts/lvm2_lvmetad_init_red_hat.in
+++ LVM2.2.02.177/scripts/lvm2_lvmetad_init_red_hat.in
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
#
# Copyright (C) 2012 Red Hat, Inc. All rights reserved.
# Copyright (C) 2012-2017 Red Hat, Inc. All rights reserved.
#
@@ -103,7 +103,7 @@ case "$1" in
;;
*)
- echo $"Usage: $0 {start|stop|force-stop|restart|condrestart|try-restart|status}"
+ echo "Usage: $0 {start|stop|force-stop|restart|condrestart|try-restart|status}"
;;
esac
Index: LVM2.2.02.177/scripts/lvm2_lvmpolld_init_red_hat.in
===================================================================
--- LVM2.2.02.177.orig/scripts/lvm2_lvmpolld_init_red_hat.in
+++ LVM2.2.02.177/scripts/lvm2_lvmpolld_init_red_hat.in
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
#
# Copyright (C) 2015 Red Hat, Inc. All rights reserved.
#
@@ -105,7 +105,7 @@ case "$1" in
;;
@@ -120,36 +139,17 @@ index b2f5d50..96269a9 100644
;;
esac
diff --git a/scripts/lvm2_lvmpolld_init_red_hat.in b/scripts/lvm2_lvmpolld_init_red_hat.in
index c521955..cdbaece 100644
--- a/scripts/lvm2_lvmpolld_init_red_hat.in
+++ b/scripts/lvm2_lvmpolld_init_red_hat.in
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
#
# Copyright (C) 2015 Red Hat, Inc. All rights reserved.
#
@@ -107,7 +107,7 @@ case "$1" in
;;
*)
- echo $"Usage: $0 {start|stop|force-stop|restart|condrestart|try-restart|status}"
+ echo "Usage: $0 {start|stop|force-stop|restart|condrestart|try-restart|status}"
;;
esac
diff --git a/scripts/lvm2_monitoring_init_red_hat.in b/scripts/lvm2_monitoring_init_red_hat.in
index de7ff0d..9ff6bb7 100644
--- a/scripts/lvm2_monitoring_init_red_hat.in
+++ b/scripts/lvm2_monitoring_init_red_hat.in
Index: LVM2.2.02.177/scripts/lvm2_monitoring_init_red_hat.in
===================================================================
--- LVM2.2.02.177.orig/scripts/lvm2_monitoring_init_red_hat.in
+++ LVM2.2.02.177/scripts/lvm2_monitoring_init_red_hat.in
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
#
# Copyright (C) 2007-2009 Red Hat, Inc. All rights reserved.
#
@@ -128,7 +128,7 @@ case "$1" in
@@ -127,7 +127,7 @@ case "$1" in
;;
*)
@@ -158,10 +158,10 @@ index de7ff0d..9ff6bb7 100644
;;
esac
diff --git a/scripts/lvm2_monitoring_init_rhel4 b/scripts/lvm2_monitoring_init_rhel4
index 8eb06c5..2e8d0f7 100644
--- a/scripts/lvm2_monitoring_init_rhel4
+++ b/scripts/lvm2_monitoring_init_rhel4
Index: LVM2.2.02.177/scripts/lvm2_monitoring_init_rhel4
===================================================================
--- LVM2.2.02.177.orig/scripts/lvm2_monitoring_init_rhel4
+++ LVM2.2.02.177/scripts/lvm2_monitoring_init_rhel4
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
@@ -177,6 +177,3 @@ index 8eb06c5..2e8d0f7 100644
;;
esac
--
2.12.0
@@ -19,11 +19,11 @@ Signed-off-by: Dengke Du <dengke.du@windriver.com>
tools/lvmcmdline.c | 6 +++---
2 files changed, 9 insertions(+), 3 deletions(-)
diff --git a/lib/log/log.c b/lib/log/log.c
index c933154..3581084 100644
--- a/lib/log/log.c
+++ b/lib/log/log.c
@@ -161,6 +161,7 @@ static void _check_and_replace_standard_log_streams(FILE *old_stream, FILE *new_
Index: LVM2.2.02.177/lib/log/log.c
===================================================================
--- LVM2.2.02.177.orig/lib/log/log.c
+++ LVM2.2.02.177/lib/log/log.c
@@ -161,6 +161,7 @@ static void _check_and_replace_standard_
* Close and reopen standard stream on file descriptor fd.
*/
int reopen_standard_stream(FILE **stream, const char *mode)
@@ -31,7 +31,7 @@ index c933154..3581084 100644
{
int fd, fd_copy, new_fd;
const char *name;
@@ -207,6 +208,11 @@ int reopen_standard_stream(FILE **stream, const char *mode)
@@ -207,6 +208,11 @@ int reopen_standard_stream(FILE **stream
*stream = new_stream;
return 1;
}
@@ -43,11 +43,11 @@ index c933154..3581084 100644
void init_log_fn(lvm2_log_fn_t log_fn)
{
diff --git a/tools/lvmcmdline.c b/tools/lvmcmdline.c
index 9a4deb7..f1f18e6 100644
--- a/tools/lvmcmdline.c
+++ b/tools/lvmcmdline.c
@@ -1818,7 +1818,7 @@ static int _check_standard_fds(void)
Index: LVM2.2.02.177/tools/lvmcmdline.c
===================================================================
--- LVM2.2.02.177.orig/tools/lvmcmdline.c
+++ LVM2.2.02.177/tools/lvmcmdline.c
@@ -3095,7 +3095,7 @@ static int _check_standard_fds(void)
int err = is_valid_fd(STDERR_FILENO);
if (!is_valid_fd(STDIN_FILENO) &&
@@ -56,7 +56,7 @@ index 9a4deb7..f1f18e6 100644
if (err)
perror("stdin stream open");
else
@@ -1828,7 +1828,7 @@ static int _check_standard_fds(void)
@@ -3105,7 +3105,7 @@ static int _check_standard_fds(void)
}
if (!is_valid_fd(STDOUT_FILENO) &&
@@ -65,7 +65,7 @@ index 9a4deb7..f1f18e6 100644
if (err)
perror("stdout stream open");
/* else no stdout */
@@ -1836,7 +1836,7 @@ static int _check_standard_fds(void)
@@ -3113,7 +3113,7 @@ static int _check_standard_fds(void)
}
if (!is_valid_fd(STDERR_FILENO) &&
@@ -74,6 +74,3 @@ index 9a4deb7..f1f18e6 100644
printf("stderr stream open: %s\n",
strerror(errno));
return 0;
--
2.12.0
@@ -12,11 +12,11 @@ Signed-off-by: Dengke Du <dengke.du@windriver.com>
lib/mm/memlock.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/mm/memlock.c b/lib/mm/memlock.c
index da90144..f34f890 100644
--- a/lib/mm/memlock.c
+++ b/lib/mm/memlock.c
@@ -150,7 +150,7 @@ static void _touch_memory(void *mem, size_t size)
Index: LVM2.2.02.177/lib/mm/memlock.c
===================================================================
--- LVM2.2.02.177.orig/lib/mm/memlock.c
+++ LVM2.2.02.177/lib/mm/memlock.c
@@ -151,7 +151,7 @@ static void _touch_memory(void *mem, siz
static void _allocate_memory(void)
{
@@ -25,6 +25,3 @@ index da90144..f34f890 100644
void *stack_mem;
struct rlimit limit;
int i, area = 0, missing = _size_malloc_tmp, max_areas = 32, hblks;
--
2.12.0
@@ -21,11 +21,11 @@ Signed-off-by: Dengke Du <dengke.du@windriver.com>
configure.in | 1 -
1 file changed, 1 deletion(-)
diff --git a/configure.in b/configure.in
index cc77aab..a3579f2 100644
--- a/configure.in
+++ b/configure.in
@@ -1853,7 +1853,6 @@ if test "$UDEV_SYNC" = yes; then
Index: LVM2.2.02.177/configure.in
===================================================================
--- LVM2.2.02.177.orig/configure.in
+++ LVM2.2.02.177/configure.in
@@ -1870,7 +1870,6 @@ if test "$BUILD_DMFILEMAPD" = yes; then
fi
################################################################################
@@ -33,6 +33,3 @@ index cc77aab..a3579f2 100644
if test -n "$MODPROBE_CMD"; then
AC_DEFINE_UNQUOTED([MODPROBE_CMD], ["$MODPROBE_CMD"], [The path to 'modprobe', if available.])
--
2.9.3
@@ -19,10 +19,10 @@ Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
configure.in | 1 -
2 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/Makefile.in b/Makefile.in
index 31d428d..24f89a2 100644
--- a/Makefile.in
+++ b/Makefile.in
Index: LVM2.2.02.177/Makefile.in
===================================================================
--- LVM2.2.02.177.orig/Makefile.in
+++ LVM2.2.02.177/Makefile.in
@@ -18,7 +18,7 @@ top_builddir = @top_builddir@
abs_top_builddir = @abs_top_builddir@
abs_top_srcdir = @abs_top_srcdir@
@@ -32,7 +32,7 @@ index 31d428d..24f89a2 100644
ifeq ("@UDEV_RULES@", "yes")
SUBDIRS += udev
@@ -69,7 +69,7 @@ liblvm.device-mapper: include.device-mapper
@@ -69,7 +69,7 @@ liblvm.device-mapper: include.device-map
daemons.device-mapper: libdm.device-mapper
tools.device-mapper: libdm.device-mapper
scripts.device-mapper: include.device-mapper
@@ -41,11 +41,11 @@ index 31d428d..24f89a2 100644
ifeq ("@INTL@", "yes")
lib.pofile: include.pofile
diff --git a/configure.in b/configure.in
index 1dc8819..108ace4 100644
--- a/configure.in
+++ b/configure.in
@@ -2213,7 +2213,6 @@ libdm/Makefile
Index: LVM2.2.02.177/configure.in
===================================================================
--- LVM2.2.02.177.orig/configure.in
+++ LVM2.2.02.177/configure.in
@@ -2216,7 +2216,6 @@ libdm/Makefile
libdm/libdevmapper.pc
liblvm/Makefile
liblvm/liblvm2app.pc
@@ -53,6 +53,3 @@ index 1dc8819..108ace4 100644
po/Makefile
python/Makefile
python/setup.py
--
2.8.1