commit lvm2 for openSUSE:Factory

2020-10-15 Thread root
Hello community,

here is the log from the commit of package lvm2 for openSUSE:Factory checked in 
at 2020-10-15 13:44:38

Comparing /work/SRC/openSUSE:Factory/lvm2 (Old)
 and  /work/SRC/openSUSE:Factory/.lvm2.new.3486 (New)


Package is "lvm2"

Thu Oct 15 13:44:38 2020 rev:140 rq:841376 version:2.03.10

Changes:

--- /work/SRC/openSUSE:Factory/lvm2/lvm2.changes2020-09-08 
22:44:14.935426412 +0200
+++ /work/SRC/openSUSE:Factory/.lvm2.new.3486/lvm2.changes  2020-10-15 
13:44:44.877161132 +0200
@@ -1,0 +2,7 @@
+Mon Oct 12 10:00:20 UTC 2020 - g...@suse.com
+
+- Update lvm2.spec file (bsc#1174336)
+  - enable lvmlockd remote refresh using libdlmcontrol
+  - update libdlm dependency relationship
+
+---



Other differences:
--
++ lvm2.spec ++
--- /var/tmp/diff_new_pack.nz4oXF/_old  2020-10-15 13:44:48.057162374 +0200
+++ /var/tmp/diff_new_pack.nz4oXF/_new  2020-10-15 13:44:48.061162375 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package lvm2
 #
-# Copyright (c) 2020 SUSE LLC
+# Copyright (c) 2020 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -25,7 +25,7 @@
 %define device_mapper_version 1.02.173
 %define thin_provisioning_version 0.7.0
 %define _supportsanlock 0
-%define dlm_version 4.0
+%define dlm_version 4.0.9
 # from lvm2 version 2.03, suse obsoleted clvm, cmirrord, liblvm2app & 
liblvm2cmd. 
 # so the obseletes version is 2.03 
 %define lvm2_clvm_version 2.03
@@ -100,7 +100,7 @@
 BuildRequires:  libcorosync-devel
 BuildRequires:  pkgconfig(blkid)
 %if %{with lockd}
-BuildRequires:  libdlm-devel
+BuildRequires:  libdlm-devel >= %{dlm_version}
 BuildRequires:  pkgconfig(libsystemd)
 %if 0%{_supportsanlock} == 1
 BuildRequires:  sanlock-devel >= %{sanlock_version}
@@ -162,6 +162,7 @@
 --with-default-pid-dir=/run
 --with-default-run-dir=/run/lvm
 --enable-lvmlockd-dlm
+--enable-lvmlockd-dlmcontrol
 %if 0%{_supportsanlock} == 1
 --enable-lvmlockd-sanlock
 %endif
@@ -425,8 +426,8 @@
 Group:  System/Base
 Requires:   corosync
 Requires:   device-mapper >= %{device_mapper_version}
+Requires:   libdlm >= %{dlm_version}
 Requires:   lvm2 = %{version}
-Recommends: libdlm >= %{dlm_version}
 Obsoletes:  lvm2-clvm <= %{lvm2_clvm_version}
 %{?systemd_requires}
 %if 0%{_supportsanlock} == 1





commit lvm2 for openSUSE:Factory

2020-09-08 Thread root
Hello community,

here is the log from the commit of package lvm2 for openSUSE:Factory checked in 
at 2020-09-08 22:43:39

Comparing /work/SRC/openSUSE:Factory/lvm2 (Old)
 and  /work/SRC/openSUSE:Factory/.lvm2.new.3399 (New)


Package is "lvm2"

Tue Sep  8 22:43:39 2020 rev:139 rq:831970 version:2.03.10

Changes:

--- /work/SRC/openSUSE:Factory/lvm2/lvm2.changes2020-08-28 
21:13:50.800105349 +0200
+++ /work/SRC/openSUSE:Factory/.lvm2.new.3399/lvm2.changes  2020-09-08 
22:44:14.935426412 +0200
@@ -1,0 +2,11 @@
+Thu Sep 03 08:16:00 UTC 2020 - heming.z...@suse.com
+
+- lvm can't pass build with gcc option Wstringop-overflow (bsc#1175565)
+  - remove suse speical patch
+- bug-1175565_lvm-cant-pass-build-with-gcc-option-Wstringop-overflow.patch
+  - add upstream patch
++ bug-1175565_01-tools-move-struct-element-before-variable-lenght-lis.patch
++ bug-1175565_02-gcc-change-zero-sized-array-to-fexlible-array.patch
++ bug-1175565_03-gcc-zero-sized-array-to-fexlible-array-C99.patch
+
+---

Old:

  bug-1175565_lvm-cant-pass-build-with-gcc-option-Wstringop-overflow.patch

New:

  bug-1175565_01-tools-move-struct-element-before-variable-lenght-lis.patch
  bug-1175565_02-gcc-change-zero-sized-array-to-fexlible-array.patch
  bug-1175565_03-gcc-zero-sized-array-to-fexlible-array-C99.patch



Other differences:
--
++ lvm2.spec ++
--- /var/tmp/diff_new_pack.eade7U/_old  2020-09-08 22:44:17.919427865 +0200
+++ /var/tmp/diff_new_pack.eade7U/_new  2020-09-08 22:44:17.923427867 +0200
@@ -62,6 +62,9 @@
 Source99:   baselibs.conf
 # Upstream patches
 # n/a
+Patch0001:  
bug-1175565_01-tools-move-struct-element-before-variable-lenght-lis.patch
+Patch0002:  
bug-1175565_02-gcc-change-zero-sized-array-to-fexlible-array.patch
+Patch0003:  bug-1175565_03-gcc-zero-sized-array-to-fexlible-array-C99.patch
 # SUSE patches: 1000+ for LVM
 # Never upstream
 Patch1001:  cmirrord_remove_date_time_from_compilation.patch
@@ -69,7 +72,6 @@
 Patch1003:  fate-31841_fsadm-add-support-for-btrfs.patch
 Patch1004:  bug-935623_dmeventd-fix-dso-name-wrong-compare.patch
 Patch1005:  bug-998893_make_pvscan_service_after_multipathd.patch
-Patch1006:  
bug-1175565_lvm-cant-pass-build-with-gcc-option-Wstringop-overflow.patch
 # SUSE patches 2000+ for device mapper, udev rules
 Patch2001:  
bug-1012973_simplify-special-case-for-md-in-69-dm-lvm-metadata.patch
 # SUSE patches 3000+ for test code
@@ -118,12 +120,14 @@
 
 %prep
 %setup -q -n LVM2.%{version}
+%patch0001 -p1
+%patch0002 -p1
+%patch0003 -p1
 %patch1001 -p1
 %patch1002 -p1
 %patch1003 -p1
 %patch1004 -p1
 %patch1005 -p1
-%patch1006 -p1
 %patch2001 -p1
 
 %if !%{with lockd}


++ 
bug-1175565_01-tools-move-struct-element-before-variable-lenght-lis.patch ++
>From b918afb693a62938e8189a5d07b13df8007ae062 Mon Sep 17 00:00:00 2001
From: Zdenek Kabelac 
Date: Fri, 28 Aug 2020 19:15:42 +0200
Subject: [PATCH] tools: move struct element before variable lenght list

Move prio field before 'variable' struct array field.
Interesting why this has not been catched yet.

TODO: think about test case
---
 tools/tools.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/tools.h b/tools/tools.h
index c3d780d..4b944e2 100644
--- a/tools/tools.h
+++ b/tools/tools.h
@@ -109,8 +109,8 @@ struct arg_values {
 
 struct arg_value_group_list {
 struct dm_list list;
-struct arg_values arg_values[0];
uint32_t prio;
+struct arg_values arg_values[0];
 };
 
 #define PERMITTED_READ_ONLY0x0002
-- 
1.8.3.1

++ bug-1175565_02-gcc-change-zero-sized-array-to-fexlible-array.patch ++
>From cc2218b4014015bd2633454e683293851183e08c Mon Sep 17 00:00:00 2001
From: Zhao Heming 
Date: Fri, 21 Aug 2020 00:05:04 +0800
Subject: [PATCH] gcc: change zero-sized array to fexlible array

this patch makes gcc happy with compiling option: [-Wstringop-overflow=]

Signed-off-by: Zhao Heming 
---
 device_mapper/libdm-common.c | 2 +-
 lib/activate/fs.c| 2 +-
 libdm/libdm-common.c | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/device_mapper/libdm-common.c b/device_mapper/libdm-common.c
index b6d08f5..9b87e4e 100644
--- a/device_mapper/libdm-common.c
+++ b/device_mapper/libdm-common.c
@@ -1445,7 +1445,7 @@ struct node_op_parms {
char *old_name;
int warn_if_udev_failed;
unsigned rely_on_udev;
-   char names[0];
+   char names[];
 };
 
 static void _store_str(char **pos, char **ptr, const char *str)
diff --git a/lib/activate/fs.c b/lib/activate/fs.c
index b2c99fc..96f7df6 100644
--- a/lib/activate/fs.c
+++ b/lib/activate/fs.c

commit lvm2 for openSUSE:Factory

2020-08-28 Thread root
Hello community,

here is the log from the commit of package lvm2 for openSUSE:Factory checked in 
at 2020-08-28 21:13:32

Comparing /work/SRC/openSUSE:Factory/lvm2 (Old)
 and  /work/SRC/openSUSE:Factory/.lvm2.new.3399 (New)


Package is "lvm2"

Fri Aug 28 21:13:32 2020 rev:138 rq:829062 version:2.03.10

Changes:

--- /work/SRC/openSUSE:Factory/lvm2/lvm2.changes2020-06-17 
14:45:44.132040822 +0200
+++ /work/SRC/openSUSE:Factory/.lvm2.new.3399/lvm2.changes  2020-08-28 
21:13:50.800105349 +0200
@@ -1,0 +2,161 @@
+Thu Aug 20 04:49:00 UTC 2020 - heming.z...@suse.com
+
+- lvm can't pass build with gcc option Wstringop-overflow (bsc#1175565)
+  + bug-1175565_lvm-cant-pass-build-with-gcc-option-Wstringop-overflow.patch
+
+- lvm2.spec
+  + add obsoletes version for passing build
+  + remove config item '--with-cluster=internal' for lvmlockd package
+
+---
+Mon Aug 10 07:11:00 UTC 2020 - heming.z...@suse.com
+
+- Update to LVM2.2.03.10
+
+  WHATS_NEW from 2.03.06 to 2.03.10:
+  Version 2.03.10 - 09th August 2020
+  ==
+Add writecache and integrity support to lvmdbusd.
+Generate unique cachevol name when default required from lvcreate.
+Converting RAID1 volume to one with same number of legs now succeeds with a
+warning.
+Fix conversion to raid from striped lagging type.
+Fix conversion to 'mirrored' mirror log with larger regionsize.
+Zero pool metadata on allocation (disable with allocation/zero_metadata=0).
+Failure in zeroing or wiping will fail command (bypass with -Zn, -Wn).
+Add lvcreate of new cache or writecache lv with single command.
+Fix running out of free buffers for async writing for larger writes.
+Add integrity with raid capability.
+Fix support for lvconvert --repair used by foreign apps (i.e. Docker).
+  
+  Version 2.03.09 - 26th March 2020
+  =
+Fix formating of vdopool (vdo_slab_size_mb was smaller by 2 bits).
+Fix showing of a dm kernel error when uncaching a volume with cachevol.
+  
+  Version 2.03.08 - 11th February 2020
+  
+Prevent problematic snapshots of writecache volumes.
+Add error handling for failing allocation in _reserve_area().
+Fix memleak in syncing of internal cache.
+Fix pvck dump_current_text memleak.
+Fix lvmlockd result code on error path for _query_lock_lv().
+Update pvck man page and help output.
+Reject invalid writecache high/low_watermark setting.
+Report writecache status.
+Accept more output lines from vdo_format.
+Prohibit reshaping of stacked raid LVs.
+Avoid running cache input arg validation when creating vdo pool.
+Prevent raid reshaping of stacked volumes.
+Added VDO lvmdbusd methods for enable/disable compression & dedupe.
+Added VDO lvmdbusd method for converting LV to VDO pool.
+  
+  Version 2.03.07 - 30th November 2019
+  
+Subcommand in vgck for repairing headers and metadata.
+Ensure minimum required region size on striped RaidLV creation.
+Fix resize of thin-pool with data and metadata of different segtype.
+Improve mirror type leg splitting.
+Improve error path handling in daemons on shutdown.
+Fix activation order when removing merged snapshot.
+Experimental VDO support for lvmdbusd.
+  
+  Version 2.03.06 - 23rd October 2019
+  ===
+Add _cpool suffix to cache-pool LV name when used by caching LV.
+No longer store extra UUID for cmeta and cdata cachevol layer.
+Enhance activation of cache devices with cachevols.
+Add _cvol in list of protected suffixes and start use it with DM UUID.
+Rename LV converted to cachevol to use _cvol suffix.
+Use normal LVs for wiping of cachevols.
+Reload cleanered cache DM only with cleaner policy.
+Fix cmd return when zeroing of cachevol fails.
+Extend lvs to show all VDO properties.
+Preserve VDO write policy with vdopool.
+Increase default vdo bio threads to 4.
+Continue report when cache_status fails.
+Add support for DM_DEVICE_GET_TARGET_VERSION into device_mapper.
+Fix cmirrord usage of header files from device_mapper subdir.
+Allow standalone activation of VDO pool just like for thin-pools.
+Activate thin-pool layered volume as 'read-only' device.
+Ignore crypto devices with UUID signature CRYPT-SUBDEV.
+Enhance validation for thin and cache pool conversion and swapping.
+Improve internal removal of cached devices.
+Synchronize with udev when dropping snapshot.
+Add missing device synchronization point before removing pvmove node.
+Correctly set read_ahead for LVs when pvmove is finished.
+

commit lvm2 for openSUSE:Factory

2020-06-17 Thread root
Hello community,

here is the log from the commit of package lvm2 for openSUSE:Factory checked in 
at 2020-06-17 14:45:35

Comparing /work/SRC/openSUSE:Factory/lvm2 (Old)
 and  /work/SRC/openSUSE:Factory/.lvm2.new.3606 (New)


Package is "lvm2"

Wed Jun 17 14:45:35 2020 rev:137 rq:814712 version:2.03.05

Changes:

--- /work/SRC/openSUSE:Factory/lvm2/lvm2.changes2020-06-03 
20:28:51.896506477 +0200
+++ /work/SRC/openSUSE:Factory/.lvm2.new.3606/lvm2.changes  2020-06-17 
14:45:44.132040822 +0200
@@ -1,0 +2,6 @@
+Fri Jun 12 01:28:08 UTC 2020 - heming.z...@suse.com
+
+- problem with LVM cache (data loss) (bsc#1172566)
+  + bug-1172566_cachevol-use-cachepool-code-for-metadata-size.patch
+
+---

New:

  bug-1172566_cachevol-use-cachepool-code-for-metadata-size.patch



Other differences:
--
++ lvm2.spec ++
--- /var/tmp/diff_new_pack.gMeOPd/_old  2020-06-17 14:45:45.452045317 +0200
+++ /var/tmp/diff_new_pack.gMeOPd/_new  2020-06-17 14:45:45.456045330 +0200
@@ -94,6 +94,7 @@
 Patch0037:  bug-1150021_06-fix-dev_unset_last_byte-after-write-error.patch
 Patch0038:  bug-1157736-add-suggestion-message-for-mirror-LVs.patch
 Patch0039:  
bug-1171907-lvremove-remove-attached-cachevol-with-removed-LV.patch
+Patch0040:  bug-1172566_cachevol-use-cachepool-code-for-metadata-size.patch
 # SUSE patches: 1000+ for LVM
 # Never upstream
 Patch1001:  cmirrord_remove_date_time_from_compilation.patch
@@ -187,6 +188,7 @@
 %patch0037 -p1
 %patch0038 -p1
 %patch0039 -p1
+%patch0040 -p1
 %patch1001 -p1
 %patch1002 -p1
 %patch1003 -p1


++ bug-1172566_cachevol-use-cachepool-code-for-metadata-size.patch ++
By heming.z...@suse.com
this patch is based on upstream commit
```
commit c08704cee7e34a96fdaa453faf900683283e8691
Author: David Teigland 
Date:   Mon Oct 21 12:13:33 2019 -0500

cachevol: use cachepool code for metadata size

Based on a more detailed calculation, but because of
extent size rounding, the final result is about the
same.
```

diff -Nupr a/lib/metadata/cache_manip.c b/lib/metadata/cache_manip.c
--- a/lib/metadata/cache_manip.c2020-06-12 09:04:17.474637002 +0800
+++ b/lib/metadata/cache_manip.c2020-06-12 09:04:28.914578582 +0800
@@ -184,12 +184,16 @@ void cache_check_for_warns(const struct
  */
 static uint64_t _cache_min_metadata_size(uint64_t data_size, uint32_t 
chunk_size)
 {
-   uint64_t min_meta_size;
-
-   min_meta_size = data_size / chunk_size; /* nr_chunks */
-   min_meta_size *= (DM_BYTES_PER_BLOCK + DM_MAX_HINT_WIDTH + 
DM_HINT_OVERHEAD_PER_BLOCK);
-   min_meta_size = (min_meta_size + (SECTOR_SIZE - 1)) >> SECTOR_SHIFT;
/* in sectors */
-   min_meta_size += DM_TRANSACTION_OVERHEAD * (1024 >> SECTOR_SHIFT);
+   /* Used space for mapping and hints for each cached chunk in bytes
+* (matching thin-tools cache_metadata_size.cc) */
+   const uint64_t chunk_overhead = (DM_BYTES_PER_BLOCK + DM_MAX_HINT_WIDTH 
+ DM_HINT_OVERHEAD_PER_BLOCK);
+   const uint64_t transaction_overhead = DM_TRANSACTION_OVERHEAD * 1024; 
/* 4MiB */
+
+   /* Number of cache chunks we have in caching volume */
+   uint64_t nr_chunks = data_size / chunk_size;
+   /* Minimal size of metadata volume converted back to sectors */
+   uint64_t min_meta_size = (transaction_overhead + nr_chunks * 
chunk_overhead +
+   (SECTOR_SIZE - 1)) >> SECTOR_SHIFT;
 
return min_meta_size;
 }
@@ -1242,14 +1246,7 @@ int cache_vol_set_params(struct cmd_cont
}
 
if (!meta_size) {
-   if (pool_lv->size < (128 * ONE_MB_S))
-   meta_size = 16 * ONE_MB_S;
-
-   else if (pool_lv->size < ONE_GB_S)
-   meta_size = 32 * ONE_MB_S;
-
-   else if (pool_lv->size < (128 * ONE_GB_S))
-   meta_size = 64 * ONE_MB_S;
+   meta_size = _cache_min_metadata_size(pool_lv->size, chunk_size);
 
if (meta_size > (pool_lv->size / 2))
meta_size = pool_lv->size / 2;



commit lvm2 for openSUSE:Factory

2020-06-03 Thread root
Hello community,

here is the log from the commit of package lvm2 for openSUSE:Factory checked in 
at 2020-06-03 20:28:42

Comparing /work/SRC/openSUSE:Factory/lvm2 (Old)
 and  /work/SRC/openSUSE:Factory/.lvm2.new.3606 (New)


Package is "lvm2"

Wed Jun  3 20:28:42 2020 rev:136 rq:809718 version:2.03.05

Changes:

--- /work/SRC/openSUSE:Factory/lvm2/lvm2.changes2020-05-14 
23:22:35.452692446 +0200
+++ /work/SRC/openSUSE:Factory/.lvm2.new.3606/lvm2.changes  2020-06-03 
20:28:51.896506477 +0200
@@ -1,0 +2,6 @@
+Wed May 27 13:00:58 UTC 2020 - heming.z...@suse.com
+
+- removing LVM cache with cache volume does not remove the cache volume 
(bsc#1171907)
+  + bug-1171907-lvremove-remove-attached-cachevol-with-removed-LV.patch
+
+---

New:

  bug-1171907-lvremove-remove-attached-cachevol-with-removed-LV.patch



Other differences:
--
++ lvm2.spec ++
--- /var/tmp/diff_new_pack.6g2Akf/_old  2020-06-03 20:28:53.292510721 +0200
+++ /var/tmp/diff_new_pack.6g2Akf/_new  2020-06-03 20:28:53.292510721 +0200
@@ -93,6 +93,7 @@
 Patch0036:  
bug-1150021_05-bcache-bcache_invalidate_fd-only-remove-prefixes-on.patch
 Patch0037:  bug-1150021_06-fix-dev_unset_last_byte-after-write-error.patch
 Patch0038:  bug-1157736-add-suggestion-message-for-mirror-LVs.patch
+Patch0039:  
bug-1171907-lvremove-remove-attached-cachevol-with-removed-LV.patch
 # SUSE patches: 1000+ for LVM
 # Never upstream
 Patch1001:  cmirrord_remove_date_time_from_compilation.patch
@@ -185,6 +186,7 @@
 %patch0036 -p1
 %patch0037 -p1
 %patch0038 -p1
+%patch0039 -p1
 %patch1001 -p1
 %patch1002 -p1
 %patch1003 -p1


++ bug-1171907-lvremove-remove-attached-cachevol-with-removed-LV.patch 
++
change this patch
from: if (!lv_detach_cache_vol(lv, 0)) {
to  : if (!lv_detach_cache_vol(lv)) {
by heming.z...@suse.com

---
>From 56aadd7fe2a1d24043ea9d06543c29317ac1cc58 Mon Sep 17 00:00:00 2001
From: David Teigland 
Date: Tue, 24 Sep 2019 13:46:40 -0500
Subject: [PATCH] lvremove: remove attached cachevol with removed LV

When an LV is removed that has an attached cachevol,
also remove the cachevol LV.
---
 lib/metadata/lv_manip.c | 6 ++
 1 file changed, 6 insertions(+)

diff --git a/lib/metadata/lv_manip.c b/lib/metadata/lv_manip.c
index 79e3d15..f404555 100644
--- a/lib/metadata/lv_manip.c
+++ b/lib/metadata/lv_manip.c
@@ -6283,10 +6283,16 @@ int lv_remove_single(struct cmd_context *cmd, struct 
logical_volume *lv,
return_0;
 
if (lv_is_cache(lv) && lv_is_cache_vol(first_seg(lv)->pool_lv)) {
+   struct logical_volume *cachevol_lv = first_seg(lv)->pool_lv;
+
if (!lv_detach_cache_vol(lv)) {
log_error("Failed to detach cache from %s", 
display_lvname(lv));
return 0;
}
+   if (!lv_remove_single(cmd, cachevol_lv, force, 
suppress_remove_message)) {
+   log_error("Failed to remove cachevol %s.", 
display_lvname(cachevol_lv));
+   return 0;
+   }
}
 
/* FIXME Ensure not referred to by another existing LVs */
-- 
1.8.3.1




commit lvm2 for openSUSE:Factory

2020-05-14 Thread root
Hello community,

here is the log from the commit of package lvm2 for openSUSE:Factory checked in 
at 2020-05-14 23:22:32

Comparing /work/SRC/openSUSE:Factory/lvm2 (Old)
 and  /work/SRC/openSUSE:Factory/.lvm2.new.2738 (New)


Package is "lvm2"

Thu May 14 23:22:32 2020 rev:135 rq:804894 version:2.03.05

Changes:

--- /work/SRC/openSUSE:Factory/lvm2/lvm2.changes2020-03-17 
13:06:48.853645499 +0100
+++ /work/SRC/openSUSE:Factory/.lvm2.new.2738/lvm2.changes  2020-05-14 
23:22:35.452692446 +0200
@@ -1,0 +2,8 @@
+Wed May 13 03:45:38 UTC 2020 - heming.z...@suse.com
+
+- Add missing patch, which mistakenly removed in lvm2 update
+  + bug-998893_make_pvscan_service_after_multipathd.patch
+- Change lvm2.spec for fixing build error
+  + lvm2.spec
+
+---

New:

  bug-998893_make_pvscan_service_after_multipathd.patch



Other differences:
--
++ lvm2.spec ++
--- /var/tmp/diff_new_pack.8T97ex/_old  2020-05-14 23:22:36.660695082 +0200
+++ /var/tmp/diff_new_pack.8T97ex/_new  2020-05-14 23:22:36.664695091 +0200
@@ -99,6 +99,7 @@
 Patch1002:  fate-309425_display-dm-name-for-lv-name.patch
 Patch1003:  fate-31841_fsadm-add-support-for-btrfs.patch
 Patch1004:  bug-935623_dmeventd-fix-dso-name-wrong-compare.patch
+Patch1005:  bug-998893_make_pvscan_service_after_multipathd.patch
 # SUSE patches 2000+ for device mapper, udev rules
 Patch2001:  
bug-1012973_simplify-special-case-for-md-in-69-dm-lvm-metadata.patch
 # SUSE patches 3000+ for test code
@@ -188,6 +189,7 @@
 %patch1002 -p1
 %patch1003 -p1
 %patch1004 -p1
+%patch1005 -p1
 %patch2001 -p1
 
 %if !%{with lockd}
@@ -305,7 +307,7 @@
 rm %{buildroot}%{_unitdir}/dm-event.socket
 rm %{buildroot}%{_unitdir}/lvm2-monitor.service
 rm %{buildroot}%{_mandir}/man8/lvm2-activation-generator.8
-rm 
%{buildroot}%{_libexecdir}/systemd/system-generators/lvm2-activation-generator
+rm %{buildroot}%{_systemdgeneratordir}/lvm2-activation-generator
 rm %{buildroot}%{_unitdir}/lvm2-lvmpolld.service
 rm %{buildroot}%{_unitdir}/lvm2-lvmpolld.socket
 rm %{buildroot}%{_unitdir}/lvm2-pvscan@.service
@@ -730,7 +732,7 @@
 %{_unitdir}/lvm2-pvscan@.service
 %{_unitdir}/lvm2-lvmpolld.socket
 %{_unitdir}/lvm2-lvmpolld.service
-%{_libexecdir}/systemd/system-generators/lvm2-activation-generator
+%{_systemdgeneratordir}/lvm2-activation-generator
 %dir %{_libdir}/device-mapper
 %{_libdir}/device-mapper/libdevmapper-event-lvm2*.so
 %{_libdir}/libdevmapper-event-lvm2*.so


++ bug-998893_make_pvscan_service_after_multipathd.patch ++
>From 0da043466ace27eb483114c87ce81feaf00ed682 Mon Sep 17 00:00:00 2001
From: Eric Ren 
Date: Thu, 6 Apr 2017 11:22:30 +0800
Subject: [PATCH] systemd service: make pvscan service after multipathd

bsc#998893
Signed-off-by: Eric Ren 

2020-05-13:
lvm2-lvmetad had been removed, so this patch was modified too.
Signed-off-by: Heming zhao 
---

diff -Nupr a/scripts/lvm2-pvscan.service.in b/scripts/lvm2-pvscan.service.in
--- a/scripts/lvm2-pvscan.service.in2020-05-13 11:28:58.290210992 +0800
+++ b/scripts/lvm2-pvscan.service.in2020-05-13 11:29:42.997788967 +0800
@@ -4,6 +4,7 @@ Documentation=man:pvscan(8)
 DefaultDependencies=no
 StartLimitIntervalSec=0
 BindsTo=dev-block-%i.device
+After=multipathd.service
 Before=shutdown.target
 Conflicts=shutdown.target



commit lvm2 for openSUSE:Factory

2020-03-17 Thread root
Hello community,

here is the log from the commit of package lvm2 for openSUSE:Factory checked in 
at 2020-03-17 13:06:40

Comparing /work/SRC/openSUSE:Factory/lvm2 (Old)
 and  /work/SRC/openSUSE:Factory/.lvm2.new.3160 (New)


Package is "lvm2"

Tue Mar 17 13:06:40 2020 rev:134 rq:784254 version:2.03.05

Changes:

--- /work/SRC/openSUSE:Factory/lvm2/lvm2.changes2020-03-04 
09:38:11.917848420 +0100
+++ /work/SRC/openSUSE:Factory/.lvm2.new.3160/lvm2.changes  2020-03-17 
13:06:48.853645499 +0100
@@ -1,0 +2,7 @@
+Thu Mar 12 09:53:00 UTC 2020 - heming.z...@suse.com
+
+- fix patch name typo
+  - bug-1158628-04-pvmove-correcting-read_ahead-setting.patch
+  + bug-1158628_04-pvmove-correcting-read_ahead-setting.patch
+
+---

Old:

  bug-1158628-04-pvmove-correcting-read_ahead-setting.patch

New:

  bug-1158628_04-pvmove-correcting-read_ahead-setting.patch



Other differences:
--
++ lvm2.spec ++
--- /var/tmp/diff_new_pack.GCl8F9/_old  2020-03-17 13:06:52.741648484 +0100
+++ /var/tmp/diff_new_pack.GCl8F9/_new  2020-03-17 13:06:52.745648487 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package lvm2
 #
-# Copyright (c) 2020 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2020 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -66,7 +66,7 @@
 Patch0009:  bug-1158628_01-tests-replaces-grep-q-usage.patch
 Patch0010:  bug-1158628_02-tests-fix-ra-checking.patch
 Patch0011:  bug-1158628_03-tests-simplify-some-var-settings.patch
-Patch0012:  bug-1158628-04-pvmove-correcting-read_ahead-setting.patch
+Patch0012:  bug-1158628_04-pvmove-correcting-read_ahead-setting.patch
 Patch0013:  bug-1158628_05-activation-add-synchronization-point.patch
 Patch0014:  bug-1158628_06-pvmove-add-missing-synchronization.patch
 Patch0015:  
bug-1158628_07-activation-extend-handling-of-pending_delete.patch


++ bug-1158628_04-pvmove-correcting-read_ahead-setting.patch ++
>From 0451225c1997273ffaa36c3eb595eae7737b7dda Mon Sep 17 00:00:00 2001
From: Zdenek Kabelac 
Date: Tue, 20 Aug 2019 12:30:25 +0200
Subject: [PATCH] pvmove: correcting read_ahead setting

When pvmove is finished, we do a tricky operation since we try to
resume multiple different device that were all joined into 1 big tree.

Currently we use the infromation from existing live DM table,
where we can get list of all holders of pvmove device.
We look for these nodes (by uuid) in new metadata, and we do now a full
regular device add into dm tree structure.  All devices should be
already PRELOAD with correct table before entering suspend state,
however for correctly working readahead we need to put correct info
also into RESUME tree.  Since table are preloaded, the same table
is skip and resume, but correct read ahead is now set.
---
 lib/activate/dev_manager.c | 47 +++---
 1 files changed, 34 insertions(+), 13 deletions(-)

diff --git a/lib/activate/dev_manager.c b/lib/activate/dev_manager.c
index 981f4674ac..b218225bb2 100644
--- a/lib/activate/dev_manager.c
+++ b/lib/activate/dev_manager.c
@@ -2034,10 +2034,20 @@ static uint16_t _get_udev_flags(struct dev_manager *dm, 
const struct logical_vol
 
 static int _add_lv_to_dtree(struct dev_manager *dm, struct dm_tree *dtree,
const struct logical_volume *lv, int origin_only);
-
+static int _add_new_lv_to_dtree(struct dev_manager *dm, struct dm_tree *dtree,
+   const struct logical_volume *lv,
+   struct lv_activate_opts *laopts,
+   const char *layer);
+/*
+ * Check for device holders (ATM used only for removed pvmove targets)
+ * and add them into dtree structures.
+ * When 'laopts != NULL' add them as new nodes - which also corrects 
READ_AHEAD.
+ * Note: correct table are already explicitelly PRELOADED.
+ */
 static int _check_holder(struct dev_manager *dm, struct dm_tree *dtree,
-const struct logical_volume *lv, uint32_t major,
-const char *d_name)
+const struct logical_volume *lv,
+struct lv_activate_opts *laopts,
+uint32_t major, const char *d_name)
 {
const char *default_uuid_prefix = dm_uuid_prefix();
const size_t default_uuid_prefix_len = strlen(default_uuid_prefix);
@@ -2089,8 +2099,11 @@ static int _check_holder(struct dev_manager *dm, struct 
dm_tree *dtree,
log_debug_activation("Found holder %s of %s.",
   

commit lvm2 for openSUSE:Factory

2020-03-04 Thread root
Hello community,

here is the log from the commit of package lvm2 for openSUSE:Factory checked in 
at 2020-03-04 09:38:06

Comparing /work/SRC/openSUSE:Factory/lvm2 (Old)
 and  /work/SRC/openSUSE:Factory/.lvm2.new.26092 (New)


Package is "lvm2"

Wed Mar  4 09:38:06 2020 rev:133 rq:780796 version:2.03.05

Changes:

--- /work/SRC/openSUSE:Factory/lvm2/lvm2.changes2020-01-18 
12:13:27.298988444 +0100
+++ /work/SRC/openSUSE:Factory/.lvm2.new.26092/lvm2.changes 2020-03-04 
09:38:11.917848420 +0100
@@ -1,0 +2,6 @@
+Mon Feb 27 09:36:00 UTC 2020 - heming.z...@suse.com
+
+- vgreduce --removemissing with cache devices will remove lvs (bsc#1157736)
+  + bug-1157736-add-suggestion-message-for-mirror-LVs.patch
+
+---

New:

  bug-1157736-add-suggestion-message-for-mirror-LVs.patch



Other differences:
--
++ lvm2.spec ++
--- /var/tmp/diff_new_pack.cJaBmi/_old  2020-03-04 09:38:13.037849092 +0100
+++ /var/tmp/diff_new_pack.cJaBmi/_new  2020-03-04 09:38:13.041849094 +0100
@@ -92,6 +92,7 @@
 Patch0035:  bug-1150021_04-bcache-add-unit-test.patch
 Patch0036:  
bug-1150021_05-bcache-bcache_invalidate_fd-only-remove-prefixes-on.patch
 Patch0037:  bug-1150021_06-fix-dev_unset_last_byte-after-write-error.patch
+Patch0038:  bug-1157736-add-suggestion-message-for-mirror-LVs.patch
 # SUSE patches: 1000+ for LVM
 # Never upstream
 Patch1001:  cmirrord_remove_date_time_from_compilation.patch
@@ -182,6 +183,7 @@
 %patch0035 -p1
 %patch0036 -p1
 %patch0037 -p1
+%patch0038 -p1
 %patch1001 -p1
 %patch1002 -p1
 %patch1003 -p1


++ bug-1157736-add-suggestion-message-for-mirror-LVs.patch ++
>From d53bfae273677975bd805bfaa3d7e7cd995aaa52 Mon Sep 17 00:00:00 2001
From: Heming Zhao 
Date: Wed, 15 Jan 2020 02:44:30 +
Subject: [PATCH] add suggestion message for mirror LVs

Currently the error messages are not clear. This very easy to
guide user to execute "--removemissing --force", it is dangerous
and will make the LVs to be destroied.

Signed-off-by: Zhao Heming 
---
 tools/vgreduce.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/tools/vgreduce.c b/tools/vgreduce.c
index b001ccb..4a4202e 100644
--- a/tools/vgreduce.c
+++ b/tools/vgreduce.c
@@ -67,6 +67,8 @@ static int _consolidate_vg(struct cmd_context *cmd, struct 
volume_group *vg)
cmd->handles_missing_pvs = 1;
log_error("There are still partial LVs in VG %s.", vg->name);
log_error("To remove them unconditionally use: vgreduce 
--removemissing --force.");
+   log_error("To remove them unconditionally from mirror LVs use: 
vgreduce"
+ " --removemissing --mirrorsonly --force.");
log_warn("WARNING: Proceeding to remove empty missing PVs.");
}
 
-- 
1.8.3.1




commit lvm2 for openSUSE:Factory

2020-01-18 Thread root
Hello community,

here is the log from the commit of package lvm2 for openSUSE:Factory checked in 
at 2020-01-18 12:13:21

Comparing /work/SRC/openSUSE:Factory/lvm2 (Old)
 and  /work/SRC/openSUSE:Factory/.lvm2.new.26092 (New)


Package is "lvm2"

Sat Jan 18 12:13:21 2020 rev:132 rq:762036 version:2.03.05

Changes:

--- /work/SRC/openSUSE:Factory/lvm2/lvm2.changes2019-12-27 
13:43:53.628254934 +0100
+++ /work/SRC/openSUSE:Factory/.lvm2.new.26092/lvm2.changes 2020-01-18 
12:13:27.298988444 +0100
@@ -1,0 +2,6 @@
+Thu Jan  9 10:00:30 UTC 2020 - g...@suse.com
+
+- Update lvm.conf file (bsc#1159238)
+  - enable issue_discards by default
+
+---



Other differences:
--
++ lvm2.spec ++
--- /var/tmp/diff_new_pack.6QqR5S/_old  2020-01-18 12:13:30.354990083 +0100
+++ /var/tmp/diff_new_pack.6QqR5S/_new  2020-01-18 12:13:30.358990085 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package lvm2
 #
-# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2020 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed


++ lvm.conf ++
--- /var/tmp/diff_new_pack.6QqR5S/_old  2020-01-18 12:13:30.530990177 +0100
+++ /var/tmp/diff_new_pack.6QqR5S/_new  2020-01-18 12:13:30.530990177 +0100
@@ -278,7 +278,7 @@
# benefit from discards, but SSDs and thinly provisioned LUNs
# generally do. If enabled, discards will only be issued if both the
# storage and kernel provide support.
-   issue_discards = 0
+   issue_discards = 1
 
# Configuration option devices/allow_changes_with_duplicate_pvs.
# Allow VG modification while a PV appears on multiple devices.




commit lvm2 for openSUSE:Factory

2019-12-27 Thread root
Hello community,

here is the log from the commit of package lvm2 for openSUSE:Factory checked in 
at 2019-12-27 13:43:46

Comparing /work/SRC/openSUSE:Factory/lvm2 (Old)
 and  /work/SRC/openSUSE:Factory/.lvm2.new.6675 (New)


Package is "lvm2"

Fri Dec 27 13:43:46 2019 rev:131 rq:759147 version:2.03.05

Changes:

--- /work/SRC/openSUSE:Factory/lvm2/lvm2.changes2019-12-23 
22:36:58.525808118 +0100
+++ /work/SRC/openSUSE:Factory/.lvm2.new.6675/lvm2.changes  2019-12-27 
13:43:53.628254934 +0100
@@ -1,0 +2,13 @@
+Mon Dec 23 07:22:00 UTC 2019 - heming.z...@suse.com
+
+- LVM Metadata Error: Error writing device at 4096 length 512 (bsc#1150021)
+ + bug-1150021_01-scanning-open-devs-rw-when-rescanning-for-write.patch
+ + bug-1150021_02-bcache-add-bcache_abort.patch
+ + bug-1150021_03-label-Use-bcache_abort_fd-to-ensure-blocks-are-no-lo.patch
+ + bug-1150021_04-bcache-add-unit-test.patch
+ + bug-1150021_05-bcache-bcache_invalidate_fd-only-remove-prefixes-on.patch
+ + bug-1150021_06-fix-dev_unset_last_byte-after-write-error.patch
+- Update patch, according to bug-1150021_01-scanning-xxx.patch
+ + bug-1158861_06-fix-segfault-for-invalid-characters-in-vg-name.patch
+
+---

New:

  bug-1150021_01-scanning-open-devs-rw-when-rescanning-for-write.patch
  bug-1150021_02-bcache-add-bcache_abort.patch
  bug-1150021_03-label-Use-bcache_abort_fd-to-ensure-blocks-are-no-lo.patch
  bug-1150021_04-bcache-add-unit-test.patch
  bug-1150021_05-bcache-bcache_invalidate_fd-only-remove-prefixes-on.patch
  bug-1150021_06-fix-dev_unset_last_byte-after-write-error.patch



Other differences:
--
++ lvm2.spec ++
--- /var/tmp/diff_new_pack.nObjPU/_old  2019-12-27 13:43:54.768255744 +0100
+++ /var/tmp/diff_new_pack.nObjPU/_new  2019-12-27 13:43:54.772255747 +0100
@@ -56,36 +56,42 @@
 Source99:   baselibs.conf
 # Upstream patches
 Patch0001:  bug-1122666_devices-drop-open-error-message.patch
-Patch0002:  bug-1149408_Fix-rounding-writes-up-to-sector-size.patch
-Patch0003:  
bug-1149408_vgcreate-vgextend-restrict-PVs-with-mixed-block-size.patch
-Patch0004:  
bug-1152378-md-component-detection-for-differing-PV-and-device-s.patch
-Patch0005:  
bug-1152378-pvscan-fix-PV-online-when-device-has-a-different-siz.patch
-Patch0006:  jcs-SLE5498_pvscan-allow-use-of-noudevsync-option.patch
-Patch0007:  
bug-1154655_udev-remove-unsupported-OPTIONS-event_timeout-rule.patch
-Patch0008:  bug-1158628_01-tests-replaces-grep-q-usage.patch
-Patch0009:  bug-1158628_02-tests-fix-ra-checking.patch
-Patch0010:  bug-1158628_03-tests-simplify-some-var-settings.patch
-Patch0011:  bug-1158628-04-pvmove-correcting-read_ahead-setting.patch
-Patch0012:  bug-1158628_05-activation-add-synchronization-point.patch
-Patch0013:  bug-1158628_06-pvmove-add-missing-synchronization.patch
-Patch0014:  
bug-1158628_07-activation-extend-handling-of-pending_delete.patch
-Patch0015:  bug-1158628_08-lv_manip-add-synchronizations.patch
-Patch0016:  
bug-1158628_09-lvconvert-improve-validation-thin-and-cache-pool-con.patch
-Patch0017:  bug-1158628_10-thin-activate-layer-pool-aas-read-only-LV.patch
-Patch0018:  bug-1158628_11-tests-mdadm-stop-in-test-cleanup.patch
-Patch0019:  
bug-1158628_12-test-increase-size-of-raid10-LV-allowing-tests-to-su.patch
-Patch0020:  
bug-1158628_13-lvconvert-fix-return-value-when-zeroing-fails.patch
-Patch0021:  bug-1158628_14-tests-add-extra-settle.patch
-Patch0022:  
bug-1158628_15-test-Fix-handling-leftovers-from-previous-tests.patch
-Patch0023:  bug-1158861_01-config-remove-filter-typo.patch
-Patch0024:  
bug-1158861_02-config-Fix-default-option-which-makes-no-sense.patch
-Patch0025:  
bug-1158861_03-vgchange-don-t-fail-monitor-command-if-vg-is-exporte.patch
-Patch0026:  bug-1158861_04-fix-duplicate-pv-size-check.patch
-Patch0027:  bug-1158861_05-hints-fix-copy-of-filter.patch
-Patch0028:  
bug-1158861_06-fix-segfault-for-invalid-characters-in-vg-name.patch
-Patch0029:  
bug-1158861_07-vgck-let-updatemetadata-repair-mismatched-metadata.patch
-Patch0030:  bug-1158861_08-hints-fix-mem-leaking-buffers.patch
-Patch0031:  
bug-1158861_09-pvcreate-pvremove-fix-reacquiring-global-lock-after.patch
+Patch0002:  
bug-1150021_01-scanning-open-devs-rw-when-rescanning-for-write.patch
+Patch0003:  bug-1149408_Fix-rounding-writes-up-to-sector-size.patch
+Patch0004:  
bug-1149408_vgcreate-vgextend-restrict-PVs-with-mixed-block-size.patch
+Patch0005:  
bug-1152378-md-component-detection-for-differing-PV-and-device-s.patch
+Patch0006:  

commit lvm2 for openSUSE:Factory

2019-12-23 Thread root
Hello community,

here is the log from the commit of package lvm2 for openSUSE:Factory checked in 
at 2019-12-23 22:35:15

Comparing /work/SRC/openSUSE:Factory/lvm2 (Old)
 and  /work/SRC/openSUSE:Factory/.lvm2.new.6675 (New)


Package is "lvm2"

Mon Dec 23 22:35:15 2019 rev:130 rq:755510 version:2.03.05

Changes:

--- /work/SRC/openSUSE:Factory/lvm2/lvm2.changes2019-10-28 
16:44:10.988534248 +0100
+++ /work/SRC/openSUSE:Factory/.lvm2.new.6675/lvm2.changes  2019-12-23 
22:36:58.525808118 +0100
@@ -1,0 +2,35 @@
+Tue Dec 10 08:26:00 UTC 2019 - heming.z...@suse.com
+
+- backport patches for lvm2 to avoid software abnormal work (bsc#1158861)
+  + bug-1158861_01-config-remove-filter-typo.patch
+  + bug-1158861_02-config-Fix-default-option-which-makes-no-sense.patch
+  + bug-1158861_03-vgchange-don-t-fail-monitor-command-if-vg-is-exporte.patch
+  + bug-1158861_04-fix-duplicate-pv-size-check.patch
+  + bug-1158861_05-hints-fix-copy-of-filter.patch
+  + bug-1158861_06-fix-segfault-for-invalid-characters-in-vg-name.patch
+  + bug-1158861_07-vgck-let-updatemetadata-repair-mismatched-metadata.patch
+  + bug-1158861_08-hints-fix-mem-leaking-buffers.patch
+  + bug-1158861_09-pvcreate-pvremove-fix-reacquiring-global-lock-after.patch
+
+---
+Tue Dec 10 08:11:00 UTC 2019 - heming.z...@suse.com
+
+- backport upstream patches for passing lvm2 testsuite (bsc#1158628)
+  + bug-1158628_01-tests-replaces-grep-q-usage.patch
+  + bug-1158628_02-tests-fix-ra-checking.patch
+  + bug-1158628_03-tests-simplify-some-var-settings.patch
+  + bug-1158628-04-pvmove-correcting-read_ahead-setting.patch
+  + bug-1158628_05-activation-add-synchronization-point.patch
+  + bug-1158628_06-pvmove-add-missing-synchronization.patch
+  + bug-1158628_07-activation-extend-handling-of-pending_delete.patch
+  + bug-1158628_08-lv_manip-add-synchronizations.patch
+  + bug-1158628_09-lvconvert-improve-validation-thin-and-cache-pool-con.patch
+  + bug-1158628_10-thin-activate-layer-pool-aas-read-only-LV.patch
+  + bug-1158628_11-tests-mdadm-stop-in-test-cleanup.patch
+  + bug-1158628_12-test-increase-size-of-raid10-LV-allowing-tests-to-su.patch
+  + bug-1158628_13-lvconvert-fix-return-value-when-zeroing-fails.patch
+  + bug-1158628_14-tests-add-extra-settle.patch
+  + bug-1158628_15-test-Fix-handling-leftovers-from-previous-tests.patch
+  - bug-1043040_test-fix-read-ahead-issues-in-test-scripts.patch
+
+---

Old:

  bug-1043040_test-fix-read-ahead-issues-in-test-scripts.patch

New:

  bug-1158628-04-pvmove-correcting-read_ahead-setting.patch
  bug-1158628_01-tests-replaces-grep-q-usage.patch
  bug-1158628_02-tests-fix-ra-checking.patch
  bug-1158628_03-tests-simplify-some-var-settings.patch
  bug-1158628_05-activation-add-synchronization-point.patch
  bug-1158628_06-pvmove-add-missing-synchronization.patch
  bug-1158628_07-activation-extend-handling-of-pending_delete.patch
  bug-1158628_08-lv_manip-add-synchronizations.patch
  bug-1158628_09-lvconvert-improve-validation-thin-and-cache-pool-con.patch
  bug-1158628_10-thin-activate-layer-pool-aas-read-only-LV.patch
  bug-1158628_11-tests-mdadm-stop-in-test-cleanup.patch
  bug-1158628_12-test-increase-size-of-raid10-LV-allowing-tests-to-su.patch
  bug-1158628_13-lvconvert-fix-return-value-when-zeroing-fails.patch
  bug-1158628_14-tests-add-extra-settle.patch
  bug-1158628_15-test-Fix-handling-leftovers-from-previous-tests.patch
  bug-1158861_01-config-remove-filter-typo.patch
  bug-1158861_02-config-Fix-default-option-which-makes-no-sense.patch
  bug-1158861_03-vgchange-don-t-fail-monitor-command-if-vg-is-exporte.patch
  bug-1158861_04-fix-duplicate-pv-size-check.patch
  bug-1158861_05-hints-fix-copy-of-filter.patch
  bug-1158861_06-fix-segfault-for-invalid-characters-in-vg-name.patch
  bug-1158861_07-vgck-let-updatemetadata-repair-mismatched-metadata.patch
  bug-1158861_08-hints-fix-mem-leaking-buffers.patch
  bug-1158861_09-pvcreate-pvremove-fix-reacquiring-global-lock-after.patch



Other differences:
--
++ lvm2.spec ++
--- /var/tmp/diff_new_pack.abjSLQ/_old  2019-12-23 22:36:59.253808434 +0100
+++ /var/tmp/diff_new_pack.abjSLQ/_new  2019-12-23 22:36:59.253808434 +0100
@@ -62,17 +62,40 @@
 Patch0005:  
bug-1152378-pvscan-fix-PV-online-when-device-has-a-different-siz.patch
 Patch0006:  jcs-SLE5498_pvscan-allow-use-of-noudevsync-option.patch
 Patch0007:  
bug-1154655_udev-remove-unsupported-OPTIONS-event_timeout-rule.patch
+Patch0008:  bug-1158628_01-tests-replaces-grep-q-usage.patch
+Patch0009:  bug-1158628_02-tests-fix-ra-checking.patch
+Patch0010:  

commit lvm2 for openSUSE:Factory

2019-10-28 Thread root
Hello community,

here is the log from the commit of package lvm2 for openSUSE:Factory checked in 
at 2019-10-28 16:44:05

Comparing /work/SRC/openSUSE:Factory/lvm2 (Old)
 and  /work/SRC/openSUSE:Factory/.lvm2.new.2990 (New)


Package is "lvm2"

Mon Oct 28 16:44:05 2019 rev:129 rq:742107 version:2.03.05

Changes:

--- /work/SRC/openSUSE:Factory/lvm2/lvm2.changes2019-10-22 
15:43:28.993582519 +0200
+++ /work/SRC/openSUSE:Factory/.lvm2.new.2990/lvm2.changes  2019-10-28 
16:44:10.988534248 +0100
@@ -1,0 +2,6 @@
+Wed Oct 23 08:42:00 UTC 2019 - heming.z...@suse.com
+
+- Fix udev rules issue (bsc#1154655)
+  + bug-1154655_udev-remove-unsupported-OPTIONS-event_timeout-rule.patch
+
+---

New:

  bug-1154655_udev-remove-unsupported-OPTIONS-event_timeout-rule.patch



Other differences:
--
++ lvm2.spec ++
--- /var/tmp/diff_new_pack.Ke6y3Z/_old  2019-10-28 16:44:12.040535586 +0100
+++ /var/tmp/diff_new_pack.Ke6y3Z/_new  2019-10-28 16:44:12.044535591 +0100
@@ -61,6 +61,7 @@
 Patch0004:  
bug-1152378-md-component-detection-for-differing-PV-and-device-s.patch
 Patch0005:  
bug-1152378-pvscan-fix-PV-online-when-device-has-a-different-siz.patch
 Patch0006:  jcs-SLE5498_pvscan-allow-use-of-noudevsync-option.patch
+Patch0007:  
bug-1154655_udev-remove-unsupported-OPTIONS-event_timeout-rule.patch
 # SUSE patches: 1000+ for LVM
 # Never upstream
 Patch1001:  cmirrord_remove_date_time_from_compilation.patch
@@ -121,6 +122,7 @@
 %patch0004 -p1
 %patch0005 -p1
 %patch0006 -p1
+%patch0007 -p1
 %patch1001 -p1
 %patch1002 -p1
 %patch1003 -p1


++ bug-1154655_udev-remove-unsupported-OPTIONS-event_timeout-rule.patch 
++
>From 125f27ac37bc9b93cc96f64052b9681b3d479ee1 Mon Sep 17 00:00:00 2001
From: Peter Rajnoha 
Date: Tue, 13 Aug 2019 15:18:30 +0200
Subject: [PATCH] udev: remove unsupported OPTIONS+="event_timeout" rule

The OPTIONS+="event_timeout" is Unsupported since systemd/udev version 216,
that is ~5 years ago.

Since systemd/udev version 243, there's a new message printed if unsupported
OPTIONS value is used:

  Invalid value for OPTIONS key, ignoring: 'event_timeout=180'

Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1740666
---
 udev/11-dm-lvm.rules.in | 2 --
 1 file changed, 2 deletions(-)

diff --git a/udev/11-dm-lvm.rules.in b/udev/11-dm-lvm.rules.in
index 91cb991df9..7c589943b7 100644
--- a/udev/11-dm-lvm.rules.in
+++ b/udev/11-dm-lvm.rules.in
@@ -37,8 +37,6 @@ ENV{DM_SUBSYSTEM_UDEV_FLAG0}!="1", ENV{DM_NOSCAN}=="1", 
ENV{DM_UDEV_DISABLE_OTHE
 
 ENV{DM_UDEV_DISABLE_SUBSYSTEM_RULES_FLAG}=="1", GOTO="lvm_end"
 
-OPTIONS+="event_timeout=180"
-
 # Do not create symlinks for inappropriate subdevices.
 ENV{DM_LV_NAME}=="pvmove?*|?*_vorigin", GOTO="lvm_disable"
 ENV{DM_LV_LAYER}=="?*", GOTO="lvm_disable"
-- 
2.21.0




commit lvm2 for openSUSE:Factory

2019-10-22 Thread root
Hello community,

here is the log from the commit of package lvm2 for openSUSE:Factory checked in 
at 2019-10-22 15:43:26

Comparing /work/SRC/openSUSE:Factory/lvm2 (Old)
 and  /work/SRC/openSUSE:Factory/.lvm2.new.2352 (New)


Package is "lvm2"

Tue Oct 22 15:43:26 2019 rev:128 rq:741460 version:2.03.05

Changes:

--- /work/SRC/openSUSE:Factory/lvm2/lvm2.changes2019-10-05 
16:15:01.518262146 +0200
+++ /work/SRC/openSUSE:Factory/.lvm2.new.2352/lvm2.changes  2019-10-22 
15:43:28.993582519 +0200
@@ -1,0 +2,6 @@
+Mon Oct 21 07:59:33 UTC 2019 - heming.z...@suse.com
+
+- lvm2-pvscan needs process speed improvement on a large scale PVs 
(jcs#SLE-5498)
+  + jcs-SLE5498_pvscan-allow-use-of-noudevsync-option.patch
+
+---

New:

  jcs-SLE5498_pvscan-allow-use-of-noudevsync-option.patch



Other differences:
--
++ lvm2.spec ++
--- /var/tmp/diff_new_pack.dItezj/_old  2019-10-22 15:43:29.965583626 +0200
+++ /var/tmp/diff_new_pack.dItezj/_new  2019-10-22 15:43:29.969583630 +0200
@@ -60,6 +60,7 @@
 Patch0003:  
bug-1149408_vgcreate-vgextend-restrict-PVs-with-mixed-block-size.patch
 Patch0004:  
bug-1152378-md-component-detection-for-differing-PV-and-device-s.patch
 Patch0005:  
bug-1152378-pvscan-fix-PV-online-when-device-has-a-different-siz.patch
+Patch0006:  jcs-SLE5498_pvscan-allow-use-of-noudevsync-option.patch
 # SUSE patches: 1000+ for LVM
 # Never upstream
 Patch1001:  cmirrord_remove_date_time_from_compilation.patch
@@ -119,6 +120,7 @@
 %patch0003 -p1
 %patch0004 -p1
 %patch0005 -p1
+%patch0006 -p1
 %patch1001 -p1
 %patch1002 -p1
 %patch1003 -p1


++ jcs-SLE5498_pvscan-allow-use-of-noudevsync-option.patch ++
>From 3e5e7fd6c93517278b2451a08f47e16d052babbb Mon Sep 17 00:00:00 2001
From: David Teigland 
Date: Tue, 10 Sep 2019 09:47:33 -0500
Subject: [PATCH] pvscan: allow use of noudevsync option

When pvscan is used to activate a VG via an
asynchronous service (i.e. lvm2-pvscan), there
is no requirement that the command wait for
udev to create device nodes before returning.

It's possible that waiting for udev is slow
enough to cause the service running the command
to time out.  So, allow the --noudevsync option
to be given to pvscan to skip waiting for udev.

(This commit is not changing the lvm2-pvscan
service itself to use --noudevsync.)

Still unknown is whether there are any complex
LV activation cases in which lvm itself requires
access to a device node, in which case the udev
wait could be needed by lvm itself.

(When running an activation command directly
from the command line, it's generally expected
that the activated LVs are ready to use when
the command is finished, so lvm waits for
udev to finish creating the dev nodes.)
---
 tools/command-lines.in | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/command-lines.in b/tools/command-lines.in
index 1169224792..65221c0d1a 100644
--- a/tools/command-lines.in
+++ b/tools/command-lines.in
@@ -1498,7 +1498,7 @@ DESC: Display PV information.
 
 pvscan --cache_long
 OO: --ignorelockingfailure, --reportformat ReportFmt,
---activate ay, --major Number, --minor Number
+--activate ay, --major Number, --minor Number, --noudevsync
 OP: PV|String ...
 IO: --background
 ID: pvscan_cache
-- 
2.21.0




commit lvm2 for openSUSE:Factory

2019-10-05 Thread root
Hello community,

here is the log from the commit of package lvm2 for openSUSE:Factory checked in 
at 2019-10-05 16:14:59

Comparing /work/SRC/openSUSE:Factory/lvm2 (Old)
 and  /work/SRC/openSUSE:Factory/.lvm2.new.2352 (New)


Package is "lvm2"

Sat Oct  5 16:14:59 2019 rev:127 rq:734724 version:2.03.05

Changes:

--- /work/SRC/openSUSE:Factory/lvm2/lvm2.changes2019-09-23 
13:15:46.801122590 +0200
+++ /work/SRC/openSUSE:Factory/.lvm2.new.2352/lvm2.changes  2019-10-05 
16:15:01.518262146 +0200
@@ -1,0 +2,7 @@
+Wed Oct  2 10:28:33 UTC 2019 - Martin Wilck 
+
+- Fix LV activation issues (boo#1152378, rh#1727270)
+  + bug-1152378-md-component-detection-for-differing-PV-and-device-s.patch
+  + bug-1152378-pvscan-fix-PV-online-when-device-has-a-different-siz.patch
+
+---

New:

  bug-1152378-md-component-detection-for-differing-PV-and-device-s.patch
  bug-1152378-pvscan-fix-PV-online-when-device-has-a-different-siz.patch



Other differences:
--
++ lvm2.spec ++
--- /var/tmp/diff_new_pack.QPOBlh/_old  2019-10-05 16:15:02.550259459 +0200
+++ /var/tmp/diff_new_pack.QPOBlh/_new  2019-10-05 16:15:02.554259449 +0200
@@ -58,6 +58,8 @@
 Patch0001:  bug-1122666_devices-drop-open-error-message.patch
 Patch0002:  bug-1149408_Fix-rounding-writes-up-to-sector-size.patch
 Patch0003:  
bug-1149408_vgcreate-vgextend-restrict-PVs-with-mixed-block-size.patch
+Patch0004:  
bug-1152378-md-component-detection-for-differing-PV-and-device-s.patch
+Patch0005:  
bug-1152378-pvscan-fix-PV-online-when-device-has-a-different-siz.patch
 # SUSE patches: 1000+ for LVM
 # Never upstream
 Patch1001:  cmirrord_remove_date_time_from_compilation.patch
@@ -115,6 +117,8 @@
 %patch0001 -p1
 %patch0002 -p1
 %patch0003 -p1
+%patch0004 -p1
+%patch0005 -p1
 %patch1001 -p1
 %patch1002 -p1
 %patch1003 -p1


++ bug-1152378-md-component-detection-for-differing-PV-and-device-s.patch 
++
>From f17353e3e604ad2d80bcd77ea0a6a93472e6b5bd Mon Sep 17 00:00:00 2001
From: David Teigland 
Date: Tue, 9 Jul 2019 13:32:41 -0500
Subject: [PATCH] md component detection for differing PV and device sizes

This check was mistakenly removed when shifting code in commit
"separate code for setting devices from metadata parsing".

Put it back with some new conditions.
---
 lib/metadata/metadata.c | 26 --
 1 file changed, 24 insertions(+), 2 deletions(-)

diff --git a/lib/metadata/metadata.c b/lib/metadata/metadata.c
index 121cf4f..f19df3d 100644
--- a/lib/metadata/metadata.c
+++ b/lib/metadata/metadata.c
@@ -3504,18 +3504,40 @@ static void _set_pv_device(struct format_instance *fid,
   struct physical_volume *pv)
 {
char buffer[64] __attribute__((aligned(8)));
+   struct cmd_context *cmd = fid->fmt->cmd;
+   struct device *dev;
uint64_t size;
 
-   if (!(pv->dev = lvmcache_device_from_pvid(fid->fmt->cmd, >id, 
>label_sector))) {
+   if (!(dev = lvmcache_device_from_pvid(cmd, >id, 
>label_sector))) {
if (!id_write_format(>id, buffer, sizeof(buffer)))
buffer[0] = '\0';
 
-   if (fid->fmt->cmd && !fid->fmt->cmd->pvscan_cache_single)
+   if (cmd && !cmd->pvscan_cache_single)
log_warn("WARNING: Couldn't find device with uuid %s.", 
buffer);
else
log_debug_metadata("Couldn't find device with uuid 
%s.", buffer);
}
 
+   /*
+* If the device and PV are not the size, it's a clue that we might
+* be reading an MD component (but not necessarily). Skip this check:
+* . if md component detection is disabled
+* . if we are already doing full a md check in label scan
+* . if md_component_checks is auto, not none (full means 
use_full_md_check is set)
+*/
+   if (dev && (pv->size != dev->size) && cmd &&
+   cmd->md_component_detection &&
+   !cmd->use_full_md_check &&
+   !strcmp(cmd->md_component_checks, "auto")) {
+   if (dev_is_md_component(dev, NULL, 1)) {
+   log_warn("WARNING: device %s is an md component, not 
setting device for PV.",
+dev_name(dev));
+   dev = NULL;
+   }
+   }
+
+   pv->dev = dev;
+
/*
 * A previous command wrote the VG while this dev was missing, so
 * the MISSING flag was included in the PV.
-- 
2.23.0

++ bug-1152378-pvscan-fix-PV-online-when-device-has-a-different-siz.patch 
++
>From b16abb3816408a296343a75658d4be0ef688390b Mon Sep 17 00:00:00 2001
From: David Teigland 
Date: Tue, 9 Jul 

commit lvm2 for openSUSE:Factory

2019-09-23 Thread root
Hello community,

here is the log from the commit of package lvm2 for openSUSE:Factory checked in 
at 2019-09-23 13:15:40

Comparing /work/SRC/openSUSE:Factory/lvm2 (Old)
 and  /work/SRC/openSUSE:Factory/.lvm2.new.7948 (New)


Package is "lvm2"

Mon Sep 23 13:15:40 2019 rev:126 rq:730344 version:2.03.05

Changes:

--- /work/SRC/openSUSE:Factory/lvm2/lvm2.changes2019-07-15 
22:42:36.923922250 +0200
+++ /work/SRC/openSUSE:Factory/.lvm2.new.7948/lvm2.changes  2019-09-23 
13:15:46.801122590 +0200
@@ -1,0 +2,46 @@
+Mon Sep  9 12:00:00 UTC 2019 - heming.z...@suse.com
+
+- Update lvm2.spec: make baselibs.conf to a common source.
+
+---
+Mon Sep  9 11:00:25 UTC 2019 - g...@suse.com
+
+- Avoid creation of mixed-blocksize PV on LVM volume groups (bsc#1149408)
+  + bug-1149408_Fix-rounding-writes-up-to-sector-size.patch
+  + bug-1149408_vgcreate-vgextend-restrict-PVs-with-mixed-block-size.patch
+- Update lvm.conf files
+  - add devices/allow_mixed_block_sizes item
+
+---
+Mon Sep 02 11:21:03 UTC 2019 - heming.z...@suse.com
+
+- Update to LVM2.2.03.05
+  - To drop lvm2-clvm and lvm2-cmirrord rpms (jsc#PM-1324)
+  - Fix Out of date package (bsc#734)
+  - Fix occasional slow shutdowns with kernel 5.0.0 and up (bsc#1137648)
+  - Remove clvmd
+  - Remove lvmlib (api)
+  - Remove lvmetad
+- Drop patches that have been merged into upstream
+  - bug-1114113_metadata-prevent-writing-beyond-metadata-area.patch
+  - bug-1137296_pvremove-vgextend-fix-using-device-aliases-with-lvmetad.patch
+  - bug-1135984_cache-support-no_discard_passdown.patch
+- Drop patches that have been nonexist/unsupport in upstream
+  - bsc1080299-detect-clvm-properly.patch
+  - bug-998893_make_pvscan_service_after_multipathd.patch
+  - bug-978055_clvmd-try-to-refresh-device-cache-on-the-first-failu.patch
+  - bug-950089_test-fix-lvm2-testsuite-build-error.patch
+  - bug-1072624_test-lvmetad_dump-always-timed-out-when-using-nc.patch
+  - tests-specify-python3-as-the-script-interpreter.patch
+- Update spec files
+  - merge device-mapper, lvm2-lockd, lvm2 into one spec file
+  - clvmd/lvmlib (api)/lvmetad had been removed, so delete related context in 
spec file
+- Update lvm.conf files
+  - remove all lvmetad lines/keywords
+  - add event_activation
+  - remove fallback_to_lvm1 & related items
+  - remove 
locking_type/fallback_to_clustered_locking/fallback_to_local_locking items
+  - remove locking_library item
+  - remove all special filter rules
+
+---

Old:

  LVM2.2.02.180.tgz
  LVM2.2.02.180.tgz.asc
  bsc1080299-detect-clvm-properly.patch
  bug-1072624_test-lvmetad_dump-always-timed-out-when-using-nc.patch
  bug-1114113_metadata-prevent-writing-beyond-metadata-area.patch
  bug-1135984_cache-support-no_discard_passdown.patch
  bug-1137296_pvremove-vgextend-fix-using-device-aliases-with-lvmetad.patch
  bug-950089_test-fix-lvm2-testsuite-build-error.patch
  bug-978055_clvmd-try-to-refresh-device-cache-on-the-first-failu.patch
  bug-998893_make_pvscan_service_after_multipathd.patch
  device-mapper.changes
  device-mapper.spec
  lvm2-clvm.changes
  lvm2-clvm.spec
  pre_checkin.sh
  tests-specify-python3-as-the-script-interpreter.patch

New:

  LVM2.2.03.05.tgz
  LVM2.2.03.05.tgz.asc
  _multibuild
  bug-1149408_Fix-rounding-writes-up-to-sector-size.patch
  bug-1149408_vgcreate-vgextend-restrict-PVs-with-mixed-block-size.patch



Other differences:
--
++ lvm2.spec ++
 744 lines (skipped)
 between /work/SRC/openSUSE:Factory/lvm2/lvm2.spec
 and /work/SRC/openSUSE:Factory/.lvm2.new.7948/lvm2.spec

++ LVM2.2.02.180.tgz -> LVM2.2.03.05.tgz ++
 143808 lines of diff (skipped)

++ _multibuild ++

  devicemapper
  lockd

++ bug-1149408_Fix-rounding-writes-up-to-sector-size.patch ++
>From 7f347698e3d09b15b4f9aed9c61239fda7b9e8c8 Mon Sep 17 00:00:00 2001
From: David Teigland 
Date: Fri, 26 Jul 2019 14:21:08 -0500
Subject: [PATCH] Fix rounding writes up to sector size

Do this at two levels, although one would be enough to
fix the problem seen recently:

- Ignore any reported sector size other than 512 of 4096.
  If either sector size (physical or logical) is reported
  as 512, then use 512.  If neither are reported as 512,
  and one or the other is reported as 4096, then use 4096.
  If neither is reported as either 512 or 4096, then use 512.

- When rounding up a limited write in bcache to be a multiple
  of the sector size, check that the resulting write size is
  not larger than the bcache block itself.  (This shouldn't
  happen if the sector size is 512 or 4096.)

commit lvm2 for openSUSE:Factory

2019-07-15 Thread root
Hello community,

here is the log from the commit of package lvm2 for openSUSE:Factory checked in 
at 2019-07-15 22:42:35

Comparing /work/SRC/openSUSE:Factory/lvm2 (Old)
 and  /work/SRC/openSUSE:Factory/.lvm2.new.1887 (New)


Package is "lvm2"

Mon Jul 15 22:42:35 2019 rev:125 rq:714367 version:2.02.180

Changes:

--- /work/SRC/openSUSE:Factory/lvm2/device-mapper.changes   2019-07-01 
10:43:07.509355062 +0200
+++ /work/SRC/openSUSE:Factory/.lvm2.new.1887/device-mapper.changes 
2019-07-15 22:42:36.803922278 +0200
@@ -1,0 +2,6 @@
+Tue Jul  9 10:00:05 UTC 2019 - g...@suse.com
+
+- Fix unknown feature in status message (bsc#1135984)
+  + bug-1135984_cache-support-no_discard_passdown.patch
+
+---
lvm2-clvm.changes: same change
lvm2.changes: same change

New:

  bug-1135984_cache-support-no_discard_passdown.patch



Other differences:
--
++ device-mapper.spec ++
--- /var/tmp/diff_new_pack.elaNEL/_old  2019-07-15 22:42:37.819922036 +0200
+++ /var/tmp/diff_new_pack.elaNEL/_new  2019-07-15 22:42:37.819922036 +0200
@@ -53,6 +53,7 @@
 Patch0001:  bug-1114113_metadata-prevent-writing-beyond-metadata-area.patch
 Patch0002:  bug-1122666_devices-drop-open-error-message.patch
 Patch0003:  
bug-1137296_pvremove-vgextend-fix-using-device-aliases-with-lvmetad.patch
+Patch0004:  bug-1135984_cache-support-no_discard_passdown.patch
 
 # SUSE patches: 1000+ for LVM
 # Never upstream
@@ -76,6 +77,7 @@
 %patch0001 -p1
 %patch0002 -p1
 %patch0003 -p1
+%patch0004 -p1
 %patch1001 -p1
 %patch1002 -p1
 %patch1003 -p1

lvm2-clvm.spec: same change
lvm2.spec: same change

++ bug-1135984_cache-support-no_discard_passdown.patch ++
>From adf9bf80a32500b45b37eb24b98fa7c2c933019e Mon Sep 17 00:00:00 2001
From: Zdenek Kabelac 
Date: Wed, 5 Jun 2019 14:31:34 +0200
Subject: [PATCH] cache: support no_discard_passdown

Recent kernel version from kernel commit:
de7180ff908b2bc0342e832dbdaa9a5f1ecaa33a
started to report in cache status line new flag:
no_discard_passdown

Whenever lvm spots unknown status it reports:
Unknown feature in status:

So add reconginzing this feature flag and also report this with

'lvs -o+kernel_discards'

When no_discard_passdown is found in status 'nopassdown' gets reported
for this field  (roughly matching what we report for thin-pools).
---
 WHATS_NEW | 1 +
 WHATS_NEW_DM  | 1 +
 lib/metadata/lv.c | 5 +
 libdm/libdevmapper.h  | 1 +
 libdm/libdm-targets.c | 2 ++
 5 files changed, 10 insertions(+)

diff --git a/lib/metadata/lv.c b/lib/metadata/lv.c
index 2abe42db7..538b292a2 100644
--- a/lib/metadata/lv.c
+++ b/lib/metadata/lv.c
@@ -245,6 +245,11 @@ char 
*lvseg_kernel_discards_dup_with_info_and_seg_status(struct dm_pool *mem, co
return 0;
}
s = get_pool_discards_name(d);
+   } else if (lvdm->seg_status.type == SEG_STATUS_CACHE) {
+   if (lvdm->seg_status.cache->feature_flags &
+   DM_CACHE_FEATURE_NO_DISCARD_PASSDOWN) {
+   s = "nopassdown";
+   }
}
 
if (!(ret = dm_pool_strdup(mem, s))) {
diff --git a/libdm/libdevmapper.h b/libdm/libdevmapper.h
index 19032d775..e885f52ae 100644
--- a/libdm/libdevmapper.h
+++ b/libdm/libdevmapper.h
@@ -1893,6 +1893,7 @@ int dm_tree_node_add_raid_target_with_params_v2(struct 
dm_tree_node *node,
 #define DM_CACHE_FEATURE_WRITETHROUGH 0x0002
 #define DM_CACHE_FEATURE_PASSTHROUGH  0x0004
 #define DM_CACHE_FEATURE_METADATA20x0008 /* cache v1.10 */
+#define DM_CACHE_FEATURE_NO_DISCARD_PASSDOWN 0x0010
 
 struct dm_config_node;
 /*
diff --git a/libdm/libdm-targets.c b/libdm/libdm-targets.c
index 876678943..d0a8b4332 100644
--- a/libdm/libdm-targets.c
+++ b/libdm/libdm-targets.c
@@ -296,6 +296,8 @@ int dm_get_status_cache(struct dm_pool *mem, const char 
*params,
s->feature_flags |= DM_CACHE_FEATURE_PASSTHROUGH;
else if (!strncmp(p, "metadata2 ", 10))
s->feature_flags |= DM_CACHE_FEATURE_METADATA2;
+   else if (!strncmp(p, "no_discard_passdown ", 20))
+   s->feature_flags |= 
DM_CACHE_FEATURE_NO_DISCARD_PASSDOWN;
else
log_error("Unknown feature in status: %s", params);
 
-- 
2.12.3




commit lvm2 for openSUSE:Factory

2019-07-01 Thread root
Hello community,

here is the log from the commit of package lvm2 for openSUSE:Factory checked in 
at 2019-07-01 10:43:06

Comparing /work/SRC/openSUSE:Factory/lvm2 (Old)
 and  /work/SRC/openSUSE:Factory/.lvm2.new.4615 (New)


Package is "lvm2"

Mon Jul  1 10:43:06 2019 rev:124 rq:712188 version:2.02.180

Changes:

--- /work/SRC/openSUSE:Factory/lvm2/device-mapper.changes   2019-03-22 
14:53:10.110103999 +0100
+++ /work/SRC/openSUSE:Factory/.lvm2.new.4615/device-mapper.changes 
2019-07-01 10:43:07.509355062 +0200
@@ -1,0 +2,12 @@
+Thu Jun 27 02:53:03 UTC 2019 - heming.z...@suse.com
+
+- Fix using device aliases with lvmetad (bsc#1137296)
+  + bug-1137296_pvremove-vgextend-fix-using-device-aliases-with-lvmetad.patch
+
+---
+Tue Apr 30 10:20:05 UTC 2019 - g...@suse.com
+
+- Fix devices drop open error message (bsc#1122666)
+  + bug-1122666_devices-drop-open-error-message.patch
+
+---
lvm2-clvm.changes: same change
lvm2.changes: same change

New:

  bug-1122666_devices-drop-open-error-message.patch
  bug-1137296_pvremove-vgextend-fix-using-device-aliases-with-lvmetad.patch



Other differences:
--
++ device-mapper.spec ++
--- /var/tmp/diff_new_pack.xA3YjW/_old  2019-07-01 10:43:08.761357106 +0200
+++ /var/tmp/diff_new_pack.xA3YjW/_new  2019-07-01 10:43:08.765357112 +0200
@@ -51,6 +51,8 @@
 ### COMMON-PATCH-BEGIN ###
 # Upstream patches
 Patch0001:  bug-1114113_metadata-prevent-writing-beyond-metadata-area.patch
+Patch0002:  bug-1122666_devices-drop-open-error-message.patch
+Patch0003:  
bug-1137296_pvremove-vgextend-fix-using-device-aliases-with-lvmetad.patch
 
 # SUSE patches: 1000+ for LVM
 # Never upstream
@@ -72,6 +74,8 @@
 %setup -q -n LVM2.%{lvm2_version}
 ### COMMON-PREP-BEGIN ###
 %patch0001 -p1
+%patch0002 -p1
+%patch0003 -p1
 %patch1001 -p1
 %patch1002 -p1
 %patch1003 -p1

++ lvm2-clvm.spec ++
--- /var/tmp/diff_new_pack.xA3YjW/_old  2019-07-01 10:43:08.793357158 +0200
+++ /var/tmp/diff_new_pack.xA3YjW/_new  2019-07-01 10:43:08.797357165 +0200
@@ -59,6 +59,8 @@
 ### COMMON-PATCH-BEGIN ###
 # Upstream patches
 Patch0001:  bug-1114113_metadata-prevent-writing-beyond-metadata-area.patch
+Patch0002:  bug-1122666_devices-drop-open-error-message.patch
+Patch0003:  
bug-1137296_pvremove-vgextend-fix-using-device-aliases-with-lvmetad.patch
 
 # SUSE patches: 1000+ for LVM
 # Never upstream
@@ -84,6 +86,8 @@
 
 ### COMMON-PREP-BEGIN ###
 %patch0001 -p1
+%patch0002 -p1
+%patch0003 -p1
 %patch1001 -p1
 %patch1002 -p1
 %patch1003 -p1

++ lvm2.spec ++
--- /var/tmp/diff_new_pack.xA3YjW/_old  2019-07-01 10:43:08.817357197 +0200
+++ /var/tmp/diff_new_pack.xA3YjW/_new  2019-07-01 10:43:08.821357204 +0200
@@ -61,6 +61,8 @@
 ### COMMON-PATCH-BEGIN ###
 # Upstream patches
 Patch0001:  bug-1114113_metadata-prevent-writing-beyond-metadata-area.patch
+Patch0002:  bug-1122666_devices-drop-open-error-message.patch
+Patch0003:  
bug-1137296_pvremove-vgextend-fix-using-device-aliases-with-lvmetad.patch
 
 # SUSE patches: 1000+ for LVM
 # Never upstream
@@ -92,6 +94,8 @@
 %setup -q -n LVM2.%{version}
 ### COMMON-PREP-BEGIN ###
 %patch0001 -p1
+%patch0002 -p1
+%patch0003 -p1
 %patch1001 -p1
 %patch1002 -p1
 %patch1003 -p1


++ bug-1122666_devices-drop-open-error-message.patch ++
>From 559cf0cd1e226baf63a98c39572264fbf5c3f6b4 Mon Sep 17 00:00:00 2001
From: David Teigland 
Date: Tue, 23 Apr 2019 09:39:42 -0500
Subject: [PATCH] devices: drop open error message

This open error is being printed in more common,
non-error circumstances than expected.  After a
number of complaints make it only a debug message.
---
 lib/device/dev-io.c | 5 +
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/lib/device/dev-io.c b/lib/device/dev-io.c
index 2a83a9657..6996a44dc 100644
--- a/lib/device/dev-io.c
+++ b/lib/device/dev-io.c
@@ -572,10 +572,7 @@ int dev_open_flags(struct device *dev, int flags, int 
direct, int quiet)
}
}
 #endif
-   if (quiet)
-   log_sys_debug("open", name);
-   else
-   log_sys_error("open", name);
+   log_sys_debug("open", name);
 
dev->flags |= DEV_OPEN_FAILURE;
return 0;
-- 
2.21.0

++ 
bug-1137296_pvremove-vgextend-fix-using-device-aliases-with-lvmetad.patch ++
>From b13ebfa4c289a5bc6eb4f8ba26126db8e6d78296 Mon Sep 17 00:00:00 2001
From: David Teigland 
Date: Wed, 26 Jun 2019 16:03:42 -0500
Subject: [PATCH] pvremove/vgextend: fix using device aliases with lvmetad

These commands were looking for the requested 

commit lvm2 for openSUSE:Factory

2019-03-22 Thread root
Hello community,

here is the log from the commit of package lvm2 for openSUSE:Factory checked in 
at 2019-03-22 14:53:01

Comparing /work/SRC/openSUSE:Factory/lvm2 (Old)
 and  /work/SRC/openSUSE:Factory/.lvm2.new.25356 (New)


Package is "lvm2"

Fri Mar 22 14:53:01 2019 rev:123 rq:686810 version:2.02.180

Changes:

--- /work/SRC/openSUSE:Factory/lvm2/device-mapper.changes   2019-02-08 
13:45:10.398839337 +0100
+++ /work/SRC/openSUSE:Factory/.lvm2.new.25356/device-mapper.changes
2019-03-22 14:53:10.110103999 +0100
@@ -1,0 +2,5 @@
+Tue Mar 19 12:02:02 UTC 2019 - Martin Liška 
+
+- Use %make_build in order to provide verbose output.
+
+---
lvm2-clvm.changes: same change
lvm2.changes: same change



Other differences:
--
++ device-mapper.spec ++
--- /var/tmp/diff_new_pack.JXcuVC/_old  2019-03-22 14:53:12.018102845 +0100
+++ /var/tmp/diff_new_pack.JXcuVC/_new  2019-03-22 14:53:12.038102833 +0100
@@ -111,7 +111,7 @@
 $extra_opts
 ### COMMON-CONFIG-END ###
 
-make %{?_smp_mflags} device-mapper
+%make_build device-mapper
 
 %install
 make DESTDIR=%{buildroot} \

++ lvm2-clvm.spec ++
--- /var/tmp/diff_new_pack.JXcuVC/_old  2019-03-22 14:53:12.066102816 +0100
+++ /var/tmp/diff_new_pack.JXcuVC/_new  2019-03-22 14:53:12.070102813 +0100
@@ -142,7 +142,7 @@
 $extra_opts
 ### COMMON-CONFIG-END ###
 
-make %{?_smp_mflags}
+%make_build
 
 %install
 make DESTDIR=%{buildroot} \

++ lvm2.spec ++
--- /var/tmp/diff_new_pack.JXcuVC/_old  2019-03-22 14:53:12.086102804 +0100
+++ /var/tmp/diff_new_pack.JXcuVC/_new  2019-03-22 14:53:12.090102801 +0100
@@ -149,7 +149,7 @@
 $extra_opts
 ### COMMON-CONFIG-END ###
 
-make %{?_smp_mflags}
+%make_build
 
 %install
 %make_install





commit lvm2 for openSUSE:Factory

2019-02-08 Thread root
Hello community,

here is the log from the commit of package lvm2 for openSUSE:Factory checked in 
at 2019-02-08 13:45:07

Comparing /work/SRC/openSUSE:Factory/lvm2 (Old)
 and  /work/SRC/openSUSE:Factory/.lvm2.new.28833 (New)


Package is "lvm2"

Fri Feb  8 13:45:07 2019 rev:122 rq:670483 version:2.02.180

Changes:

--- /work/SRC/openSUSE:Factory/lvm2/device-mapper.changes   2018-11-12 
09:49:08.752489835 +0100
+++ /work/SRC/openSUSE:Factory/.lvm2.new.28833/device-mapper.changes
2019-02-08 13:45:10.398839337 +0100
@@ -1,0 +2,11 @@
+Fri Feb  1 08:20:15 UTC 2019 - g...@suse.com
+
+- Disable the LVM lock daemon using sanlock, in order to avoid the
+  dependence on sanlock related packages (bsc#1121382)
+
+---
+Mon Jan 14 14:23:52 CET 2019 - ku...@suse.de
+
+- Use %license instead of %doc [bsc#1082318]
+
+---
lvm2-clvm.changes: same change
lvm2.changes: same change



Other differences:
--
++ device-mapper.spec ++
--- /var/tmp/diff_new_pack.0nYJLm/_old  2019-02-08 13:45:12.842838586 +0100
+++ /var/tmp/diff_new_pack.0nYJLm/_new  2019-02-08 13:45:12.846838584 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package device-mapper
 #
-# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -12,7 +12,7 @@
 # license that conforms to the Open Source Definition (Version 1.9)
 # published by the Open Source Initiative.
 
-# Please submit bugfixes or comments via http://bugs.opensuse.org/
+# Please submit bugfixes or comments via https://bugs.opensuse.org/
 #
 
 
@@ -156,7 +156,8 @@
 
 %files
 %defattr(-,root,root)
-%doc COPYING COPYING.LIB README
+%license COPYING COPYING.LIB
+%doc README
 %doc udev/12-dm-permissions.rules
 /sbin/dmsetup
 %{_sbindir}/dmsetup

++ lvm2-clvm.spec ++
--- /var/tmp/diff_new_pack.0nYJLm/_old  2019-02-08 13:45:12.870838577 +0100
+++ /var/tmp/diff_new_pack.0nYJLm/_new  2019-02-08 13:45:12.870838577 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package lvm2-clvm
 #
-# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -12,12 +12,17 @@
 # license that conforms to the Open Source Definition (Version 1.9)
 # published by the Open Source Initiative.
 
-# Please submit bugfixes or comments via http://bugs.opensuse.org/
+# Please submit bugfixes or comments via https://bugs.opensuse.org/
 #
 
 
+%define _supportsanlock 0
+
 %define dlm_version 3.99.1
+%if 0%{_supportsanlock} == 1
 %define sanlock_version 3.3.0
+%endif
+
 ### COMMON-DEF-BEGIN ###
 %define lvm2_version  2.02.180
 %define device_mapper_version 1.02.149
@@ -38,7 +43,9 @@
 BuildRequires:  libcorosync-devel
 BuildRequires:  libdlm-devel >= %{dlm_version}
 BuildRequires:  pkgconfig
+%if 0%{_supportsanlock} == 1
 BuildRequires:  sanlock-devel >= %{sanlock_version}
+%endif
 BuildRequires:  thin-provisioning-tools >= %{thin_provisioning_version}
 BuildRequires:  pkgconfig(blkid)
 BuildRequires:  pkgconfig(devmapper)
@@ -103,7 +110,9 @@
 --with-cluster=internal
 --enable-cmirrord
 --enable-lvmlockd-dlm
+%if 0%{_supportsanlock} == 1
 --enable-lvmlockd-sanlock
+%endif
 "
 
 ### COMMON-CONFIG-BEGIN ###
@@ -199,7 +208,9 @@
 Group:  Productivity/Clustering/HA
 Recommends: libdlm >= %{dlm_version}
 Requires:   lvm2 = %{version}
+%if 0%{_supportsanlock} == 1
 Requires:   sanlock >= %{sanlock_version}
+%endif
 %{?systemd_requires}
 
 %description -n lvm2-lockd

++ lvm2.spec ++
--- /var/tmp/diff_new_pack.0nYJLm/_old  2019-02-08 13:45:12.894838570 +0100
+++ /var/tmp/diff_new_pack.0nYJLm/_new  2019-02-08 13:45:12.898838568 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package lvm2
 #
-# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -12,7 +12,7 @@
 # license that conforms to the Open Source Definition (Version 1.9)
 # published by the Open Source Initiative.
 
-# Please submit bugfixes or comments via http://bugs.opensuse.org/
+# Please submit bugfixes or comments via https://bugs.opensuse.org/
 #
 
 





commit lvm2 for openSUSE:Factory

2018-11-12 Thread root
Hello community,

here is the log from the commit of package lvm2 for openSUSE:Factory checked in 
at 2018-11-12 09:49:04

Comparing /work/SRC/openSUSE:Factory/lvm2 (Old)
 and  /work/SRC/openSUSE:Factory/.lvm2.new (New)


Package is "lvm2"

Mon Nov 12 09:49:04 2018 rev:121 rq:646332 version:2.02.180

Changes:

--- /work/SRC/openSUSE:Factory/lvm2/device-mapper.changes   2018-09-04 
22:46:24.010989550 +0200
+++ /work/SRC/openSUSE:Factory/.lvm2.new/device-mapper.changes  2018-11-12 
09:49:08.752489835 +0100
@@ -1,0 +2,6 @@
+Mon Nov  5 08:10:05 UTC 2018 - g...@suse.com
+
+- Prevent writing beyond metadata area (bsc#1114113)
+  + bug-1114113_metadata-prevent-writing-beyond-metadata-area.patch
+
+---
lvm2-clvm.changes: same change
lvm2.changes: same change

New:

  bug-1114113_metadata-prevent-writing-beyond-metadata-area.patch



Other differences:
--
++ device-mapper.spec ++
--- /var/tmp/diff_new_pack.poVOCc/_old  2018-11-12 09:49:10.724486865 +0100
+++ /var/tmp/diff_new_pack.poVOCc/_new  2018-11-12 09:49:10.776486787 +0100
@@ -50,6 +50,7 @@
 %{?systemd_requires}
 ### COMMON-PATCH-BEGIN ###
 # Upstream patches
+Patch0001:  bug-1114113_metadata-prevent-writing-beyond-metadata-area.patch
 
 # SUSE patches: 1000+ for LVM
 # Never upstream
@@ -70,6 +71,7 @@
 %prep
 %setup -q -n LVM2.%{lvm2_version}
 ### COMMON-PREP-BEGIN ###
+%patch0001 -p1
 %patch1001 -p1
 %patch1002 -p1
 %patch1003 -p1

++ lvm2-clvm.spec ++
--- /var/tmp/diff_new_pack.poVOCc/_old  2018-11-12 09:49:11.140486239 +0100
+++ /var/tmp/diff_new_pack.poVOCc/_new  2018-11-12 09:49:11.196486155 +0100
@@ -51,6 +51,7 @@
 Provides:   cmirrord = %{version}
 ### COMMON-PATCH-BEGIN ###
 # Upstream patches
+Patch0001:  bug-1114113_metadata-prevent-writing-beyond-metadata-area.patch
 
 # SUSE patches: 1000+ for LVM
 # Never upstream
@@ -75,6 +76,7 @@
 %setup -q -n LVM2.%{lvm2_version}
 
 ### COMMON-PREP-BEGIN ###
+%patch0001 -p1
 %patch1001 -p1
 %patch1002 -p1
 %patch1003 -p1

++ lvm2.spec ++
--- /var/tmp/diff_new_pack.poVOCc/_old  2018-11-12 09:49:11.540485636 +0100
+++ /var/tmp/diff_new_pack.poVOCc/_new  2018-11-12 09:49:11.580485576 +0100
@@ -60,6 +60,7 @@
 
 ### COMMON-PATCH-BEGIN ###
 # Upstream patches
+Patch0001:  bug-1114113_metadata-prevent-writing-beyond-metadata-area.patch
 
 # SUSE patches: 1000+ for LVM
 # Never upstream
@@ -90,6 +91,7 @@
 %prep
 %setup -q -n LVM2.%{version}
 ### COMMON-PREP-BEGIN ###
+%patch0001 -p1
 %patch1001 -p1
 %patch1002 -p1
 %patch1003 -p1


++ bug-1114113_metadata-prevent-writing-beyond-metadata-area.patch ++
>From ab27d5dc2a5c3bf23ab8fed438f1542015dc723d Mon Sep 17 00:00:00 2001
From: David Teigland 
Date: Mon, 29 Oct 2018 11:06:00 -0500
Subject: [PATCH] metadata: prevent writing beyond metadata area

lvm uses a bcache block size of 128K.  A bcache block
at the end of the metadata area will overlap the PEs
from which LVs are allocated.  How much depends on
alignments.  When lvm reads and writes one of these
bcache blocks to update VG metadata, it can also be
reading and writing PEs that belong to an LV.

If these overlapping PEs are being written to by the
LV user (e.g. filesystem) at the same time that lvm
is modifying VG metadata in the overlapping bcache
block, then the user's updates to the PEs can be lost.

This patch is a quick hack to prevent lvm from writing
past the end of the metadata area.
---
 lib/device/bcache.c   | 79 +--
 lib/device/bcache.h   |  3 ++
 lib/format_text/format-text.c | 10 ++
 lib/label/label.c | 35 ++-
 lib/label/label.h |  2 ++
 lib/metadata/mirror.c |  4 +++
 6 files changed, 130 insertions(+), 3 deletions(-)

diff --git a/lib/device/bcache.c b/lib/device/bcache.c
index 531d83b10..62352563a 100644
--- a/lib/device/bcache.c
+++ b/lib/device/bcache.c
@@ -156,6 +156,10 @@ static void _async_destroy(struct io_engine *ioe)
dm_free(e);
 }
 
+static int _last_byte_fd;
+static uint64_t _last_byte_offset;
+static int _last_byte_sector_size;
+
 static bool _async_issue(struct io_engine *ioe, enum dir d, int fd,
 sector_t sb, sector_t se, void *data, void *context)
 {
@@ -163,12 +167,53 @@ static bool _async_issue(struct io_engine *ioe, enum dir 
d, int fd,
struct iocb *cb_array[1];
struct control_block *cb;
struct async_engine *e = _to_async(ioe);
+   sector_t offset;
+   sector_t nbytes;
+   sector_t limit_nbytes;
+   sector_t extra_nbytes = 0;
 
if (((uintptr_t) data) & e->page_mask) {
log_warn("misaligned data buffer");
return 

commit lvm2 for openSUSE:Factory

2018-09-04 Thread root
Hello community,

here is the log from the commit of package lvm2 for openSUSE:Factory checked in 
at 2018-09-04 22:46:11

Comparing /work/SRC/openSUSE:Factory/lvm2 (Old)
 and  /work/SRC/openSUSE:Factory/.lvm2.new (New)


Package is "lvm2"

Tue Sep  4 22:46:11 2018 rev:120 rq:632085 version:2.02.180

Changes:

--- /work/SRC/openSUSE:Factory/lvm2/device-mapper.changes   2018-08-28 
09:23:48.476708840 +0200
+++ /work/SRC/openSUSE:Factory/.lvm2.new/device-mapper.changes  2018-09-04 
22:46:24.010989550 +0200
@@ -1,0 +2,7 @@
+Wed Aug 29 10:20:30 UTC 2018 - g...@suse.com
+
+- Fix lvm2 activation issue when used on top of multipath
+  bsc#998893
+  + bug-998893_make_pvscan_service_after_multipathd.patch
+
+---
lvm2-clvm.changes: same change
lvm2.changes: same change

New:

  bug-998893_make_pvscan_service_after_multipathd.patch



Other differences:
--
++ device-mapper.spec ++
--- /var/tmp/diff_new_pack.2eZPuf/_old  2018-09-04 22:46:25.470994583 +0200
+++ /var/tmp/diff_new_pack.2eZPuf/_new  2018-09-04 22:46:25.470994583 +0200
@@ -58,6 +58,7 @@
 Patch1003:  fate-31841_fsadm-add-support-for-btrfs.patch
 Patch1004:  bug-935623_dmeventd-fix-dso-name-wrong-compare.patch
 Patch1005:  bsc1080299-detect-clvm-properly.patch
+Patch1006:  bug-998893_make_pvscan_service_after_multipathd.patch
 
 #SUSE patches 2000+ for device mapper, udev rules
 Patch2001:  
bug-1012973_simplify-special-case-for-md-in-69-dm-lvm-metadata.patch
@@ -74,6 +75,7 @@
 %patch1003 -p1
 %patch1004 -p1
 %patch1005 -p1
+%patch1006 -p1
 %patch2001 -p1
 ### COMMON-PREP-END ###
 

lvm2-clvm.spec: same change
lvm2.spec: same change

++ bug-998893_make_pvscan_service_after_multipathd.patch ++
>From 0da043466ace27eb483114c87ce81feaf00ed682 Mon Sep 17 00:00:00 2001
From: Eric Ren 
Date: Thu, 6 Apr 2017 11:22:30 +0800
Subject: [PATCH] systemd service: make pvscan service after multipathd

bsc#998893
Signed-off-by: Eric Ren 
---
 scripts/lvm2_pvscan_systemd_red_...@.service.in | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/lvm2_pvscan_systemd_red_...@.service.in 
b/scripts/lvm2_pvscan_systemd_red_...@.service.in
index 03651d5..1d6342f 100644
--- a/scripts/lvm2_pvscan_systemd_red_...@.service.in
+++ b/scripts/lvm2_pvscan_systemd_red_...@.service.in
@@ -4,7 +4,7 @@ Documentation=man:pvscan(8)
 StartLimitInterval=0
 BindsTo=dev-block-%i.device
 Requires=lvm2-lvmetad.socket
-After=lvm2-lvmetad.socket lvm2-lvmetad.service
+After=lvm2-lvmetad.socket lvm2-lvmetad.service multipathd.service
 Before=shutdown.target
 Conflicts=shutdown.target
 
-- 
2.10.2




commit lvm2 for openSUSE:Factory

2018-08-28 Thread root
Hello community,

here is the log from the commit of package lvm2 for openSUSE:Factory checked in 
at 2018-08-28 09:23:45

Comparing /work/SRC/openSUSE:Factory/lvm2 (Old)
 and  /work/SRC/openSUSE:Factory/.lvm2.new (New)


Package is "lvm2"

Tue Aug 28 09:23:45 2018 rev:119 rq:631017 version:2.02.180

Changes:

--- /work/SRC/openSUSE:Factory/lvm2/device-mapper.changes   2018-07-28 
12:36:29.123974419 +0200
+++ /work/SRC/openSUSE:Factory/.lvm2.new/device-mapper.changes  2018-08-28 
09:23:48.476708840 +0200
@@ -1,0 +2,33 @@
+Mon Jul 23 11:45:20 UTC 2018 - g...@suse.com
+
+- Update to LVM2.2.02.180
+  Never send any discard ioctl with test mode.
+  Fix thin-pool alloc which needs same PV for data and metadata.
+  Extend list of non-memlocked areas with newly linked libs.
+  Enhance vgcfgrestore to check for active LVs in restored VG.
+  lvconvert: provide possible layouts between linear and striped/raid
+  Fix unmonitoring of merging snapshots.
+  Add missing -l description in fsadm man page.
+  Cache can uses metadata format 2 with cleaner policy.
+  Avoid showing internal error in lvs output or pvmoved LVs.
+  Fix check if resized PV can also fit metadata area.
+  Reopen devices RDWR only before writing to avoid udev issues.
+  Change pvresize output confusing when no resize took place.
+  Fix lvmetad hanging on shutdown.
+  Fix mem leak in clvmd and more coverity issues.
+  Fix that pvmove does not work (bsc#1080299)
+- Drop patches that have been merged upstream
+  - fate-323203_lvmlockd-add-lockopt-values-for-skipping-selected-lo.patch
+  - lvm2-69-dm-lvm-metad.rules-explicit-pvscan-rule.patch
+  - lvm2-69-dm-lvm-metad.rules-set-systemd-vars-on-chang.patch
+  - bug-1095960_dev_io-no-discard-in-testmode.patch
+- Refresh patches
+  + bsc1080299-detect-clvm-properly.patch
+  + bug-950089_test-fix-lvm2-testsuite-build-error.patch
+- Update spec files
+  Fix BuildRequires package name for modprobe (bsc#1102668)
+  Fix cmirrord LV creation/activation failure (bsc#1091863)
+- Fix building error in OBS due to the script interpreter
+  + tests-specify-python3-as-the-script-interpreter.patch
+
+---
lvm2-clvm.changes: same change
lvm2.changes: same change

Old:

  LVM2.2.02.177.tgz
  LVM2.2.02.177.tgz.asc
  bug-1095960_dev_io-no-discard-in-testmode.patch
  fate-323203_lvmlockd-add-lockopt-values-for-skipping-selected-lo.patch
  lvm2-69-dm-lvm-metad.rules-explicit-pvscan-rule.patch
  lvm2-69-dm-lvm-metad.rules-set-systemd-vars-on-chang.patch

New:

  LVM2.2.02.180.tgz
  LVM2.2.02.180.tgz.asc
  tests-specify-python3-as-the-script-interpreter.patch



Other differences:
--
++ device-mapper.spec ++
--- /var/tmp/diff_new_pack.Bl5vGL/_old  2018-08-28 09:23:49.144710924 +0200
+++ /var/tmp/diff_new_pack.Bl5vGL/_new  2018-08-28 09:23:49.144710924 +0200
@@ -19,8 +19,8 @@
 %define libname libdevmapper1_03
 %define libname_event libdevmapper-event1_03
 ### COMMON-DEF-BEGIN ###
-%define lvm2_version  2.02.177
-%define device_mapper_version 1.02.146
+%define lvm2_version  2.02.180
+%define device_mapper_version 1.02.149
 %define thin_provisioning_version 0.7.0
 ### COMMON-DEF-END ###
 Name:   device-mapper
@@ -33,7 +33,10 @@
 Source: ftp://sources.redhat.com/pub/lvm2/LVM2.%{lvm2_version}.tgz
 Source1:ftp://sources.redhat.com/pub/lvm2/LVM2.%{lvm2_version}.tgz.asc
 Source99:   baselibs.conf
+# To detect modprobe during build
 BuildRequires:  gcc-c++
+BuildRequires:  kmod-compat
+BuildRequires:  libaio-devel
 BuildRequires:  pkgconfig
 BuildRequires:  suse-module-tools
 BuildRequires:  thin-provisioning-tools >= %{thin_provisioning_version}
@@ -47,8 +50,6 @@
 %{?systemd_requires}
 ### COMMON-PATCH-BEGIN ###
 # Upstream patches
-Patch0001:  
fate-323203_lvmlockd-add-lockopt-values-for-skipping-selected-lo.patch
-Patch0002:  bug-1095960_dev_io-no-discard-in-testmode.patch
 
 # SUSE patches: 1000+ for LVM
 # Never upstream
@@ -60,8 +61,6 @@
 
 #SUSE patches 2000+ for device mapper, udev rules
 Patch2001:  
bug-1012973_simplify-special-case-for-md-in-69-dm-lvm-metadata.patch
-Patch2002:  lvm2-69-dm-lvm-metad.rules-explicit-pvscan-rule.patch
-Patch2003:  lvm2-69-dm-lvm-metad.rules-set-systemd-vars-on-chang.patch
 ### COMMON-PATCH-END ###
 
 %description
@@ -71,15 +70,11 @@
 %setup -q -n LVM2.%{lvm2_version}
 ### COMMON-PREP-BEGIN ###
 %patch1001 -p1
-%patch0001 -p1
-%patch0002 -p1
 %patch1002 -p1
 %patch1003 -p1
 %patch1004 -p1
 %patch1005 -p1
 %patch2001 -p1
-%patch2002 -p1
-%patch2003 -p1
 ### COMMON-PREP-END ###
 
 %build

++ lvm2-clvm.spec ++
--- /var/tmp/diff_new_pack.Bl5vGL/_old  2018-08-28 09:23:49.164710986 +0200
+++ 

commit lvm2 for openSUSE:Factory

2018-07-28 Thread root
Hello community,

here is the log from the commit of package lvm2 for openSUSE:Factory checked in 
at 2018-07-28 12:36:27

Comparing /work/SRC/openSUSE:Factory/lvm2 (Old)
 and  /work/SRC/openSUSE:Factory/.lvm2.new (New)


Package is "lvm2"

Sat Jul 28 12:36:27 2018 rev:118 rq:623586 version:2.02.177

Changes:

--- /work/SRC/openSUSE:Factory/lvm2/device-mapper.changes   2018-06-03 
12:31:49.729802989 +0200
+++ /work/SRC/openSUSE:Factory/.lvm2.new/device-mapper.changes  2018-07-28 
12:36:29.123974419 +0200
@@ -1,0 +2,6 @@
+Wed Jul 18 11:33:30 UTC 2018 - g...@suse.com
+
+- Fix issuing discard in test mode (bsc#1095960)
+  + bug-1095960_dev_io-no-discard-in-testmode.patch
+
+---
lvm2-clvm.changes: same change
lvm2.changes: same change

New:

  bug-1095960_dev_io-no-discard-in-testmode.patch



Other differences:
--
++ device-mapper.spec ++
--- /var/tmp/diff_new_pack.yUu4HG/_old  2018-07-28 12:36:31.559979094 +0200
+++ /var/tmp/diff_new_pack.yUu4HG/_new  2018-07-28 12:36:31.563979101 +0200
@@ -48,6 +48,7 @@
 ### COMMON-PATCH-BEGIN ###
 # Upstream patches
 Patch0001:  
fate-323203_lvmlockd-add-lockopt-values-for-skipping-selected-lo.patch
+Patch0002:  bug-1095960_dev_io-no-discard-in-testmode.patch
 
 # SUSE patches: 1000+ for LVM
 # Never upstream
@@ -71,6 +72,7 @@
 ### COMMON-PREP-BEGIN ###
 %patch1001 -p1
 %patch0001 -p1
+%patch0002 -p1
 %patch1002 -p1
 %patch1003 -p1
 %patch1004 -p1

lvm2-clvm.spec: same change
lvm2.spec: same change

++ bug-1095960_dev_io-no-discard-in-testmode.patch ++
>From b8a7f6ba3de6aed38c2969693b6064a943ea8799 Mon Sep 17 00:00:00 2001
From: Zdenek Kabelac 
Date: Sun, 8 Jul 2018 21:11:01 +0200
Subject: [PATCH] dev_io: no discard in testmode

When lvm2 command is executed in test mode, discard ioctl is skipped.
This may cause even data-loose in case, issuing discard for released
areas was enabled and user 'tested'  lvreduce.
---
 lib/device/dev-io.c | 8 +---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/lib/device/dev-io.c b/lib/device/dev-io.c
index 145093f17..2a4967fc1 100644
--- a/lib/device/dev-io.c
+++ b/lib/device/dev-io.c
@@ -411,9 +411,11 @@ static int _dev_discard_blocks(struct device *dev, 
uint64_t offset_bytes, uint64
discard_range[0] = offset_bytes;
discard_range[1] = size_bytes;
 
-   log_debug_devs("Discarding %" PRIu64 " bytes offset %" PRIu64 " bytes 
on %s.",
-  size_bytes, offset_bytes, dev_name(dev));
-   if (ioctl(dev->fd, BLKDISCARD, _range) < 0) {
+   log_debug_devs("Discarding %" PRIu64 " bytes offset %" PRIu64 " bytes 
on %s. %s",
+  size_bytes, offset_bytes, dev_name(dev),
+  test_mode() ? " (test mode - suppressed)" : "");
+
+   if (!test_mode() && ioctl(dev->fd, BLKDISCARD, _range) < 0) {
log_error("%s: BLKDISCARD ioctl at offset %" PRIu64 " size %" 
PRIu64 " failed: %s.",
  dev_name(dev), offset_bytes, size_bytes, 
strerror(errno));
if (!dev_close(dev))
-- 
2.12.3




commit lvm2 for openSUSE:Factory

2018-06-03 Thread root
Hello community,

here is the log from the commit of package lvm2 for openSUSE:Factory checked in 
at 2018-06-03 12:31:47

Comparing /work/SRC/openSUSE:Factory/lvm2 (Old)
 and  /work/SRC/openSUSE:Factory/.lvm2.new (New)


Package is "lvm2"

Sun Jun  3 12:31:47 2018 rev:117 rq:612715 version:2.02.177

Changes:

--- /work/SRC/openSUSE:Factory/lvm2/device-mapper.changes   2018-04-22 
14:34:54.395244283 +0200
+++ /work/SRC/openSUSE:Factory/.lvm2.new/device-mapper.changes  2018-06-03 
12:31:49.729802989 +0200
@@ -1,0 +2,6 @@
+Tue May 29 10:45:30 UTC 2018 - g...@suse.com
+
+- Fix the wrong filter for the cdrom device in /etc/lvm/lvm.conf
+  (bsc#1081530)
+
+---
lvm2-clvm.changes: same change
lvm2.changes: same change



Other differences:
--
lvm2-clvm.spec: same change
lvm2.spec: same change

++ lvm.conf ++
--- /var/tmp/diff_new_pack.bXXmir/_old  2018-06-03 12:31:50.725766527 +0200
+++ /var/tmp/diff_new_pack.bXXmir/_new  2018-06-03 12:31:50.729766381 +0200
@@ -140,7 +140,7 @@
# 
# This configuration option has an automatic default value.
# filter = [ "a|.*/|" ]
-   filter = [ "r|/dev/.*/by-path/.*|", "r|/dev/.*/by-id/.*|", 
"r|/dev/fd.*|", "r|/dev/   cdrom|", "a/.*/" ]
+   filter = [ "r|/dev/.*/by-path/.*|", "r|/dev/.*/by-id/.*|", 
"r|/dev/fd.*|", "r|/dev/cdrom|", "a/.*/" ]
 
# Configuration option devices/global_filter.
# Limit the block devices that are used by LVM system components.




commit lvm2 for openSUSE:Factory

2018-04-22 Thread root
Hello community,

here is the log from the commit of package lvm2 for openSUSE:Factory checked in 
at 2018-04-22 14:34:53

Comparing /work/SRC/openSUSE:Factory/lvm2 (Old)
 and  /work/SRC/openSUSE:Factory/.lvm2.new (New)


Package is "lvm2"

Sun Apr 22 14:34:53 2018 rev:116 rq:598475 version:2.02.177

Changes:

--- /work/SRC/openSUSE:Factory/lvm2/device-mapper.changes   2018-02-14 
09:21:55.976547751 +0100
+++ /work/SRC/openSUSE:Factory/.lvm2.new/device-mapper.changes  2018-04-22 
14:34:54.395244283 +0200
@@ -1,0 +2,7 @@
+Thu Apr 19 10:59:59 UTC 2018 - mwi...@suse.com
+
+- Fix handling of udev CHANGE events with systemd (bsc#1067312)
+  + lvm2-69-dm-lvm-metad.rules-explicit-pvscan-rule.patch
+  + lvm2-69-dm-lvm-metad.rules-set-systemd-vars-on-chang.patch
+
+---
lvm2-clvm.changes: same change
lvm2.changes: same change

New:

  lvm2-69-dm-lvm-metad.rules-explicit-pvscan-rule.patch
  lvm2-69-dm-lvm-metad.rules-set-systemd-vars-on-chang.patch



Other differences:
--
++ device-mapper.spec ++
--- /var/tmp/diff_new_pack.wEiXzU/_old  2018-04-22 14:35:05.094857069 +0200
+++ /var/tmp/diff_new_pack.wEiXzU/_new  2018-04-22 14:35:05.094857069 +0200
@@ -27,7 +27,7 @@
 Version:%{device_mapper_version}
 Release:0
 Summary:Device Mapper Tools
-License:GPL-2.0+ and LGPL-2.1+
+License:GPL-2.0-or-later AND LGPL-2.1-or-later
 Group:  System/Base
 Url:http://www.sourceware.org/lvm2/
 Source: ftp://sources.redhat.com/pub/lvm2/LVM2.%{lvm2_version}.tgz
@@ -59,6 +59,8 @@
 
 #SUSE patches 2000+ for device mapper, udev rules
 Patch2001:  
bug-1012973_simplify-special-case-for-md-in-69-dm-lvm-metadata.patch
+Patch2002:  lvm2-69-dm-lvm-metad.rules-explicit-pvscan-rule.patch
+Patch2003:  lvm2-69-dm-lvm-metad.rules-set-systemd-vars-on-chang.patch
 ### COMMON-PATCH-END ###
 
 %description
@@ -74,6 +76,8 @@
 %patch1004 -p1
 %patch1005 -p1
 %patch2001 -p1
+%patch2002 -p1
+%patch2003 -p1
 ### COMMON-PREP-END ###
 
 %build

++ lvm2-clvm.spec ++
--- /var/tmp/diff_new_pack.wEiXzU/_old  2018-04-22 14:35:05.134855621 +0200
+++ /var/tmp/diff_new_pack.wEiXzU/_new  2018-04-22 14:35:05.138855477 +0200
@@ -27,7 +27,7 @@
 Version:%{lvm2_version}
 Release:0
 Summary:Clustered LVM2
-License:GPL-2.0+ and LGPL-2.1+
+License:GPL-2.0-or-later AND LGPL-2.1-or-later
 Group:  Productivity/Clustering/HA
 Url:http://sources.redhat.com/cluster/clvm/
 Source: ftp://sources.redhat.com/pub/lvm2/LVM2.%{lvm2_version}.tgz
@@ -60,6 +60,8 @@
 
 #SUSE patches 2000+ for device mapper, udev rules
 Patch2001:  
bug-1012973_simplify-special-case-for-md-in-69-dm-lvm-metadata.patch
+Patch2002:  lvm2-69-dm-lvm-metad.rules-explicit-pvscan-rule.patch
+Patch2003:  lvm2-69-dm-lvm-metad.rules-set-systemd-vars-on-chang.patch
 ### COMMON-PATCH-END ###
 
 # Patches for clvmd and cmirrord
@@ -79,6 +81,8 @@
 %patch1004 -p1
 %patch1005 -p1
 %patch2001 -p1
+%patch2002 -p1
+%patch2003 -p1
 ### COMMON-PREP-END ###
 
 %patch3001 -p1

++ lvm2.spec ++
--- /var/tmp/diff_new_pack.wEiXzU/_old  2018-04-22 14:35:05.166854464 +0200
+++ /var/tmp/diff_new_pack.wEiXzU/_new  2018-04-22 14:35:05.166854464 +0200
@@ -30,7 +30,7 @@
 Version:%{lvm2_version}
 Release:0
 Summary:Logical Volume Manager Tools
-License:GPL-2.0+ and LGPL-2.1+
+License:GPL-2.0-or-later AND LGPL-2.1-or-later
 Group:  System/Base
 Url:http://www.sourceware.org/lvm2/
 Source: ftp://sources.redhat.com/pub/lvm2/LVM2.%{version}.tgz
@@ -70,6 +70,8 @@
 
 #SUSE patches 2000+ for device mapper, udev rules
 Patch2001:  
bug-1012973_simplify-special-case-for-md-in-69-dm-lvm-metadata.patch
+Patch2002:  lvm2-69-dm-lvm-metad.rules-explicit-pvscan-rule.patch
+Patch2003:  lvm2-69-dm-lvm-metad.rules-set-systemd-vars-on-chang.patch
 ### COMMON-PATCH-END ###
 
 # 3000+ for test code
@@ -94,6 +96,8 @@
 %patch1004 -p1
 %patch1005 -p1
 %patch2001 -p1
+%patch2002 -p1
+%patch2003 -p1
 ### COMMON-PREP-END ###
 
 %patch3001 -p1


++ lvm2-69-dm-lvm-metad.rules-explicit-pvscan-rule.patch ++
>From fe1af8d113e8b0f5a8aa9397b05eb00341aea332 Mon Sep 17 00:00:00 2001
From: Martin Wilck 
Date: Thu, 21 Dec 2017 09:30:16 +0100
Subject: [PATCH 1/2] lvm2: 69-dm-lvm-metad.rules: explicit pvscan rule

Make the distinction between the cases with and without systemd
background jobs explicit in 69-dm-lvm-metad.rules rather than
substituting the rule from the Makefile. At this stage,
this improves only readibility, at the cost of one GOTO statement.

The next patch will add more 

commit lvm2 for openSUSE:Factory

2018-02-14 Thread root
Hello community,

here is the log from the commit of package lvm2 for openSUSE:Factory checked in 
at 2018-02-14 09:21:52

Comparing /work/SRC/openSUSE:Factory/lvm2 (Old)
 and  /work/SRC/openSUSE:Factory/.lvm2.new (New)


Package is "lvm2"

Wed Feb 14 09:21:52 2018 rev:115 rq:575550 version:2.02.177

Changes:

--- /work/SRC/openSUSE:Factory/lvm2/device-mapper.changes   2018-02-03 
15:37:07.644434746 +0100
+++ /work/SRC/openSUSE:Factory/.lvm2.new/device-mapper.changes  2018-02-14 
09:21:55.976547751 +0100
@@ -1,0 +2,8 @@
+Mon Feb 12 09:01:29 UTC 2018 - tchva...@suse.com
+
+- Fix detection of clvm that happens on compile time based on
+  CLVM_PIDFILE, as we determine these features on runtime
+  bsc#1080299:
+  + bsc1080299-detect-clvm-properly.patch
+
+---
lvm2-clvm.changes: same change
lvm2.changes: same change

New:

  bsc1080299-detect-clvm-properly.patch



Other differences:
--
++ device-mapper.spec ++
--- /var/tmp/diff_new_pack.IvHGp4/_old  2018-02-14 09:22:00.144396691 +0100
+++ /var/tmp/diff_new_pack.IvHGp4/_new  2018-02-14 09:22:00.148396546 +0100
@@ -55,6 +55,7 @@
 Patch1002:  fate-309425_display-dm-name-for-lv-name.patch
 Patch1003:  fate-31841_fsadm-add-support-for-btrfs.patch
 Patch1004:  bug-935623_dmeventd-fix-dso-name-wrong-compare.patch
+Patch1005:  bsc1080299-detect-clvm-properly.patch
 
 #SUSE patches 2000+ for device mapper, udev rules
 Patch2001:  
bug-1012973_simplify-special-case-for-md-in-69-dm-lvm-metadata.patch
@@ -71,6 +72,7 @@
 %patch1002 -p1
 %patch1003 -p1
 %patch1004 -p1
+%patch1005 -p1
 %patch2001 -p1
 ### COMMON-PREP-END ###
 

lvm2-clvm.spec: same change
lvm2.spec: same change

++ bsc1080299-detect-clvm-properly.patch ++
Index: LVM2.2.02.177/configure
===
--- LVM2.2.02.177.orig/configure
+++ LVM2.2.02.177/configure
@@ -10888,8 +10888,6 @@ if [ `expr x"$CLVMD" : '.*corosync.*'` !
 fi
 
 

-if test "$CLVMD" != none; then
-
 # Check whether --with-clvmd-pidfile was given.
 if test "${with_clvmd_pidfile+set}" = set; then :
   withval=$with_clvmd_pidfile; CLVMD_PIDFILE=$withval
@@ -10902,8 +10900,6 @@ cat >>confdefs.h <<_ACEOF
 #define CLVMD_PIDFILE "$CLVMD_PIDFILE"
 _ACEOF
 
-fi
-
 

 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build cluster 
mirror log daemon" >&5
 $as_echo_n "checking whether to build cluster mirror log daemon... " >&6; }
Index: LVM2.2.02.177/configure.in
===
--- LVM2.2.02.177.orig/configure.in
+++ LVM2.2.02.177/configure.in
@@ -959,7 +959,6 @@ fi
 
 

 dnl -- clvmd pidfile
-if test "$CLVMD" != none; then
AC_ARG_WITH(clvmd-pidfile,
AC_HELP_STRING([--with-clvmd-pidfile=PATH],
   [clvmd pidfile [PID_DIR/clvmd.pid]]),
@@ -967,7 +966,6 @@ if test "$CLVMD" != none; then
CLVMD_PIDFILE="$DEFAULT_PID_DIR/clvmd.pid")
AC_DEFINE_UNQUOTED(CLVMD_PIDFILE, ["$CLVMD_PIDFILE"],
   [Path to clvmd pidfile.])
-fi
 
 

 dnl -- Build cluster mirror log daemon



commit lvm2 for openSUSE:Factory

2018-02-03 Thread root
Hello community,

here is the log from the commit of package lvm2 for openSUSE:Factory checked in 
at 2018-02-03 15:37:06

Comparing /work/SRC/openSUSE:Factory/lvm2 (Old)
 and  /work/SRC/openSUSE:Factory/.lvm2.new (New)


Package is "lvm2"

Sat Feb  3 15:37:06 2018 rev:114 rq:570450 version:2.02.177

Changes:

--- /work/SRC/openSUSE:Factory/lvm2/device-mapper.changes   2018-01-16 
09:39:54.748592628 +0100
+++ /work/SRC/openSUSE:Factory/.lvm2.new/device-mapper.changes  2018-02-03 
15:37:07.644434746 +0100
@@ -1,0 +2,7 @@
+Tue Jan 16 11:53:36 UTC 2018 - z...@suse.com
+
+- clvmd: try to refresh device cache on the first failure
+  (bsc#978055, bsc#1076042)
+ + bug-978055_clvmd-try-to-refresh-device-cache-on-the-first-failu.patch 
+
+---
lvm2-clvm.changes: same change
lvm2.changes: same change

New:

  bug-978055_clvmd-try-to-refresh-device-cache-on-the-first-failu.patch



Other differences:
--
++ lvm2-clvm.spec ++
--- /var/tmp/diff_new_pack.1gPOpo/_old  2018-02-03 15:37:08.560391963 +0100
+++ /var/tmp/diff_new_pack.1gPOpo/_new  2018-02-03 15:37:08.564391776 +0100
@@ -61,6 +61,9 @@
 Patch2001:  
bug-1012973_simplify-special-case-for-md-in-69-dm-lvm-metadata.patch
 ### COMMON-PATCH-END ###
 
+# Patches for clvmd and cmirrord
+Patch3001:  
bug-978055_clvmd-try-to-refresh-device-cache-on-the-first-failu.patch
+
 %description
 A daemon for using LVM2 Logival Volumes in a clustered environment.
 
@@ -76,6 +79,8 @@
 %patch2001 -p1
 ### COMMON-PREP-END ###
 
+%patch3001 -p1
+
 %build
 extra_opts="
 --enable-applib


++ bug-978055_clvmd-try-to-refresh-device-cache-on-the-first-failu.patch 
++
>From 4f0681b1a296d88ac1dbdb26e46afed3285ad1bf Mon Sep 17 00:00:00 2001
From: Eric Ren 
Date: Tue, 23 May 2017 15:09:46 +0800
Subject: [PATCH 09/10] clvmd: try to refresh device cache on the first failure

1. The original problem
$ sudo lvchange -ay testvg/testlv
Error locking on node 1302cf30: Volume group for uuid not found:
qBKu65bSxfRq7gUf91NZuH4epLza4ifDieQJFd2to2WruVi5Brn7DxxsEgi5Zodw

2. This problem can be easily replicated
a. Make clvmd running in cluster environment;
b. Assume you have created LV "testlv" in local VG 'testvg' on
   a MD device 'md0';
c. Make sure 'md0' is stopped, and not in the device cache by
   executing 'clvmd -R' or 'pvscan';
d. Assemble 'md0' by issuing 'mdadm --assemble --scan --name md0';
e. To activate 'testlv', you will see the 'Error locking' problem.

3. Analysis
a. After step 2.d, 'pvscan --cache ...' is triggered by udev rules,
   notifying 'md0' is ready. But, pvscan exits very early because
   lvmetad is not being used, thus doesn't go through the lock manager.
   Therefore, clvmd isn't aware of this udev events. The device cache
   hasn't 'md0'.

b. In step 2.e, the client, 'lvchange -ay testvg/testlv' cmd, can find
   'testlv' correctly in the client metadata, because the device list
   is gathered by call chain:
   
lvm_run_command()->init_filters()->persistent_filter_load()->dev_cache_scan().
   Then, it asks clvmd for "Locking VG V_testvg CR", which just drops
   the metadata in clmvd by call chain: do_lock_vg()->lvmcache_drop_metadata(),
   but the device cache is *not* refreshed.

c. Finally, clvmd fails to find the lvid in activation path:
do_lock_lv()->do_activate_lv()->lv_info_by_lvid()

Apparently, the metadata DB is not complete without a complete device
cache in clvmd. However, upstream say the pvscan tool intends to be
only used with lvmetad, suggesting me not hacking there. So, we'd
better fix this issue within clvmd code.

Sometimes, the device cache in clvmd could be out of date.
"clvmd -R" is invented for this issue. However, to run
"clvmd -R" manually is not convenient, because it's hard
to predict when device change would happen.

This patch gives another try after refreshing the device
cache. In normal, it doesn't cause any side-effect. In
case of the issue above, it's worth a retry.

Signed-off-by: Eric Ren 
---
 daemons/clvmd/lvm-functions.c | 11 ++-
 1 file changed, 10 insertions(+), 1 deletion(-)

diff --git a/daemons/clvmd/lvm-functions.c b/daemons/clvmd/lvm-functions.c
index 2446fd1..dcd3f9b 100644
--- a/daemons/clvmd/lvm-functions.c
+++ b/daemons/clvmd/lvm-functions.c
@@ -509,11 +509,14 @@ const char *do_lock_query(char *resource)
 int do_lock_lv(unsigned char command, unsigned char lock_flags, char *resource)
 {
int status = 0;
+   int do_refresh = 0;
 
DEBUGLOG("do_lock_lv: resource '%s', cmd = %s, flags = %s, 
critical_section = %d\n",
 resource, decode_locking_cmd(command), 
decode_flags(lock_flags), critical_section());
 
-   if 

commit lvm2 for openSUSE:Factory

2018-01-16 Thread root
Hello community,

here is the log from the commit of package lvm2 for openSUSE:Factory checked in 
at 2018-01-16 09:39:53

Comparing /work/SRC/openSUSE:Factory/lvm2 (Old)
 and  /work/SRC/openSUSE:Factory/.lvm2.new (New)


Package is "lvm2"

Tue Jan 16 09:39:53 2018 rev:113 rq:563495 version:2.02.177

Changes:

--- /work/SRC/openSUSE:Factory/lvm2/device-mapper.changes   2017-12-21 
11:26:56.522575199 +0100
+++ /work/SRC/openSUSE:Factory/.lvm2.new/device-mapper.changes  2018-01-16 
09:39:54.748592628 +0100
@@ -1,0 +2,6 @@
+Wed Jan 10 10:41:45 UTC 2018 - z...@suse.com
+
+- lvmlockd: add lockopt values for skipping selected locks (fate#323203) 
+ + fate-323203_lvmlockd-add-lockopt-values-for-skipping-selected-lo.patch
+
+---
lvm2-clvm.changes: same change
lvm2.changes: same change

New:

  fate-323203_lvmlockd-add-lockopt-values-for-skipping-selected-lo.patch



Other differences:
--
++ device-mapper.spec ++
--- /var/tmp/diff_new_pack.9ApLtl/_old  2018-01-16 09:39:56.064531031 +0100
+++ /var/tmp/diff_new_pack.9ApLtl/_new  2018-01-16 09:39:56.068530844 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package device-mapper
 #
-# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -47,6 +47,7 @@
 %{?systemd_requires}
 ### COMMON-PATCH-BEGIN ###
 # Upstream patches
+Patch0001:  
fate-323203_lvmlockd-add-lockopt-values-for-skipping-selected-lo.patch
 
 # SUSE patches: 1000+ for LVM
 # Never upstream
@@ -66,6 +67,7 @@
 %setup -q -n LVM2.%{lvm2_version}
 ### COMMON-PREP-BEGIN ###
 %patch1001 -p1
+%patch0001 -p1
 %patch1002 -p1
 %patch1003 -p1
 %patch1004 -p1

++ lvm2-clvm.spec ++
--- /var/tmp/diff_new_pack.9ApLtl/_old  2018-01-16 09:39:56.096529534 +0100
+++ /var/tmp/diff_new_pack.9ApLtl/_new  2018-01-16 09:39:56.100529346 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package lvm2-clvm
 #
-# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -48,6 +48,7 @@
 Provides:   cmirrord = %{version}
 ### COMMON-PATCH-BEGIN ###
 # Upstream patches
+Patch0001:  
fate-323203_lvmlockd-add-lockopt-values-for-skipping-selected-lo.patch
 
 # SUSE patches: 1000+ for LVM
 # Never upstream
@@ -68,6 +69,7 @@
 
 ### COMMON-PREP-BEGIN ###
 %patch1001 -p1
+%patch0001 -p1
 %patch1002 -p1
 %patch1003 -p1
 %patch1004 -p1

++ lvm2.spec ++
--- /var/tmp/diff_new_pack.9ApLtl/_old  2018-01-16 09:39:56.136527661 +0100
+++ /var/tmp/diff_new_pack.9ApLtl/_new  2018-01-16 09:39:56.136527661 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package lvm2
 #
-# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -58,6 +58,7 @@
 
 ### COMMON-PATCH-BEGIN ###
 # Upstream patches
+Patch0001:  
fate-323203_lvmlockd-add-lockopt-values-for-skipping-selected-lo.patch
 
 # SUSE patches: 1000+ for LVM
 # Never upstream
@@ -86,6 +87,7 @@
 %setup -q -n LVM2.%{version}
 ### COMMON-PREP-BEGIN ###
 %patch1001 -p1
+%patch0001 -p1
 %patch1002 -p1
 %patch1003 -p1
 %patch1004 -p1


++ fate-323203_lvmlockd-add-lockopt-values-for-skipping-selected-lo.patch 
++
>From 46cedb105bb7fdba0107794ca5801c2a0e8fd524 Mon Sep 17 00:00:00 2001
From: David Teigland 
Date: Tue, 9 Jan 2018 11:18:57 -0600
Subject: [PATCH 1/2] lvmlockd: add lockopt values for skipping selected locks

and add lockopt to common options.
---
 tools/command-lines.in |  9 -
 tools/lvmcmdline.c | 10 ++
 2 files changed, 14 insertions(+), 5 deletions(-)

diff --git a/tools/command-lines.in b/tools/command-lines.in
index d0e5e060c..a1776ce8a 100644
--- a/tools/command-lines.in
+++ b/tools/command-lines.in
@@ -187,7 +187,7 @@
 # OO_ALL is included in every command automatically.
 #
 OO_ALL: --commandprofile String, --config String, --debug,
---driverloaded Bool, --help, --longhelp, --profile String, --quiet,
+--driverloaded Bool, --help, --lockopt String, --longhelp, --profile String, 
--quiet,
 --verbose, --version, --yes, --test
 
 #
@@ -1524,19 +1524,18 @@ ID: vgchange_systemid
 DESC: Change the system ID of a VG.
 
 vgchange --lockstart
-OO: --lockopt String, --select String
+OO: --select 

commit lvm2 for openSUSE:Factory

2017-12-21 Thread root
Hello community,

here is the log from the commit of package lvm2 for openSUSE:Factory checked in 
at 2017-12-21 11:26:51

Comparing /work/SRC/openSUSE:Factory/lvm2 (Old)
 and  /work/SRC/openSUSE:Factory/.lvm2.new (New)


Package is "lvm2"

Thu Dec 21 11:26:51 2017 rev:112 rq:558349 version:2.02.177

Changes:

--- /work/SRC/openSUSE:Factory/lvm2/device-mapper.changes   2017-11-30 
12:41:54.193527637 +0100
+++ /work/SRC/openSUSE:Factory/.lvm2.new/device-mapper.changes  2017-12-21 
11:26:56.522575199 +0100
@@ -1,0 +2,38 @@
+Tue Dec 19 07:35:11 UTC 2017 - z...@suse.com
+
+- device-mapper.spec: fix wrong replacement of DM_VERSION (bsc#1072524) 
+- Fixes failure of some testcases caused by nc behavior change (bsc#1072624)
+ + bug-1072624_test-lvmetad_dump-always-timed-out-when-using-nc.patch
+- Refreshed fate-31841_fsadm-add-support-for-btrfs.patch
+- Update to LVM2.2.02.177
+  When writing text metadata content, use complete 4096 byte blocks.
+  Change text format metadata alignment from 512 to 4096 bytes.
+  When writing metadata, consistently skip mdas marked as failed.
+  Refactor and adjust text format metadata alignment calculation.
+  Ensure _node_send_message always uses clean status of thin pool.
+  Fix lvmlockd to use pool lock when accessing _tmeta volume.
+  Report expected sanlock_convert errors only when retries fail.
+  Avoid blocking in sanlock_convert on SH to EX lock conversion.
+  Deactivate missing raid LV legs (_rimage_X-missing_Y_Z) on decativation.
+  Categorise I/O with reason annotations in debug messages.
+  Allow extending of raid LVs created with --nosync after a failed repair.
+  Command will lock memory only when suspending volumes.
+  Merge segments when pvmove is finished.
+  Activation code for pvmove automatically discovers holding LVs for resume.
+  Make a pvmove LV locking holder.
+  Do not change critical section counter on resume path without real resume.
+  Enhance activation code to automatically suspend pvmove participants.
+  Prevent conversion of thin volumes to snapshot origin when lvmlockd is used.
+  Add support for pvmove of cache and snapshot origins.
+  Avoid using precommitted metadata for suspending pvmove tree.
+  Deactivate activated LVs on error path when pvmove activation fails.
+  Add "io" to log/debug_classes for logging low-level I/O.
+  Avoid importing persistent filter in vgscan/pvscan/vgrename.
+  Fix memleak of string buffer when vgcfgbackup runs in secure mode.
+  Do not print error when clvmd cannot find running clvmd.
+  Prevent start of new merge of snapshot if origin is already being merged.
+  Fix offered type for raid6_n_6 to raid5 conversion (raid5_n).
+  Deactivate sub LVs when removing unused cache-pool.
+  Do not take backup with suspended devices.
+
+---
lvm2-clvm.changes: same change
lvm2.changes: same change

Old:

  LVM2.2.02.176.tgz
  LVM2.2.02.176.tgz.asc

New:

  LVM2.2.02.177.tgz
  LVM2.2.02.177.tgz.asc
  bug-1072624_test-lvmetad_dump-always-timed-out-when-using-nc.patch



Other differences:
--
++ device-mapper.spec ++
--- /var/tmp/diff_new_pack.CGYdBH/_old  2017-12-21 11:26:57.498527613 +0100
+++ /var/tmp/diff_new_pack.CGYdBH/_new  2017-12-21 11:26:57.502527417 +0100
@@ -19,8 +19,8 @@
 %define libname libdevmapper1_03
 %define libname_event libdevmapper-event1_03
 ### COMMON-DEF-BEGIN ###
-%define lvm2_version  2.02.176
-%define device_mapper_version 1.02.145
+%define lvm2_version  2.02.177
+%define device_mapper_version 1.02.146
 %define thin_provisioning_version 0.7.0
 ### COMMON-DEF-END ###
 Name:   device-mapper
@@ -51,15 +51,11 @@
 # SUSE patches: 1000+ for LVM
 # Never upstream
 Patch1001:  cmirrord_remove_date_time_from_compilation.patch
-#fate#309425
 Patch1002:  fate-309425_display-dm-name-for-lv-name.patch
-#FATE#318413
 Patch1003:  fate-31841_fsadm-add-support-for-btrfs.patch
-#bsc#935623
 Patch1004:  bug-935623_dmeventd-fix-dso-name-wrong-compare.patch
 
 #SUSE patches 2000+ for device mapper, udev rules
-#bsc#1012973
 Patch2001:  
bug-1012973_simplify-special-case-for-md-in-69-dm-lvm-metadata.patch
 ### COMMON-PATCH-END ###
 
@@ -82,7 +78,7 @@
 ### COMMON-CONFIG-BEGIN ###
 export PATH=$PATH:/sbin:%{_prefix}/sbin
 # Why this messy fix here? someone released a wrong version...
-sed -ie "s/1.02.*/1.03.01/g" VERSION_DM
+sed -ie "s/%{device_mapper_version}/1.03.01/g" VERSION_DM
 %configure \
 --enable-dmeventd \
 --enable-cmdlib \

++ lvm2-clvm.spec ++
--- /var/tmp/diff_new_pack.CGYdBH/_old  2017-12-21 11:26:57.526526247 +0100
+++ /var/tmp/diff_new_pack.CGYdBH/_new  2017-12-21 11:26:57.530526052 +0100
@@ -19,8 +19,8 @@
 

commit lvm2 for openSUSE:Factory

2017-11-30 Thread root
Hello community,

here is the log from the commit of package lvm2 for openSUSE:Factory checked in 
at 2017-11-30 12:41:52

Comparing /work/SRC/openSUSE:Factory/lvm2 (Old)
 and  /work/SRC/openSUSE:Factory/.lvm2.new (New)


Package is "lvm2"

Thu Nov 30 12:41:52 2017 rev:111 rq:545433 version:2.02.176

Changes:

--- /work/SRC/openSUSE:Factory/lvm2/device-mapper.changes   2017-11-09 
13:40:44.792447910 +0100
+++ /work/SRC/openSUSE:Factory/.lvm2.new/device-mapper.changes  2017-11-30 
12:41:54.193527637 +0100
@@ -1,0 +2,31 @@
+Tue Nov 21 09:29:02 UTC 2017 - z...@suse.com
+
+- Update to LVM2.2.02.176:
+  Keep Install section only in lvm2-{lvmetad,lvmpolld}.socket systemd unit.
+  Fix segfault in lvm_pv_remove in liblvm. (2.02.173)
+  Do not allow storing VG metadata with LV without any segment.
+  Fix printed message when thin snapshot was already merged.
+  Remove created spare LV when creation of thin-pool failed.
+  Avoid reading ignored metadata when mda gets used again.
+  Fix detection of moved PVs in vgsplit. (2.02.175)
+  Ignore --stripes/--stripesize on RAID takeover
+  Improve used paths for generated systemd units and init shells.
+  Disallow creation of snapshot of mirror/raid subLV (was never supported).
+  Fix regression in more advanced vgname extraction in lvconvert (2.02.169).
+  Allow lvcreate to be used for caching of _tdata LV.
+  Avoid internal error when resizing cache type _tdata LV (not yet supported).
+  Show original converted names when lvconverting LV to pool volume.
+  Move lib code used only by liblvm into metadata-liblvm.c.
+  Distinguish between device not found and excluded by filter.
+  Monitor external origin LVs. 
+  Remove the replicator code, including configure --with-replicators.
+  Allow lvcreate --type mirror to work with 100%FREE.
+  Improve selection of resource name for complex volume activation lock.
+  Avoid cutting first character of resource name for activation lock.
+  Support for encrypted devices in fsadm.
+  Improve thin pool overprovisioning and repair warning messages.
+  Fix incorrect adjustment of region size on striped RaidLVs.
+- Drop: bug-960044_lvm2-lvmetad.service-add-Also-lvm2-lvmetad.socket.patch
+- Refresh: fate-31841_fsadm-add-support-for-btrfs.patch
+
+---
lvm2-clvm.changes: same change
lvm2.changes: same change

Old:

  LVM2.2.02.175.tgz
  LVM2.2.02.175.tgz.asc
  bug-960044_lvm2-lvmetad.service-add-Also-lvm2-lvmetad.socket.patch

New:

  LVM2.2.02.176.tgz
  LVM2.2.02.176.tgz.asc



Other differences:
--
++ device-mapper.spec ++
--- /var/tmp/diff_new_pack.DDtl3X/_old  2017-11-30 12:41:55.001498261 +0100
+++ /var/tmp/diff_new_pack.DDtl3X/_new  2017-11-30 12:41:55.005498116 +0100
@@ -19,8 +19,8 @@
 %define libname libdevmapper1_03
 %define libname_event libdevmapper-event1_03
 ### COMMON-DEF-BEGIN ###
-%define lvm2_version  2.02.175
-%define device_mapper_version 1.02.144
+%define lvm2_version  2.02.176
+%define device_mapper_version 1.02.145
 %define thin_provisioning_version 0.7.0
 ### COMMON-DEF-END ###
 Name:   device-mapper
@@ -57,12 +57,10 @@
 Patch1003:  fate-31841_fsadm-add-support-for-btrfs.patch
 #bsc#935623
 Patch1004:  bug-935623_dmeventd-fix-dso-name-wrong-compare.patch
-#bsc#960044
-Patch1005:  
bug-960044_lvm2-lvmetad.service-add-Also-lvm2-lvmetad.socket.patch
 
 #SUSE patches 2000+ for device mapper, udev rules
 #bsc#1012973
-Patch2006:  
bug-1012973_simplify-special-case-for-md-in-69-dm-lvm-metadata.patch
+Patch2001:  
bug-1012973_simplify-special-case-for-md-in-69-dm-lvm-metadata.patch
 ### COMMON-PATCH-END ###
 
 %description
@@ -75,8 +73,7 @@
 %patch1002 -p1
 %patch1003 -p1
 %patch1004 -p1
-%patch1005 -p1
-%patch2006 -p1
+%patch2001 -p1
 ### COMMON-PREP-END ###
 
 %build

++ lvm2-clvm.spec ++
--- /var/tmp/diff_new_pack.DDtl3X/_old  2017-11-30 12:41:55.045496661 +0100
+++ /var/tmp/diff_new_pack.DDtl3X/_new  2017-11-30 12:41:55.049496516 +0100
@@ -19,8 +19,8 @@
 %define dlm_version 3.99.1
 %define sanlock_version 3.3.0
 ### COMMON-DEF-BEGIN ###
-%define lvm2_version  2.02.175
-%define device_mapper_version 1.02.144
+%define lvm2_version  2.02.176
+%define device_mapper_version 1.02.145
 %define thin_provisioning_version 0.7.0
 ### COMMON-DEF-END ###
 Name:   lvm2-clvm
@@ -58,12 +58,10 @@
 Patch1003:  fate-31841_fsadm-add-support-for-btrfs.patch
 #bsc#935623
 Patch1004:  bug-935623_dmeventd-fix-dso-name-wrong-compare.patch
-#bsc#960044
-Patch1005:  
bug-960044_lvm2-lvmetad.service-add-Also-lvm2-lvmetad.socket.patch
 
 #SUSE patches 2000+ for device mapper, udev rules
 #bsc#1012973

commit lvm2 for openSUSE:Factory

2017-11-09 Thread root
Hello community,

here is the log from the commit of package lvm2 for openSUSE:Factory checked in 
at 2017-11-09 13:40:40

Comparing /work/SRC/openSUSE:Factory/lvm2 (Old)
 and  /work/SRC/openSUSE:Factory/.lvm2.new (New)


Package is "lvm2"

Thu Nov  9 13:40:40 2017 rev:110 rq:538355 version:2.02.175

Changes:

--- /work/SRC/openSUSE:Factory/lvm2/device-mapper.changes   2017-10-26 
18:40:20.735258400 +0200
+++ /work/SRC/openSUSE:Factory/.lvm2.new/device-mapper.changes  2017-11-09 
13:40:44.792447910 +0100
@@ -1,0 +2,5 @@
+Thu Nov  2 12:48:23 UTC 2017 - z...@suse.com
+
+- Re-add a strict requires on sanlock, fate#323203 
+
+---
lvm2-clvm.changes: same change
lvm2.changes: same change



Other differences:
--
++ lvm2-clvm.spec ++
--- /var/tmp/diff_new_pack.MfjklH/_old  2017-11-09 13:40:46.908370562 +0100
+++ /var/tmp/diff_new_pack.MfjklH/_new  2017-11-09 13:40:46.916370269 +0100
@@ -191,8 +191,8 @@
 Summary:LVM locking daemon
 Group:  Productivity/Clustering/HA
 Recommends: libdlm >= %{dlm_version}
-Recommends: libsanlock1 >= %{sanlock_version}
 Requires:   lvm2 = %{version}
+Requires:   sanlock >= %{sanlock_version}
 %{?systemd_requires}
 
 %description -n lvm2-lockd





commit lvm2 for openSUSE:Factory

2017-10-26 Thread root
Hello community,

here is the log from the commit of package lvm2 for openSUSE:Factory checked in 
at 2017-10-26 18:40:14

Comparing /work/SRC/openSUSE:Factory/lvm2 (Old)
 and  /work/SRC/openSUSE:Factory/.lvm2.new (New)


Package is "lvm2"

Thu Oct 26 18:40:14 2017 rev:109 rq:535964 version:2.02.175

Changes:

--- /work/SRC/openSUSE:Factory/lvm2/device-mapper.changes   2017-09-09 
20:23:06.807024920 +0200
+++ /work/SRC/openSUSE:Factory/.lvm2.new/device-mapper.changes  2017-10-26 
18:40:20.735258400 +0200
@@ -1,0 +2,27 @@
+Mon Oct 23 07:50:33 UTC 2017 - z...@suse.com
+
+- Update to LVM2.2.02.175
+- Use week dependency for lvm2-lockd on libdlm and sanlock
+- Rename/refresh patches:
+ - display-dm-name-for-lv-name.diff to 
fate-309425_display-dm-name-for-lv-name.patch
+ - fsadm-add-support-for-btrfs.patch to 
fate-31841_fsadm-add-support-for-btrfs.patch
+ - dmeventd-fix-dso-name-wrong-compare.patch to 
bug-935623_dmeventd-fix-dso-name-wrong-compare.patch
+ - lvm2-lvmetad.service-add-Also-lvm2-lvmetad.socket.patch to 
bug-960044_lvm2-lvmetad.service-add-Also-lvm2-lvmetad.socket.patch
+ - simplify-special-case-for-md-in-69-dm-lvm-metadata.patch to 
bug-1012973_simplify-special-case-for-md-in-69-dm-lvm-metadata.patch
+ - lvm2-testsuite.patch to bug-950089_test-fix-lvm2-testsuite-build-error.patch
+
+---
+Thu Sep 14 09:51:18 UTC 2017 - z...@suse.com
+
+- Drop resource agents for clvmd and cmirror (bsc#1058680)
+  - clvmd.ocf
+  - cmirrord.ocf
+- Drop all patches for cmirror (bsc#1058661)
+  - cluster_support_mirrord_log.diff
+  - cmirrord_improvment_performance.patch
+  - lvconvert-cluster-mirrored-disk-failed.patch
+  - improve-mirror-legs-on-different-tag-pvs.patch
+  - make-mirror-legs-on-different-tag-pvs.patch
+  - use-mirrortype-asdefault-whenclvmdrunning.patch
+
+---
lvm2-clvm.changes: same change
lvm2.changes: same change

Old:

  LVM2.2.02.173.tgz
  LVM2.2.02.173.tgz.asc
  cluster_support_mirrord_log.diff
  clvmd.ocf
  cmirrord.ocf
  cmirrord_improvment_performance.patch
  display-dm-name-for-lv-name.diff
  dmeventd-fix-dso-name-wrong-compare.patch
  fsadm-add-support-for-btrfs.patch
  improve-mirror-legs-on-different-tag-pvs.patch
  lvconvert-cluster-mirrored-disk-failed.patch
  lvm2-lvmetad.service-add-Also-lvm2-lvmetad.socket.patch
  lvm2-testsuite.patch
  make-mirror-legs-on-different-tag-pvs.patch
  simplify-special-case-for-md-in-69-dm-lvm-metadata.patch
  use-mirrortype-asdefault-whenclvmdrunning.patch

New:

  LVM2.2.02.175.tgz
  LVM2.2.02.175.tgz.asc
  bug-1012973_simplify-special-case-for-md-in-69-dm-lvm-metadata.patch
  bug-935623_dmeventd-fix-dso-name-wrong-compare.patch
  bug-950089_test-fix-lvm2-testsuite-build-error.patch
  bug-960044_lvm2-lvmetad.service-add-Also-lvm2-lvmetad.socket.patch
  fate-309425_display-dm-name-for-lv-name.patch
  fate-31841_fsadm-add-support-for-btrfs.patch



Other differences:
--
++ device-mapper.spec ++
--- /var/tmp/diff_new_pack.VDyctT/_old  2017-10-26 18:40:28.206909793 +0200
+++ /var/tmp/diff_new_pack.VDyctT/_new  2017-10-26 18:40:28.210909606 +0200
@@ -19,8 +19,8 @@
 %define libname libdevmapper1_03
 %define libname_event libdevmapper-event1_03
 ### COMMON-DEF-BEGIN ###
-%define lvm2_version  2.02.173
-%define device_mapper_version 1.02.142
+%define lvm2_version  2.02.175
+%define device_mapper_version 1.02.144
 %define thin_provisioning_version 0.7.0
 ### COMMON-DEF-END ###
 Name:   device-mapper
@@ -52,27 +52,17 @@
 # Never upstream
 Patch1001:  cmirrord_remove_date_time_from_compilation.patch
 #fate#309425
-Patch1002:  display-dm-name-for-lv-name.diff
-#fate#312248
-Patch1003:  make-mirror-legs-on-different-tag-pvs.patch
-Patch1004:  improve-mirror-legs-on-different-tag-pvs.patch
-#fate#315092
-Patch1005:  cmirrord_improvment_performance.patch
-#fate#314367
-Patch1006:  cluster_support_mirrord_log.diff
-Patch1007:  lvconvert-cluster-mirrored-disk-failed.patch
+Patch1002:  fate-309425_display-dm-name-for-lv-name.patch
 #FATE#318413
-Patch1008:  fsadm-add-support-for-btrfs.patch
-#bnc#870824
-Patch1009:  use-mirrortype-asdefault-whenclvmdrunning.patch
+Patch1003:  fate-31841_fsadm-add-support-for-btrfs.patch
 #bsc#935623
-Patch1010:  dmeventd-fix-dso-name-wrong-compare.patch
+Patch1004:  bug-935623_dmeventd-fix-dso-name-wrong-compare.patch
 #bsc#960044
-Patch1011:  lvm2-lvmetad.service-add-Also-lvm2-lvmetad.socket.patch
+Patch1005:  
bug-960044_lvm2-lvmetad.service-add-Also-lvm2-lvmetad.socket.patch
 
 #SUSE patches 2000+ for device mapper, udev rules
 #bsc#1012973

commit lvm2 for openSUSE:Factory

2017-09-09 Thread root
Hello community,

here is the log from the commit of package lvm2 for openSUSE:Factory checked in 
at 2017-09-09 20:23:03

Comparing /work/SRC/openSUSE:Factory/lvm2 (Old)
 and  /work/SRC/openSUSE:Factory/.lvm2.new (New)


Package is "lvm2"

Sat Sep  9 20:23:03 2017 rev:108 rq:521789 version:2.02.173

Changes:

--- /work/SRC/openSUSE:Factory/lvm2/device-mapper.changes   2017-07-24 
12:31:30.469266812 +0200
+++ /work/SRC/openSUSE:Factory/.lvm2.new/device-mapper.changes  2017-09-09 
20:23:06.807024920 +0200
@@ -1,0 +2,30 @@
+Fri Aug 18 09:53:39 UTC 2017 - mwi...@suse.com
+
+- Dropped udev rule patches (bsc#1054363)
+ * dropped udev_rules-update.diff
+ * dropped device-mapper-dmsetup-export.patch
+ * dropped udev-Check-for-DM_NR_VALID_PATHS.patch
+ * dropped Import-ID_FS_XXX-variables-bnc909358.patch
+ * dropped 69-dm-lvm-metad.rules-Do-not-process-rules-for-multi.patch
+
+---
+Tue Aug  1 05:59:29 UTC 2017 - z...@suse.com
+
+- Dropped several not-upstreamed patches, some of them neither have
+  history reference nor patch header, some were temporary workaround
+  fix.
+  - device-mapper-gcc-warnings.patch
+  - device-mapper-type_punning.diff
+  - fix-closedown-before-thread-finish.patch
+  - libdm-iface-not-output-error-message-inside-retry-loop.patch
+  - pvcreate-enhance-the-error-message.patch
+  - pvmove_support_clustered_vg.diff
+  - version-plugins-in-libdir.patch
+
+---
+Tue Jul 25 13:48:00 UTC 2017 - z...@suse.com
+
+- Update to LVM2.2.02.173
+- Sync our lvm.conf with V2.02.173
+
+---
lvm2-clvm.changes: same change
lvm2.changes: same change

Old:

  69-dm-lvm-metad.rules-Do-not-process-rules-for-multi.patch
  Import-ID_FS_XXX-variables-bnc909358.patch
  LVM2.2.02.172.tgz
  LVM2.2.02.172.tgz.asc
  device-mapper-dmsetup-export.patch
  device-mapper-gcc-warnings.patch
  device-mapper-type_punning.diff
  fix-closedown-before-thread-finish.patch
  libdm-iface-not-output-error-message-inside-retry-loop.patch
  pvcreate-enhance-the-error-message.patch
  pvmove_support_clustered_vg.diff
  udev-Check-for-DM_NR_VALID_PATHS.patch
  udev_rules-update.diff
  version-plugins-in-libdir.patch

New:

  LVM2.2.02.173.tgz
  LVM2.2.02.173.tgz.asc



Other differences:
--
++ device-mapper.spec ++
--- /var/tmp/diff_new_pack.2xbVCi/_old  2017-09-09 20:23:09.046709228 +0200
+++ /var/tmp/diff_new_pack.2xbVCi/_new  2017-09-09 20:23:09.050708663 +0200
@@ -19,8 +19,8 @@
 %define libname libdevmapper1_03
 %define libname_event libdevmapper-event1_03
 ### COMMON-DEF-BEGIN ###
-%define lvm2_version  2.02.172
-%define device_mapper_version 1.02.141
+%define lvm2_version  2.02.173
+%define device_mapper_version 1.02.142
 %define thin_provisioning_version 0.7.0
 ### COMMON-DEF-END ###
 Name:   device-mapper
@@ -53,50 +53,26 @@
 Patch1001:  cmirrord_remove_date_time_from_compilation.patch
 #fate#309425
 Patch1002:  display-dm-name-for-lv-name.diff
-# no reference
-Patch1003:  device-mapper-type_punning.diff
 #fate#312248
-Patch1004:  make-mirror-legs-on-different-tag-pvs.patch
-Patch1005:  improve-mirror-legs-on-different-tag-pvs.patch
+Patch1003:  make-mirror-legs-on-different-tag-pvs.patch
+Patch1004:  improve-mirror-legs-on-different-tag-pvs.patch
 #fate#315092
-Patch1006:  cmirrord_improvment_performance.patch
+Patch1005:  cmirrord_improvment_performance.patch
 #fate#314367
-Patch1007:  cluster_support_mirrord_log.diff
-Patch1008:  lvconvert-cluster-mirrored-disk-failed.patch
-# no reference
-Patch1009:  pvmove_support_clustered_vg.diff
+Patch1006:  cluster_support_mirrord_log.diff
+Patch1007:  lvconvert-cluster-mirrored-disk-failed.patch
 #FATE#318413
-Patch1010:  fsadm-add-support-for-btrfs.patch
-#bnc#960744
-Patch1011:  pvcreate-enhance-the-error-message.patch
-#bnc873538
-Patch1012:  fix-closedown-before-thread-finish.patch
+Patch1008:  fsadm-add-support-for-btrfs.patch
 #bnc#870824
-Patch1013:  use-mirrortype-asdefault-whenclvmdrunning.patch
-# no reference
-Patch1014:  version-plugins-in-libdir.patch
+Patch1009:  use-mirrortype-asdefault-whenclvmdrunning.patch
 #bsc#935623
-Patch1015:  dmeventd-fix-dso-name-wrong-compare.patch
+Patch1010:  dmeventd-fix-dso-name-wrong-compare.patch
 #bsc#960044
-Patch1016:  lvm2-lvmetad.service-add-Also-lvm2-lvmetad.socket.patch
+Patch1011:  lvm2-lvmetad.service-add-Also-lvm2-lvmetad.socket.patch
 
 #SUSE patches 2000+ for device mapper, udev rules
-#bsc#479104,bnc#707253
-Patch2001:  

commit lvm2 for openSUSE:Factory

2017-07-24 Thread root
Hello community,

here is the log from the commit of package lvm2 for openSUSE:Factory checked in 
at 2017-07-24 12:31:27

Comparing /work/SRC/openSUSE:Factory/lvm2 (Old)
 and  /work/SRC/openSUSE:Factory/.lvm2.new (New)


Package is "lvm2"

Mon Jul 24 12:31:27 2017 rev:107 rq:511662 version:2.02.172

Changes:

--- /work/SRC/openSUSE:Factory/lvm2/device-mapper.changes   2017-07-08 
12:26:36.680366148 +0200
+++ /work/SRC/openSUSE:Factory/.lvm2.new/device-mapper.changes  2017-07-24 
12:31:30.469266812 +0200
@@ -1,0 +2,6 @@
+Thu Jul 13 13:09:35 UTC 2017 - tchva...@suse.com
+
+- Require device-mapper-devel rather than recommend. It is really
+  needed (the .h files are required by the lvm2app and lvm2cmd)
+
+---
lvm2-clvm.changes: same change
lvm2.changes: same change



Other differences:
--
lvm2-clvm.spec: same change
++ lvm2.spec ++
--- /var/tmp/diff_new_pack.Y6bzbW/_old  2017-07-24 12:31:32.504979436 +0200
+++ /var/tmp/diff_new_pack.Y6bzbW/_new  2017-07-24 12:31:32.508978872 +0200
@@ -514,8 +514,8 @@
 Group:  Development/Libraries/C and C++
 Requires:   %{applib} = %{version}
 Requires:   %{cmdlib} = %{version}
+Requires:   device-mapper-devel
 Requires:   lvm2 = %{version}
-Recommends: device-mapper-devel
 
 %description devel
 This package provides development files for the LVM2 Logical Volume Manager.





commit lvm2 for openSUSE:Factory

2017-07-08 Thread root
Hello community,

here is the log from the commit of package lvm2 for openSUSE:Factory checked in 
at 2017-07-08 12:26:34

Comparing /work/SRC/openSUSE:Factory/lvm2 (Old)
 and  /work/SRC/openSUSE:Factory/.lvm2.new (New)


Package is "lvm2"

Sat Jul  8 12:26:34 2017 rev:106 rq:508665 version:2.02.172

Changes:

--- /work/SRC/openSUSE:Factory/lvm2/device-mapper.changes   2017-07-04 
11:55:53.246536310 +0200
+++ /work/SRC/openSUSE:Factory/.lvm2.new/device-mapper.changes  2017-07-08 
12:26:36.680366148 +0200
@@ -2 +2,7 @@
-Thu Jun 29 16:38:05 UTC 2017 - dims...@opensuse.org
+Thu Jul  6 10:18:09 UTC 2017 - z...@suse.com
+
+- Don't create symlink for invisible device like thin-pool (bsc#1046591)
+  * drop 10-dm.rules-Reset-state-variable-for-spurious-events.patch
+
+---
+Tue Jul  4 10:24:40 UTC 2017 - z...@suse.com
@@ -4,6 +10,9 @@
-- Add Special migration for libdevmapper's move from /lib to
-  /usr/lib and from device-mapper.rpm to libdevmapper.rpm: the
-  library is now in %{_libdir}, but up to the point where zypp
-  removes the 'old' device-mapper package, the old library 'wins'
-  the ldloader race resulting in binaries asking for the newer
-  version still getting the old one (boo#1045396).
+- Update to LVM2.2.02.172
+- Cleanup spec file, and refresh patches
+  * removed device-mapper-link.patch
+  * removed bug-1033691_tests-missed-to-export-lvm-binary-for-fsadm.patch
+  * removed Makefile-skip-compliling-daemons-lvmlockd-directory.patch
+  * added bug-1037309_Makefile-skip-compliling-daemons-lvmlockd-directory.patch
+
+---
+Thu Jun 29 16:38:05 UTC 2017 - dims...@opensuse.org
@@ -11,12 +20 @@
-  A typical update issue seen is, zypp updating packages in this
-  order:
-  - libdevmapper1_03 (new package)
-  - libcryptsetup4 (links libdevmapper-1.03, rpm dep satisfied)
-  - systemd (linking libcryptsetup.so.4, rpm dep satisfied
-At this point, anything calling systemdctl gets libdevmapper
-from the old device-mapper package into the memory, which in
-turn is version 1.02 and does not provide all the needed
-symbols
-  - device-mapper (which removes /lib/libdevmapper.so.1.02, but is
-now too late, as various post scripts already failed on running
-systemctl)
+- Fix zypper update issue with device-mapper package, see bsc#1045396
lvm2-clvm.changes: same change
lvm2.changes: same change

Old:

  10-dm.rules-Reset-state-variable-for-spurious-events.patch
  LVM2.2.02.170.tgz
  LVM2.2.02.170.tgz.asc
  Makefile-skip-compliling-daemons-lvmlockd-directory.patch
  bug-1033691_tests-missed-to-export-lvm-binary-for-fsadm.patch
  device-mapper-link.patch

New:

  LVM2.2.02.172.tgz
  LVM2.2.02.172.tgz.asc
  bug-1037309_Makefile-skip-compliling-daemons-lvmlockd-directory.patch



Other differences:
--
++ device-mapper.spec ++
--- /var/tmp/diff_new_pack.hDNASg/_old  2017-07-08 12:26:38.176155152 +0200
+++ /var/tmp/diff_new_pack.hDNASg/_new  2017-07-08 12:26:38.180154588 +0200
@@ -19,9 +19,9 @@
 %define libname libdevmapper1_03
 %define libname_event libdevmapper-event1_03
 ### COMMON-DEF-BEGIN ###
-%define lvm2_version  2.02.170
-%define device_mapper_version 1.02.139
-%define thin_provisioning_version 0.5.6
+%define lvm2_version  2.02.172
+%define device_mapper_version 1.02.141
+%define thin_provisioning_version 0.7.0
 ### COMMON-DEF-END ###
 Name:   device-mapper
 Version:%{device_mapper_version}
@@ -47,7 +47,6 @@
 %{?systemd_requires}
 ### COMMON-PATCH-BEGIN ###
 # Upstream patches
-Patch0001:  bug-1033691_tests-missed-to-export-lvm-binary-for-fsadm.patch
 
 # SUSE patches: 1000+ for LVM
 # Never upstream
@@ -83,31 +82,21 @@
 
 #SUSE patches 2000+ for device mapper, udev rules
 #bsc#479104,bnc#707253
-Patch2000:  device-mapper-dmsetup-export.patch
-# no reference
-Patch2001:  device-mapper-gcc-warnings.patch
-#bsc#724578
-Patch2002:  device-mapper-link.patch
+Patch2001:  device-mapper-dmsetup-export.patch
 #bnc#78902,bnc#789019,bnc#789020
-Patch2003:  udev_rules-update.diff
+Patch2002:  udev_rules-update.diff
 #bnc#875233
-Patch2004:  udev-Check-for-DM_NR_VALID_PATHS.patch
+Patch2003:  udev-Check-for-DM_NR_VALID_PATHS.patch
 #bnc909358
-Patch2005:  Import-ID_FS_XXX-variables-bnc909358.patch
-#bsc#932300
-Patch2006:  10-dm.rules-Reset-state-variable-for-spurious-events.patch
+Patch2004:  Import-ID_FS_XXX-variables-bnc909358.patch
 #bsc#940298
-Patch2007:  libdm-iface-not-output-error-message-inside-retry-loop.patch
+Patch2005:  libdm-iface-not-output-error-message-inside-retry-loop.patch
 #bnc#990538,bnc#986734

commit lvm2 for openSUSE:Factory

2017-07-04 Thread root
Hello community,

here is the log from the commit of package lvm2 for openSUSE:Factory checked in 
at 2017-07-04 11:55:51

Comparing /work/SRC/openSUSE:Factory/lvm2 (Old)
 and  /work/SRC/openSUSE:Factory/.lvm2.new (New)


Package is "lvm2"

Tue Jul  4 11:55:51 2017 rev:105 rq:507522 version:2.02.170

Changes:

--- /work/SRC/openSUSE:Factory/lvm2/device-mapper.changes   2017-06-23 
09:13:49.584910975 +0200
+++ /work/SRC/openSUSE:Factory/.lvm2.new/device-mapper.changes  2017-07-04 
11:55:53.246536310 +0200
@@ -1,0 +2,23 @@
+Thu Jun 29 16:38:05 UTC 2017 - dims...@opensuse.org
+
+- Add Special migration for libdevmapper's move from /lib to
+  /usr/lib and from device-mapper.rpm to libdevmapper.rpm: the
+  library is now in %{_libdir}, but up to the point where zypp
+  removes the 'old' device-mapper package, the old library 'wins'
+  the ldloader race resulting in binaries asking for the newer
+  version still getting the old one (boo#1045396).
+
+  A typical update issue seen is, zypp updating packages in this
+  order:
+  - libdevmapper1_03 (new package)
+  - libcryptsetup4 (links libdevmapper-1.03, rpm dep satisfied)
+  - systemd (linking libcryptsetup.so.4, rpm dep satisfied
+At this point, anything calling systemdctl gets libdevmapper
+from the old device-mapper package into the memory, which in
+turn is version 1.02 and does not provide all the needed
+symbols
+  - device-mapper (which removes /lib/libdevmapper.so.1.02, but is
+now too late, as various post scripts already failed on running
+systemctl)
+
+---
lvm2-clvm.changes: same change
lvm2.changes: same change



Other differences:
--
++ device-mapper.spec ++
--- /var/tmp/diff_new_pack.wYnAPa/_old  2017-07-04 11:55:56.462083792 +0200
+++ /var/tmp/diff_new_pack.wYnAPa/_new  2017-07-04 11:55:56.462083792 +0200
@@ -250,7 +250,16 @@
 %{_libdir}/libdevmapper.so.1.03
 %{_libdir}/libdevmapper.so.1.02
 
-%post -n %{libname} -p /sbin/ldconfig
+%post   -n %{libname}
+if [ -f /%{_lib}/libdevmapper.so.1.03 ]; then
+  # Special migration - the library is now in %{_libdir}, but up to the point 
where
+  # zypp removes the 'old' device-mapper package, the old library 'wins' the 
ldloader race
+  # resulting in binaries asking for the newer version still getting the old 
one.
+  # This in turn results in funny bugs like boo#1045396
+  # Remove /%{_lib}/libdevmapper.so.1.02 - and the run ldconfig
+  rm /%{_lib}/libdevmapper.so.1.03
+fi
+ /sbin/ldconfig
 %postun -n %{libname} -p /sbin/ldconfig
 
 %package -n %{libname_event}

lvm2.spec: same change




commit lvm2 for openSUSE:Factory

2017-06-23 Thread root
Hello community,

here is the log from the commit of package lvm2 for openSUSE:Factory checked in 
at 2017-06-23 09:13:47

Comparing /work/SRC/openSUSE:Factory/lvm2 (Old)
 and  /work/SRC/openSUSE:Factory/.lvm2.new (New)


Package is "lvm2"

Fri Jun 23 09:13:47 2017 rev:104 rq:504391 version:2.02.170

Changes:

--- /work/SRC/openSUSE:Factory/lvm2/device-mapper.changes   2017-05-20 
14:29:52.311929130 +0200
+++ /work/SRC/openSUSE:Factory/.lvm2.new/device-mapper.changes  2017-06-23 
09:13:49.584910975 +0200
@@ -1,0 +2,18 @@
+Sat Jun 17 16:50:53 UTC 2017 - z...@suse.com
+
+- Backport fix for lvresize-full.sh failed, see bsc#1033691 
+  + bug-1033691_tests-missed-to-export-lvm-binary-for-fsadm.patch
+
+---
+Sat Jun 17 14:56:58 UTC 2017 - z...@suse.com
+
+- Fix test failures about read ahead issue, see bsc#1043040 
+  + bug-1043040_test-fix-read-ahead-issues-in-test-scripts.patch
+- Reorder the patches to put them into the right groups
+
+---
+Fri Jun  9 19:27:45 UTC 2017 - ku...@suse.com
+
+- Don't package dynamic directories in /run
+
+---
lvm2-clvm.changes: same change
lvm2.changes: same change

New:

  bug-1033691_tests-missed-to-export-lvm-binary-for-fsadm.patch
  bug-1043040_test-fix-read-ahead-issues-in-test-scripts.patch



Other differences:
--
++ device-mapper.spec ++
--- /var/tmp/diff_new_pack.iLKjhd/_old  2017-06-23 09:13:51.224679287 +0200
+++ /var/tmp/diff_new_pack.iLKjhd/_new  2017-06-23 09:13:51.224679287 +0200
@@ -47,7 +47,9 @@
 %{?systemd_requires}
 ### COMMON-PATCH-BEGIN ###
 # Upstream patches
-# SUSE patches: 1000+ for LVM, 2000+ for device mapper
+Patch0001:  bug-1033691_tests-missed-to-export-lvm-binary-for-fsadm.patch
+
+# SUSE patches: 1000+ for LVM
 # Never upstream
 Patch1001:  cmirrord_remove_date_time_from_compilation.patch
 #fate#309425
@@ -64,16 +66,22 @@
 Patch1008:  lvconvert-cluster-mirrored-disk-failed.patch
 # no reference
 Patch1009:  pvmove_support_clustered_vg.diff
+#FATE#318413
+Patch1010:  fsadm-add-support-for-btrfs.patch
+#bnc#960744
+Patch1011:  pvcreate-enhance-the-error-message.patch
 #bnc873538
-Patch1010:  fix-closedown-before-thread-finish.patch
+Patch1012:  fix-closedown-before-thread-finish.patch
 #bnc#870824
-Patch1011:  use-mirrortype-asdefault-whenclvmdrunning.patch
+Patch1013:  use-mirrortype-asdefault-whenclvmdrunning.patch
 # no reference
-Patch1012:  version-plugins-in-libdir.patch
+Patch1014:  version-plugins-in-libdir.patch
 #bsc#935623
-Patch1013:  dmeventd-fix-dso-name-wrong-compare.patch
+Patch1015:  dmeventd-fix-dso-name-wrong-compare.patch
 #bsc#960044
-Patch1014:  lvm2-lvmetad.service-add-Also-lvm2-lvmetad.socket.patch
+Patch1016:  lvm2-lvmetad.service-add-Also-lvm2-lvmetad.socket.patch
+
+#SUSE patches 2000+ for device mapper, udev rules
 #bsc#479104,bnc#707253
 Patch2000:  device-mapper-dmsetup-export.patch
 # no reference
@@ -84,22 +92,22 @@
 Patch2003:  udev_rules-update.diff
 #bnc#875233
 Patch2004:  udev-Check-for-DM_NR_VALID_PATHS.patch
-#FATE#318413
-Patch2005:  fsadm-add-support-for-btrfs.patch
 #bnc909358
-Patch2006:  Import-ID_FS_XXX-variables-bnc909358.patch
+Patch2005:  Import-ID_FS_XXX-variables-bnc909358.patch
 #bsc#932300
-Patch2007:  10-dm.rules-Reset-state-variable-for-spurious-events.patch
+Patch2006:  10-dm.rules-Reset-state-variable-for-spurious-events.patch
 #bsc#940298
-Patch2008:  libdm-iface-not-output-error-message-inside-retry-loop.patch
-#bnc#960744
-Patch2009:  pvcreate-enhance-the-error-message.patch
+Patch2007:  libdm-iface-not-output-error-message-inside-retry-loop.patch
 #bnc#990538,bnc#986734
-Patch2010:  69-dm-lvm-metad.rules-Do-not-process-rules-for-multi.patch
-#bnc#950089
-Patch2011:  lvm2-testsuite.patch
+Patch2008:  69-dm-lvm-metad.rules-Do-not-process-rules-for-multi.patch
 #bsc#1012973
-Patch2012:  simplify-special-case-for-md-in-69-dm-lvm-metadata.patch
+Patch2009:  simplify-special-case-for-md-in-69-dm-lvm-metadata.patch
+
+# 3000+ for test code
+#bnc#950089
+Patch3001:  lvm2-testsuite.patch
+#bsc#1043040
+Patch3002:  bug-1043040_test-fix-read-ahead-issues-in-test-scripts.patch
 ### COMMON-PATCH-END ###
 
 %description
@@ -108,6 +116,7 @@
 %prep
 %setup -q -n LVM2.%{lvm2_version}
 ### COMMON-PREP-BEGIN ###
+%patch0001 -p1
 %patch1001 -p1
 %patch1002 -p1
 %patch1003 -p1
@@ -122,6 +131,8 @@
 %patch1012 -p1
 %patch1013 -p1
 %patch1014 -p1
+%patch1015 -p1
+%patch1016 -p1
 %patch2000 -p1
 %patch2001 -p1
 %patch2002 -p1
@@ -132,9 

commit lvm2 for openSUSE:Factory

2017-05-20 Thread root
Hello community,

here is the log from the commit of package lvm2 for openSUSE:Factory checked in 
at 2017-05-20 14:29:44

Comparing /work/SRC/openSUSE:Factory/lvm2 (Old)
 and  /work/SRC/openSUSE:Factory/.lvm2.new (New)


Package is "lvm2"

Sat May 20 14:29:44 2017 rev:103 rq:495532 version:2.02.170

Changes:

--- /work/SRC/openSUSE:Factory/lvm2/device-mapper.changes   2017-05-10 
20:32:57.787460096 +0200
+++ /work/SRC/openSUSE:Factory/.lvm2.new/device-mapper.changes  2017-05-20 
14:29:52.311929130 +0200
@@ -1,0 +2,17 @@
+Wed May 17 08:21:27 UTC 2017 - z...@suse.com
+
+- Add lvmlockd-related configuration items in lvm.conf, fate#323203
+
+---
+Tue May 16 07:45:25 UTC 2017 - z...@suse.com
+
+- Fix compiling issue of lvmlockd, bsc#1037309
+  + Makefile-skip-compliling-daemons-lvmlockd-directory.patch
+
+---
+Fri May  5 11:33:28 UTC 2017 - tchva...@suse.com
+
+- Remove comments breaking scriptlets:
+  * warning: %postun(libdevmapper1_03-1.02.137-5.1.x86_64) scriptlet failed
+
+---
lvm2-clvm.changes: same change
lvm2.changes: same change

New:

  Makefile-skip-compliling-daemons-lvmlockd-directory.patch



Other differences:
--
++ device-mapper.spec ++
--- /var/tmp/diff_new_pack.ThZ9lT/_old  2017-05-20 14:29:56.443344608 +0200
+++ /var/tmp/diff_new_pack.ThZ9lT/_new  2017-05-20 14:29:56.447344042 +0200
@@ -227,10 +227,6 @@
 %{_sbindir}/rcdm-event
 %{_unitdir}/dm-event.service
 
-##
-# Library for device-mapper
-##
-
 %package -n %{libname}
 Summary:Library for device-mapper
 Group:  System/Libraries
@@ -247,10 +243,6 @@
 %post -n %{libname} -p /sbin/ldconfig
 %postun -n %{libname} -p /sbin/ldconfig
 
-##
-# Event library for device-mapper
-##
-
 %package -n %{libname_event}
 Summary:Event library for device-mapper
 Group:  System/Libraries
@@ -267,10 +259,6 @@
 %post -n %{libname_event} -p /sbin/ldconfig
 %postun -n %{libname_event} -p /sbin/ldconfig
 
-##
-# Development package for the device mapper
-##
-
 %package devel
 Summary:Development package for the device mapper
 Group:  Development/Libraries/C and C++

++ lvm2-clvm.spec ++
--- /var/tmp/diff_new_pack.ThZ9lT/_old  2017-05-20 14:29:56.479339515 +0200
+++ /var/tmp/diff_new_pack.ThZ9lT/_new  2017-05-20 14:29:56.479339515 +0200
@@ -236,10 +236,6 @@
 %{_libexecdir}/systemd/lvm2-cluster-activation
 %{_mandir}/man8/clvmd.8%{ext_man}
 
-##
-# Clustered RAID 1 support using device-mapper and corosync
-##
-
 %package -n lvm2-cmirrord
 Summary:Clustered RAID 1 support using device-mapper and corosync
 Group:  Productivity/Clustering/HA
@@ -259,10 +255,6 @@
 %{_sbindir}/rclvm2-cmirrord
 %{_mandir}/man8/cmirrord.8%{ext_man}
 
-##
-# LVM locking daemon
-##
-
 %package -n lvm2-lockd
 Summary:LVM locking daemon
 Group:  Productivity/Clustering/HA

++ lvm2.spec ++
--- /var/tmp/diff_new_pack.ThZ9lT/_old  2017-05-20 14:29:56.503336120 +0200
+++ /var/tmp/diff_new_pack.ThZ9lT/_new  2017-05-20 14:29:56.50733 +0200
@@ -110,6 +110,9 @@
 Patch2012:  simplify-special-case-for-md-in-69-dm-lvm-metadata.patch
 ### COMMON-PATCH-END ###
 
+#bsc#1037309
+Patch2013:  Makefile-skip-compliling-daemons-lvmlockd-directory.patch
+
 %description
 Programs and man pages for configuring and using the LVM2 Logical
 Volume Manager.
@@ -146,6 +149,8 @@
 %patch2012 -p1
 ### COMMON-PREP-END ###
 
+%patch2013 -p1
+
 %build
 extra_opts="
 --enable-applib
@@ -232,6 +237,11 @@
 rm %{buildroot}%{_libdir}/libdevmapper-event.so
 rm %{buildroot}%{_includedir}/libdevmapper*.h
 rm %{buildroot}%{_libdir}/pkgconfig/devmapper*.pc
+# See bsc#1037309 for more info
+rm %{buildroot}%{_unitdir}/lvm2-lvmlockd.service
+rm %{buildroot}%{_unitdir}/lvm2-lvmlocking.service
+rm %{buildroot}%{_mandir}/man8/lvmlockctl.8
+rm 

commit lvm2 for openSUSE:Factory

2017-05-10 Thread root
Hello community,

here is the log from the commit of package lvm2 for openSUSE:Factory checked in 
at 2017-05-10 20:32:55

Comparing /work/SRC/openSUSE:Factory/lvm2 (Old)
 and  /work/SRC/openSUSE:Factory/.lvm2.new (New)


Package is "lvm2"

Wed May 10 20:32:55 2017 rev:102 rq:492764 version:2.02.170

Changes:

--- /work/SRC/openSUSE:Factory/lvm2/device-mapper.changes   2017-04-25 
08:55:32.521539971 +0200
+++ /work/SRC/openSUSE:Factory/.lvm2.new/device-mapper.changes  2017-05-10 
20:32:57.787460096 +0200
@@ -1,0 +2,23 @@
+Wed May  3 09:01:42 UTC 2017 - z...@suse.com
+
+- This patch has been dropped since SLE12 (bsc#952300)
+  * removed sys_mount_instead_linux_fs.diff
+- Drop obsolete patches:
+  * removed improve_probing.diff (bsc#49657)
+  * removed no-inc-audit.diff 
+  * removed suppress_format1_size_warning.diff
+- Add more bug/fate references, and reorder the patches accordingly
+
+---
+Tue Apr 25 12:00:23 UTC 2017 - z...@suse.com
+
+- Add check_pv_device_sizes option to check PV and disk sizes
+  bsc#999878
+
+---
+Mon Apr 24 17:08:34 UTC 2017 - arvidj...@gmail.com
+
+- BuildRequire modutils so build script detects modprobe and module
+  autoloading works again (boo#983221)
+
+---
lvm2-clvm.changes: same change
lvm2.changes: same change

Old:

  improve_probing.diff
  no-inc-audit.diff
  suppress_format1_size_warning.diff
  sys_mount_instead_linux_fs.diff



Other differences:
--
++ device-mapper.spec ++
--- /var/tmp/diff_new_pack.zt5kXl/_old  2017-05-10 20:32:59.491219722 +0200
+++ /var/tmp/diff_new_pack.zt5kXl/_new  2017-05-10 20:32:59.511216900 +0200
@@ -48,37 +48,37 @@
 ### COMMON-PATCH-BEGIN ###
 # Upstream patches
 # SUSE patches: 1000+ for LVM, 2000+ for device mapper
-Patch1001:  improve_probing.diff
-Patch1002:  no-inc-audit.diff
-#bsc#952300
-Patch1004:  sys_mount_instead_linux_fs.diff
-Patch1005:  display-dm-name-for-lv-name.diff
-Patch1006:  device-mapper-type_punning.diff
-#fate312248, patch7,8
-Patch1007:  make-mirror-legs-on-different-tag-pvs.patch
-Patch1008:  improve-mirror-legs-on-different-tag-pvs.patch
-#fate#315092
-Patch1009:  cmirrord_improvment_performance.patch
-#fate#314367, patch10,11
-Patch1010:  cluster_support_mirrord_log.diff
-Patch1011:  lvconvert-cluster-mirrored-disk-failed.patch
-#forward-port from sle11
-Patch1012:  suppress_format1_size_warning.diff
-Patch1013:  pvmove_support_clustered_vg.diff
 # Never upstream
-Patch1014:  cmirrord_remove_date_time_from_compilation.patch
+Patch1001:  cmirrord_remove_date_time_from_compilation.patch
+#fate#309425
+Patch1002:  display-dm-name-for-lv-name.diff
+# no reference
+Patch1003:  device-mapper-type_punning.diff
+#fate#312248
+Patch1004:  make-mirror-legs-on-different-tag-pvs.patch
+Patch1005:  improve-mirror-legs-on-different-tag-pvs.patch
+#fate#315092
+Patch1006:  cmirrord_improvment_performance.patch
+#fate#314367
+Patch1007:  cluster_support_mirrord_log.diff
+Patch1008:  lvconvert-cluster-mirrored-disk-failed.patch
+# no reference
+Patch1009:  pvmove_support_clustered_vg.diff
 #bnc873538
-Patch1015:  fix-closedown-before-thread-finish.patch
+Patch1010:  fix-closedown-before-thread-finish.patch
 #bnc#870824
-Patch1016:  use-mirrortype-asdefault-whenclvmdrunning.patch
-Patch1017:  version-plugins-in-libdir.patch
+Patch1011:  use-mirrortype-asdefault-whenclvmdrunning.patch
+# no reference
+Patch1012:  version-plugins-in-libdir.patch
 #bsc#935623
-Patch1018:  dmeventd-fix-dso-name-wrong-compare.patch
+Patch1013:  dmeventd-fix-dso-name-wrong-compare.patch
 #bsc#960044
-Patch1019:  lvm2-lvmetad.service-add-Also-lvm2-lvmetad.socket.patch
+Patch1014:  lvm2-lvmetad.service-add-Also-lvm2-lvmetad.socket.patch
 #bsc#479104,bnc#707253
 Patch2000:  device-mapper-dmsetup-export.patch
+# no reference
 Patch2001:  device-mapper-gcc-warnings.patch
+#bsc#724578
 Patch2002:  device-mapper-link.patch
 #bnc#78902,bnc#789019,bnc#789020
 Patch2003:  udev_rules-update.diff
@@ -110,6 +110,7 @@
 ### COMMON-PREP-BEGIN ###
 %patch1001 -p1
 %patch1002 -p1
+%patch1003 -p1
 %patch1004 -p1
 %patch1005 -p1
 %patch1006 -p1
@@ -121,11 +122,6 @@
 %patch1012 -p1
 %patch1013 -p1
 %patch1014 -p1
-%patch1015 -p1
-%patch1016 -p1
-%patch1017 -p1
-%patch1018 -p1
-%patch1019 -p1
 %patch2000 -p1
 %patch2001 -p1
 %patch2002 -p1

++ lvm2-clvm.spec ++
--- /var/tmp/diff_new_pack.zt5kXl/_old  2017-05-10 20:32:59.599204487 +0200
+++ /var/tmp/diff_new_pack.zt5kXl/_new  

commit lvm2 for openSUSE:Factory

2017-04-25 Thread root
Hello community,

here is the log from the commit of package lvm2 for openSUSE:Factory checked in 
at 2017-04-25 08:55:28

Comparing /work/SRC/openSUSE:Factory/lvm2 (Old)
 and  /work/SRC/openSUSE:Factory/.lvm2.new (New)


Package is "lvm2"

Tue Apr 25 08:55:28 2017 rev:101 rq:489075 version:2.02.170

Changes:

--- /work/SRC/openSUSE:Factory/lvm2/device-mapper.changes   2017-03-03 
17:33:26.903127529 +0100
+++ /work/SRC/openSUSE:Factory/.lvm2.new/device-mapper.changes  2017-04-25 
08:55:32.521539971 +0200
@@ -1,0 +2,39 @@
+Tue Apr 18 11:07:01 UTC 2017 - tchva...@suse.com
+
+- Update to 2.02.170:
+  * Few smal fixes around; obsoleted 169 release that was removed
+from mirrors
+- Refresh patch:
+  * display-dm-name-for-lv-name.diff
+
+---
+Wed Apr 12 01:33:15 UTC 2017 - z...@suse.com
+
+- Update device mapper version to 1.02.138, see WHATS_NEW_DM for
+  detailed changelogs
+  * Drop obsolete lvmchange files accordingly
+- Refresh libdm-iface-not-output-error-message-inside-retry-loop.patch
+- Refresh make-mirror-legs-on-different-tag-pvs.patch
+- device-mapper-dmsetup-export.patch
+
+---
+Mon Apr 10 23:08:45 UTC 2017 - jnelson-s...@jamponi.net
+
+- Version update to 2.02.169 release, see WHATS_NEW and WHATS_NEW_DM
+  files for detailed changelogs
+
+---
+Mon Apr 10 10:41:02 UTC 2017 - tchva...@suse.com
+
+- Split configure options to have one per line
+- Pass over with spec-cleaner
+- Enable internal cache
+- Enable lvmpolld
+
+---
+Mon Apr 10 07:41:10 UTC 2017 - z...@suse.com
+
+- Add 'lvm2-lockd' subpackage, fate#323203 to lvm2-clvm to not pull
+  corosync and other deps to the core lvm2 package
+
+---
lvm2-clvm.changes: same change
lvm2.changes: same change

Old:

  LVM2.2.02.168.tgz
  LVM2.2.02.168.tgz.asc

New:

  LVM2.2.02.170.tgz
  LVM2.2.02.170.tgz.asc



Other differences:
--
++ device-mapper.spec ++
--- /var/tmp/diff_new_pack.7IBmYe/_old  2017-04-25 08:55:36.173023645 +0200
+++ /var/tmp/diff_new_pack.7IBmYe/_new  2017-04-25 08:55:36.177023079 +0200
@@ -16,15 +16,13 @@
 #
 
 
+%define libname libdevmapper1_03
+%define libname_event libdevmapper-event1_03
 ### COMMON-DEF-BEGIN ###
-%define lvm2_version  2.02.168
-%define device_mapper_version 1.02.137
+%define lvm2_version  2.02.170
+%define device_mapper_version 1.02.139
 %define thin_provisioning_version 0.5.6
 ### COMMON-DEF-END ###
-
-%define libname libdevmapper1_03
-%define libname_event libdevmapper-event1_03
-
 Name:   device-mapper
 Version:%{device_mapper_version}
 Release:0
@@ -35,7 +33,18 @@
 Source: ftp://sources.redhat.com/pub/lvm2/LVM2.%{lvm2_version}.tgz
 Source1:ftp://sources.redhat.com/pub/lvm2/LVM2.%{lvm2_version}.tgz.asc
 Source99:   baselibs.conf
-
+BuildRequires:  gcc-c++
+BuildRequires:  pkgconfig
+BuildRequires:  suse-module-tools
+BuildRequires:  thin-provisioning-tools >= %{thin_provisioning_version}
+BuildRequires:  pkgconfig(libselinux)
+BuildRequires:  pkgconfig(libsepol)
+BuildRequires:  pkgconfig(libudev)
+BuildRequires:  pkgconfig(systemd)
+Requires:   thin-provisioning-tools >= %{thin_provisioning_version}
+Requires(post): coreutils
+BuildRoot:  %{_tmppath}/%{name}-%{version}-build
+%{?systemd_requires}
 ### COMMON-PATCH-BEGIN ###
 # Upstream patches
 # SUSE patches: 1000+ for LVM, 2000+ for device mapper
@@ -93,19 +102,6 @@
 Patch2012:  simplify-special-case-for-md-in-69-dm-lvm-metadata.patch
 ### COMMON-PATCH-END ###
 
-BuildRequires:  gcc-c++
-BuildRequires:  pkgconfig
-BuildRequires:  suse-module-tools
-BuildRequires:  thin-provisioning-tools >= %{thin_provisioning_version}
-BuildRequires:  pkgconfig(libselinux)
-BuildRequires:  pkgconfig(libsepol)
-BuildRequires:  pkgconfig(libudev)
-BuildRequires:  pkgconfig(systemd)
-Requires:   thin-provisioning-tools >= %{thin_provisioning_version}
-Requires(post): coreutils
-BuildRoot:  %{_tmppath}/%{name}-%{version}-build
-%{?systemd_requires}
-
 %description
 Programs and man pages for configuring and using the device mapper.
 
@@ -152,8 +148,10 @@
 export PATH=$PATH:/sbin:%{_prefix}/sbin
 sed -ie "s/%{device_mapper_version}/1.03.01/g" VERSION_DM
 %configure \
---enable-dmeventd --enable-cmdlib \
---enable-udev_rules --enable-udev_sync \
+--enable-dmeventd \
+--enable-cmdlib \
+--enable-udev_rules \
+--enable-udev_sync \
 --with-udev-prefix="%{_prefix}/" \
 

commit lvm2 for openSUSE:Factory

2017-03-03 Thread root
Hello community,

here is the log from the commit of package lvm2 for openSUSE:Factory checked in 
at 2017-03-03 17:33:25

Comparing /work/SRC/openSUSE:Factory/lvm2 (Old)
 and  /work/SRC/openSUSE:Factory/.lvm2.new (New)


Package is "lvm2"

Fri Mar  3 17:33:25 2017 rev:100 rq:461233 version:2.02.168

Changes:

--- /work/SRC/openSUSE:Factory/lvm2/device-mapper.changes   2017-02-25 
00:47:16.722008873 +0100
+++ /work/SRC/openSUSE:Factory/.lvm2.new/device-mapper.changes  2017-03-03 
17:33:26.903127529 +0100
@@ -1,0 +2,14 @@
+Fri Feb 24 10:57:16 UTC 2017 - z...@suse.com
+
+- Improve the layout and readability of spec files
+  * Place subpackages' sections at the bottom of spec file, making
+  the layout more reasonable: 1. main package's spec sections are
+  contiguous without a break; 2. subpackage's spec spections can
+  also be placed together.
+  * Get rid of wild-card usage in %files section; spec file is a
+  perfect place for packager to know what files are exactly delivered
+  with each RPMs; staring at wild-card doesn't give much information.
+  * Put bsc#xxx at previous line of each SUSE patch at my best, some
+  are still missing.
+
+---
lvm2-clvm.changes: same change
lvm2.changes: same change



Other differences:
--
++ device-mapper.spec ++
--- /var/tmp/diff_new_pack.YESfGJ/_old  2017-03-03 17:33:28.178947260 +0100
+++ /var/tmp/diff_new_pack.YESfGJ/_new  2017-03-03 17:33:28.182946695 +0100
@@ -19,9 +19,12 @@
 ### COMMON-DEF-BEGIN ###
 %define lvm2_version  2.02.168
 %define device_mapper_version 1.02.137
+%define thin_provisioning_version 0.5.6
 ### COMMON-DEF-END ###
+
 %define libname libdevmapper1_03
 %define libname_event libdevmapper-event1_03
+
 Name:   device-mapper
 Version:%{device_mapper_version}
 Release:0
@@ -32,15 +35,17 @@
 Source: ftp://sources.redhat.com/pub/lvm2/LVM2.%{lvm2_version}.tgz
 Source1:ftp://sources.redhat.com/pub/lvm2/LVM2.%{lvm2_version}.tgz.asc
 Source99:   baselibs.conf
+
 ### COMMON-PATCH-BEGIN ###
-# Upstream patches first
+# Upstream patches
+# SUSE patches: 1000+ for LVM, 2000+ for device mapper
 Patch1001:  improve_probing.diff
 Patch1002:  no-inc-audit.diff
+#bsc#952300
 Patch1004:  sys_mount_instead_linux_fs.diff
-#suse
 Patch1005:  display-dm-name-for-lv-name.diff
 Patch1006:  device-mapper-type_punning.diff
-#fate312248, patch6,7
+#fate312248, patch7,8
 Patch1007:  make-mirror-legs-on-different-tag-pvs.patch
 Patch1008:  improve-mirror-legs-on-different-tag-pvs.patch
 #fate#315092
@@ -53,43 +58,50 @@
 Patch1013:  pvmove_support_clustered_vg.diff
 # Never upstream
 Patch1014:  cmirrord_remove_date_time_from_compilation.patch
-#suse, bnc873538
+#bnc873538
 Patch1015:  fix-closedown-before-thread-finish.patch
-#suse, bnc#870824
+#bnc#870824
 Patch1016:  use-mirrortype-asdefault-whenclvmdrunning.patch
 Patch1017:  version-plugins-in-libdir.patch
+#bsc#935623
 Patch1018:  dmeventd-fix-dso-name-wrong-compare.patch
+#bsc#960044
 Patch1019:  lvm2-lvmetad.service-add-Also-lvm2-lvmetad.socket.patch
-#suse, bnc#707253(also merged patch for bnc#479104)
+#bsc#479104,bnc#707253
 Patch2000:  device-mapper-dmsetup-export.patch
 Patch2001:  device-mapper-gcc-warnings.patch
 Patch2002:  device-mapper-link.patch
-#suse, bnc#78902,bnc#789019,bnc#789020
+#bnc#78902,bnc#789019,bnc#789020
 Patch2003:  udev_rules-update.diff
-#suse, bnc#875233
+#bnc#875233
 Patch2004:  udev-Check-for-DM_NR_VALID_PATHS.patch
+#FATE#318413
 Patch2005:  fsadm-add-support-for-btrfs.patch
+#bnc909358
 Patch2006:  Import-ID_FS_XXX-variables-bnc909358.patch
+#bsc#932300
 Patch2007:  10-dm.rules-Reset-state-variable-for-spurious-events.patch
+#bsc#940298
 Patch2008:  libdm-iface-not-output-error-message-inside-retry-loop.patch
-# bnc#960744
+#bnc#960744
 Patch2009:  pvcreate-enhance-the-error-message.patch
-# bnc#990538 bnc#986734
+#bnc#990538,bnc#986734
 Patch2010:  69-dm-lvm-metad.rules-Do-not-process-rules-for-multi.patch
-#PATCH-FIX-SUSE, bnc#950089
+#bnc#950089
 Patch2011:  lvm2-testsuite.patch
-# simplify special case for the md rules
+#bsc#1012973
 Patch2012:  simplify-special-case-for-md-in-69-dm-lvm-metadata.patch
 ### COMMON-PATCH-END ###
+
 BuildRequires:  gcc-c++
 BuildRequires:  pkgconfig
 BuildRequires:  suse-module-tools
-BuildRequires:  thin-provisioning-tools >= 0.5.6
+BuildRequires:  thin-provisioning-tools >= %{thin_provisioning_version}
 BuildRequires:  pkgconfig(libselinux)
 BuildRequires:  pkgconfig(libsepol)
 BuildRequires:  pkgconfig(libudev)
 BuildRequires:  pkgconfig(systemd)
-Requires:   

commit lvm2 for openSUSE:Factory

2017-02-24 Thread root
Hello community,

here is the log from the commit of package lvm2 for openSUSE:Factory checked in 
at 2017-02-25 00:47:16

Comparing /work/SRC/openSUSE:Factory/lvm2 (Old)
 and  /work/SRC/openSUSE:Factory/.lvm2.new (New)


Package is "lvm2"

Changes:

--- /work/SRC/openSUSE:Factory/lvm2/device-mapper.changes   2017-02-04 
18:01:27.871985763 +0100
+++ /work/SRC/openSUSE:Factory/.lvm2.new/device-mapper.changes  2017-02-25 
00:47:16.722008873 +0100
@@ -1,0 +2,29 @@
+Thu Feb 23 06:27:55 UTC 2017 - z...@suse.com
+
+- Enable lvmetad in sync with SLE 
+
+---
+Wed Feb 22 11:25:01 UTC 2017 - z...@suse.com
+
+- Add systemid feature
+  * update lvm.conf accordingly
+  * replace whitespaces with tab in lvm.conf 
+
+---
+Wed Feb 22 10:43:38 UTC 2017 - z...@suse.com
+
+- Fix several issues about clvmd/cmorriord RAs (bsc#1023283,
+  bsc#1025560)
+  * deal with time values  passed down with time units
+  * make correct "return code"
+  * fix format issue that tab messes up with spaces 
+
+---
+Wed Feb 22 06:39:27 UTC 2017 - z...@suse.com
+
+- udev: simplify special-case for md in 69-dm-lvm-metadata.rules
+  * fix regression of bsc#1012973
+  * drop remove-special-case-for-md-in-69-dm-lvm-metadata.rul.patch
+  * add simplify-special-case-for-md-in-69-dm-lvm-metadata.patch
+
+---
lvm2-clvm.changes: same change
lvm2.changes: same change

Old:

  remove-special-case-for-md-in-69-dm-lvm-metadata.rul.patch

New:

  simplify-special-case-for-md-in-69-dm-lvm-metadata.patch



Other differences:
--
++ device-mapper.spec ++
--- /var/tmp/diff_new_pack.AvOAvS/_old  2017-02-25 00:47:18.097799147 +0100
+++ /var/tmp/diff_new_pack.AvOAvS/_new  2017-02-25 00:47:18.097799147 +0100
@@ -78,8 +78,8 @@
 Patch2010:  69-dm-lvm-metad.rules-Do-not-process-rules-for-multi.patch
 #PATCH-FIX-SUSE, bnc#950089
 Patch2011:  lvm2-testsuite.patch
-# Remove special case for the md rules
-Patch2012:  remove-special-case-for-md-in-69-dm-lvm-metadata.rul.patch
+# simplify special case for the md rules
+Patch2012:  simplify-special-case-for-md-in-69-dm-lvm-metadata.patch
 ### COMMON-PATCH-END ###
 BuildRequires:  gcc-c++
 BuildRequires:  pkgconfig

lvm2-clvm.spec: same change
++ lvm2.spec ++
--- /var/tmp/diff_new_pack.AvOAvS/_old  2017-02-25 00:47:18.157790002 +0100
+++ /var/tmp/diff_new_pack.AvOAvS/_new  2017-02-25 00:47:18.161789393 +0100
@@ -79,8 +79,8 @@
 Patch2010:  69-dm-lvm-metad.rules-Do-not-process-rules-for-multi.patch
 #PATCH-FIX-SUSE, bnc#950089
 Patch2011:  lvm2-testsuite.patch
-# Remove special case for the md rules
-Patch2012:  remove-special-case-for-md-in-69-dm-lvm-metadata.rul.patch
+# simplify special case for the md rules
+Patch2012:  simplify-special-case-for-md-in-69-dm-lvm-metadata.patch
 ### COMMON-PATCH-END ###
 BuildRequires:  gcc-c++
 BuildRequires:  libaio-devel


++ clvmd.ocf ++
--- /var/tmp/diff_new_pack.AvOAvS/_old  2017-02-25 00:47:18.233778419 +0100
+++ /var/tmp/diff_new_pack.AvOAvS/_new  2017-02-25 00:47:18.23809 +0100
@@ -1,6 +1,5 @@
 #!/bin/bash
-# Copyright (c) 2008 Xinwei Hu
-#All Rights Reserved.
+# Copyright (c) 2008 Xinwei Hu All Rights Reserved.
 #
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of version 2 of the GNU General Public License as
@@ -12,7 +11,7 @@
 #
 # Further, this software is distributed without any warranty that it is
 # free of the rightful claim of any third person regarding infringement
-# or the like.  Any license provided herein, whether implied or
+# or the like. Any license provided herein, whether implied or
 # otherwise, applies only to this software file.  Patent licenses, if
 # any, provided herein do not apply to combinations of this program with
 # other software, or any other product whatsoever.
@@ -38,161 +37,175 @@
 CMIRRORD="${sbindir}/cmirrord"
 LVMCONF="${sbindir}/lvmconf"
 
+time_to_seconds() {
+   local val 
+   val=$1
+   case $val in
+   *h) echo $(( $(echo $val | sed -e "s/h$//") * 3600 ));;
+   *ms) echo $(( $(echo $val | sed -e "s/ms$//") / 1000 ));;
+   *s) echo $val | sed -e "s/s$//";;
+   *m) echo $(( $(echo $val | sed -e "s/m$//") * 60 ));;
+   *) echo "$val";;
+   esac
+}
+
+OCF_RESKEY_daemon_timeout=$(time_to_seconds ${OCF_RESKEY_daemon_timeout})
+
 status_daemons()
 {
-PID=`pidofproc "$DAEMON"`
+   PID=`pidofproc "$DAEMON"`
NPID=`pidofproc "$CMIRRORD"`

commit lvm2 for openSUSE:Factory

2017-02-04 Thread root
Hello community,

here is the log from the commit of package lvm2 for openSUSE:Factory checked in 
at 2017-02-04 15:18:41

Comparing /work/SRC/openSUSE:Factory/lvm2 (Old)
 and  /work/SRC/openSUSE:Factory/.lvm2.new (New)


Package is "lvm2"

Changes:

--- /work/SRC/openSUSE:Factory/lvm2/device-mapper.changes   2017-01-24 
10:27:54.413148588 +0100
+++ /work/SRC/openSUSE:Factory/.lvm2.new/device-mapper.changes  2017-02-04 
18:01:27.871985763 +0100
@@ -1,0 +2,6 @@
+Fri Jan 20 09:46:27 UTC 2017 - tchva...@suse.com
+
+- Remove special case for md (bsc#1012973)
+  * remove-special-case-for-md-in-69-dm-lvm-metadata.rul.patch
+
+---
lvm2-clvm.changes: same change
lvm2.changes: same change

New:

  remove-special-case-for-md-in-69-dm-lvm-metadata.rul.patch



Other differences:
--
++ device-mapper.spec ++
--- /var/tmp/diff_new_pack.fIiBej/_old  2017-02-04 18:01:28.495896565 +0100
+++ /var/tmp/diff_new_pack.fIiBej/_new  2017-02-04 18:01:28.495896565 +0100
@@ -78,6 +78,8 @@
 Patch2010:  69-dm-lvm-metad.rules-Do-not-process-rules-for-multi.patch
 #PATCH-FIX-SUSE, bnc#950089
 Patch2011:  lvm2-testsuite.patch
+# Remove special case for the md rules
+Patch2012:  remove-special-case-for-md-in-69-dm-lvm-metadata.rul.patch
 ### COMMON-PATCH-END ###
 BuildRequires:  gcc-c++
 BuildRequires:  pkgconfig
@@ -154,6 +156,7 @@
 %patch2009 -p1
 %patch2010 -p1
 %patch2011 -p1
+%patch2012 -p1
 ### COMMON-PREP-END ###
 
 %build

lvm2-clvm.spec: same change
++ lvm2.spec ++
--- /var/tmp/diff_new_pack.fIiBej/_old  2017-02-04 18:01:28.559887417 +0100
+++ /var/tmp/diff_new_pack.fIiBej/_new  2017-02-04 18:01:28.563886845 +0100
@@ -79,6 +79,8 @@
 Patch2010:  69-dm-lvm-metad.rules-Do-not-process-rules-for-multi.patch
 #PATCH-FIX-SUSE, bnc#950089
 Patch2011:  lvm2-testsuite.patch
+# Remove special case for the md rules
+Patch2012:  remove-special-case-for-md-in-69-dm-lvm-metadata.rul.patch
 ### COMMON-PATCH-END ###
 BuildRequires:  gcc-c++
 BuildRequires:  libaio-devel
@@ -173,6 +175,7 @@
 %patch2009 -p1
 %patch2010 -p1
 %patch2011 -p1
+%patch2012 -p1
 ### COMMON-PREP-END ###
 
 %build


++ remove-special-case-for-md-in-69-dm-lvm-metadata.rul.patch ++
>From 2759c9fa04af726d2777db142806287256bd9cc5 Mon Sep 17 00:00:00 2001
From: NeilBrown 
Date: Wed, 4 Jan 2017 14:30:52 +1100
Subject: [PATCH] Remove special-case for md in 69-dm-lvm-metadata.rules

This special casing brings no value.  It appears to attempt to
determine if the array is active yet or not, and to skip
processing if the array has not yet been started.
However, if the array hasn't been started, then "blkid" will
not have been able to read a signature, so:
  ENV{ID_FS_TYPE}!="LVM2_member|LVM1_member", GOTO="lvm_end"
will have caused all this code to be skipped.

Further, this code causes incorrect behaviour in at least one case.
It assumes that the first "add" event should be ignored, as it will be
followed by a "change" event which indicates the array coming on line.
This is consistent with how the kernel sends events, but not always
consistent with how this script sees event.
Specifically: if the initrd has "mdadm" support installed, but not
"lvm2" support, then the initial "add" and "change" events will
happen while the initrd is in charge and this file is not available.
Once the root filesystem is mountd, this file will be available
and "udevadm trigger --action=add" will be run.
So the first and only event seen by this script for an md device will be
"add", and it will incorrectly ignore it.

It is probable that the special handling for "loop" should be removed as
well, but I have not actually seen that cause a problem, so I'm
leaving it unchanged.

Signed-off-by: NeilBrown 
---
 udev/69-dm-lvm-metad.rules.in | 10 --
 1 file changed, 10 deletions(-)

diff --git a/udev/69-dm-lvm-metad.rules.in b/udev/69-dm-lvm-metad.rules.in
index bd75fc8..db213ed 100644
--- a/udev/69-dm-lvm-metad.rules.in
+++ b/udev/69-dm-lvm-metad.rules.in
@@ -50,16 +50,6 @@ KERNEL!="dm-[0-9]*", GOTO="next"
 ENV{DM_UDEV_PRIMARY_SOURCE_FLAG}=="1", ENV{DM_ACTIVATION}=="1", GOTO="lvm_scan"
 GOTO="lvm_end"
 
-# MD device:
-LABEL="next"
-KERNEL!="md[0-9]*", GOTO="next"
-IMPORT{db}="LVM_MD_PV_ACTIVATED"
-ACTION=="add", ENV{LVM_MD_PV_ACTIVATED}=="1", GOTO="lvm_scan"
-ACTION=="change", ENV{LVM_MD_PV_ACTIVATED}!="1", TEST=="md/array_state", 
ENV{LVM_MD_PV_ACTIVATED}="1", GOTO="lvm_scan"
-ACTION=="add", KERNEL=="md[0-9]*p[0-9]*", GOTO="lvm_scan"
-ENV{LVM_MD_PV_ACTIVATED}!="1", ENV{SYSTEMD_READY}="0"
-GOTO="lvm_end"
-
 # Loop device:
 LABEL="next"
 KERNEL!="loop[0-9]*", GOTO="next"
-- 
2.10.2




commit lvm2 for openSUSE:Factory

2017-01-24 Thread root
Hello community,

here is the log from the commit of package lvm2 for openSUSE:Factory checked in 
at 2017-01-24 10:27:53

Comparing /work/SRC/openSUSE:Factory/lvm2 (Old)
 and  /work/SRC/openSUSE:Factory/.lvm2.new (New)


Package is "lvm2"

Changes:

--- /work/SRC/openSUSE:Factory/lvm2/device-mapper.changes   2017-01-10 
10:35:15.340950921 +0100
+++ /work/SRC/openSUSE:Factory/.lvm2.new/device-mapper.changes  2017-01-24 
10:27:54.413148588 +0100
@@ -1,0 +2,6 @@
+Tue Jan 10 09:25:17 UTC 2017 - zl...@suse.com
+
+- add a new test package named lvm2-testsuite bnc#950089
+  * lvm2-testsuite.patch
+
+---
lvm2-clvm.changes: same change
lvm2.changes: same change

New:

  lvm2-testsuite.patch



Other differences:
--
++ device-mapper.spec ++
--- /var/tmp/diff_new_pack.WMcP3X/_old  2017-01-24 10:27:56.116906929 +0100
+++ /var/tmp/diff_new_pack.WMcP3X/_new  2017-01-24 10:27:56.120906362 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package device-mapper
 #
-# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -76,6 +76,8 @@
 Patch2009:  pvcreate-enhance-the-error-message.patch
 # bnc#990538 bnc#986734
 Patch2010:  69-dm-lvm-metad.rules-Do-not-process-rules-for-multi.patch
+#PATCH-FIX-SUSE, bnc#950089
+Patch2011:  lvm2-testsuite.patch
 ### COMMON-PATCH-END ###
 BuildRequires:  gcc-c++
 BuildRequires:  pkgconfig
@@ -151,6 +153,7 @@
 %patch2008 -p1
 %patch2009 -p1
 %patch2010 -p1
+%patch2011 -p1
 ### COMMON-PREP-END ###
 
 %build

lvm2-clvm.spec: same change
++ lvm2.spec ++
--- /var/tmp/diff_new_pack.WMcP3X/_old  2017-01-24 10:27:56.184897285 +0100
+++ /var/tmp/diff_new_pack.WMcP3X/_new  2017-01-24 10:27:56.188896718 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package lvm2
 #
-# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -77,6 +77,8 @@
 Patch2009:  pvcreate-enhance-the-error-message.patch
 # bnc#990538 bnc#986734
 Patch2010:  69-dm-lvm-metad.rules-Do-not-process-rules-for-multi.patch
+#PATCH-FIX-SUSE, bnc#950089
+Patch2011:  lvm2-testsuite.patch
 ### COMMON-PATCH-END ###
 BuildRequires:  gcc-c++
 BuildRequires:  libaio-devel
@@ -128,6 +130,16 @@
 %description devel
 This package provides development files for the LVM2 Logical Volume Manager.
 
+%package testsuite
+Summary:LVM2 Testsuite
+Group:  Development/Libraries/C and C++
+Requires:   %{applib} = %{version}
+Requires:   %{cmdlib} = %{version}
+Requires:   lvm2 = %{version}
+
+%description testsuite
+An extensive functional testsuite for the LVM2 Logical Volume Manager.
+
 %prep
 %setup -q -n LVM2.%{version}
 ### COMMON-PREP-BEGIN ###
@@ -160,6 +172,7 @@
 %patch2008 -p1
 %patch2009 -p1
 %patch2010 -p1
+%patch2011 -p1
 ### COMMON-PREP-END ###
 
 %build
@@ -206,6 +219,8 @@
 make install_tmpfiles_configuration DESTDIR=%{buildroot}
 # Install configuration file
 install -m 644 %{SOURCE1} "%{buildroot}/%{_sysconfdir}/lvm/"
+# Install testsuite
+make -C test install DESTDIR=%{buildroot}
 
 pushd "%{buildroot}/%{_libdir}"
 ln -sf liblvm2cmd.so.2.02 liblvm2cmd.so
@@ -256,7 +271,7 @@
 %{?regenerate_initrd_post}
 %service_add_post blk-availability.service lvm2-monitor.service 
lvm2-lvmetad.socket lvm2-lvmetad.service
 # Use %%tmpfiles_create when 13.2 is oldest in support scope
-/usr/bin/systemd-tmpfiles --create %{_tmpfilesdir}/lvm2.conf || :
+%{_bindir}/systemd-tmpfiles --create %{_tmpfilesdir}/lvm2.conf || :
 
 %posttrans
 %{?regenerate_initrd_posttrans}
@@ -317,9 +332,9 @@
 %{_libdir}/libdevmapper-event-lvm2*.so
 %{_libdir}/libdevmapper-event-lvm2*.so.2.02
 %{_libdir}/libdevmapper-event-lvm2.so
-%{_mandir}/man5/lvm.conf.5.*
-%{_mandir}/man8/blkdeactivate.8.*
-%{_mandir}/man8/fsadm.8.gz
+%{_mandir}/man5/lvm.conf.5%{ext_man}
+%{_mandir}/man8/blkdeactivate.8%{ext_man}
+%{_mandir}/man8/fsadm.8%{ext_man}
 %{_mandir}/man8/lv*.8*
 %{_mandir}/man8/pv*.8*
 %{_mandir}/man8/vg*.8*
@@ -335,4 +350,10 @@
 %{_libdir}/liblvm2app.so
 %{_libdir}/liblvm2cmd.so
 
+%files testsuite
+%defattr(-,root,root,-)
+%{_datarootdir}/lvm2-testsuite/
+%{_libexecdir}/lvm2-testsuite/
+%{_bindir}/lvm2-testsuite
+
 %changelog


++ lvm2-testsuite.patch ++
commit 0402acbbb9f8f6066a3f7899e8cc3ae72b84ee20
Author: Zhilong Liu 
Date:   Wed Dec 7 02:43:10 2016 -0500

add a new 

commit lvm2 for openSUSE:Factory

2016-09-17 Thread h_root
Hello community,

here is the log from the commit of package lvm2 for openSUSE:Factory checked in 
at 2016-09-17 14:32:51

Comparing /work/SRC/openSUSE:Factory/lvm2 (Old)
 and  /work/SRC/openSUSE:Factory/.lvm2.new (New)


Package is "lvm2"

Changes:

--- /work/SRC/openSUSE:Factory/lvm2/device-mapper.changes   2016-06-02 
09:35:19.0 +0200
+++ /work/SRC/openSUSE:Factory/.lvm2.new/device-mapper.changes  2016-09-17 
14:32:53.0 +0200
@@ -1,0 +2,75 @@
+Fri Sep  9 09:24:19 UTC 2016 - tchva...@suse.com
+
+- This is sync commit from Leap/SLE12 only
+- Add patch pvcreate-enhance-the-error-message.patch bsc#960744
+- Modify GPL-2.0 to GPL-2.0+ and LGPL-2.1 to LGPL-2.1+ to avoid
+  license conflict with thin-provisioning-tools which is using GPL-3.0
+- Also contains fix for bsc#969310
+- Fix clvmd.ocf and cmirrord to remove "-d" option for cmirrod
+  (bsc#971334)
+- Fix clvmd.ocf to add lvmconf --enable-cluster before start daemon
+  when locking_type is not 3 or use_lvmetad is 1 in setting
+  (bsc#970439)
+- Modified spec to enable blkid-wiping (fate#319908)
+- Fix clvmd binary not found in case that users still use RA from
+  ocf:lvm2:clvm (bsc#980200) 
+  Add sbindir=$HA_SBIN_DIR for clvmd.ocf and cmirrord.ocf
+- The bsc#979635 wnd bsc#991181 as fixed in past thanks to proper /usr
+  migration code
+- Modified raid10_segtype_default from "mirror" to "raid10"(bsc#982329)
+- Remove lvm2-clvmd/cmirrord.service and related activation services
+  from %service_add _pre/post/preun/postun because we start clvmd 
+  /clmirrord and activate via pacemaker and RA. (bsc#980296)
+- Lvchange improve refresh by trying to deactivate snapshot thinLV 
+  in case it's preventing merge process change integrated upstream.
+  (bsc#984321)
+- Fixed in past bsc#992843
+- Fixed by upstream bsc#984321
+- Fixed by upstream bsc#970943
+- 69-dm-lvm-metad.rules: Do not process rules for multipath
+  devices (bsc#bsc#990538, bsc#986734)
+  Add: 69-dm-lvm-metad.rules-Do-not-process-rules-for-multi.patch
+- Rewrite patches to include patch header:
+  * 10-dm.rules-Reset-state-variable-for-spurious-events.patch
+  * device-mapper-link
+  * device-mapper-type_punning.diff
+  * udev_rules-update.diff
+- Sync also lvm.conf
+
+---
+Fri Sep  2 08:23:06 UTC 2016 - tchva...@suse.com
+
+- Update to 2.02.164 release, WHATS_NEW for changelog
+  * Mostly because the old tarball was no longer available
+  * Refresh fuzz on patch:
++ make-mirror-legs-on-different-tag-pvs.patch
++ cluster_support_mirrord_log.diff
+- Update patch to use correct api:
+  + make-mirror-legs-on-different-tag-pvs.patch
+
+---
+Fri Jul  8 13:43:41 UTC 2016 - tchva...@suse.com
+
+- Update to 2.02.160 release, read WHATS_NEW for detailed log.
+  * Most notable is lvconvert refactor/enhancements
+  * Refresh patch:
++ cluster_support_mirrord_log.diff
+
+---
+Tue Jun  7 12:08:24 UTC 2016 - tchva...@suse.com
+
+- Add thin-provisioning-tools to deps to fix configure warnings
+
+---
+Tue Jun  7 11:45:56 UTC 2016 - tchva...@suse.com
+
+- Do not run initrd regenerating twice in post
+
+---
+Tue Jun  7 11:40:41 UTC 2016 - tchva...@suse.com
+
+- Update to 2.02.155 release, read WHATS_NEW for detailed log.
+  * Mostly few bugfixes around caching
+- Refresh patch pvmove_support_clustered_vg.diff
+
+---
lvm2-clvm.changes: same change
lvm2.changes: same change

Old:

  LVM2.2.02.152.tgz
  LVM2.2.02.152.tgz.asc

New:

  69-dm-lvm-metad.rules-Do-not-process-rules-for-multi.patch
  LVM2.2.02.165.tgz
  LVM2.2.02.165.tgz.asc
  pvcreate-enhance-the-error-message.patch



Other differences:
--
++ device-mapper.spec ++
--- /var/tmp/diff_new_pack.7STwCq/_old  2016-09-17 14:32:55.0 +0200
+++ /var/tmp/diff_new_pack.7STwCq/_new  2016-09-17 14:32:55.0 +0200
@@ -17,8 +17,8 @@
 
 
 ### COMMON-DEF-BEGIN ###
-%define lvm2_version  2.02.152
-%define device_mapper_version 1.02.124
+%define lvm2_version  2.02.165
+%define device_mapper_version 1.02.134
 ### COMMON-DEF-END ###
 %define libname libdevmapper1_03
 %define libname_event libdevmapper-event1_03
@@ -26,7 +26,7 @@
 Version:%{device_mapper_version}
 Release:0
 Summary:Device Mapper Tools
-License:GPL-2.0 and LGPL-2.1
+License:GPL-2.0+ and LGPL-2.1+
 Group:  System/Base
 Url:

commit lvm2 for openSUSE:Factory

2016-06-02 Thread h_root
Hello community,

here is the log from the commit of package lvm2 for openSUSE:Factory checked in 
at 2016-06-02 09:35:17

Comparing /work/SRC/openSUSE:Factory/lvm2 (Old)
 and  /work/SRC/openSUSE:Factory/.lvm2.new (New)


Package is "lvm2"

Changes:

New Changes file:

--- /dev/null   2016-04-07 01:36:33.300037506 +0200
+++ /work/SRC/openSUSE:Factory/.lvm2.new/device-mapper.changes  2016-06-02 
09:35:19.0 +0200
@@ -0,0 +1,1686 @@
+---
+Thu May 19 12:07:09 UTC 2016 - tchva...@suse.com
+
+- Add compat symlinks for binaries to /sbin/ to avoid errors on
+  hardcoded systems, obsolete them with leap 43
+
+---
+Thu May 12 08:12:54 UTC 2016 - tchva...@suse.com
+
+- Add conflicts on unsplit packages to allow smooth upgrade path
+  Also do the conflict properly in baselibs.conf
+
+---
+Wed May 11 07:54:19 UTC 2016 - tchva...@suse.com
+
+- Add dependencies to the devel pacakge in baselibs.conf
+
+---
+Wed May  4 10:36:40 UTC 2016 - tchva...@suse.com
+
+- Update patch use-mirrortype-asdefault-whenclvmdrunning.patch
+  to match up the patches/pvmove_support_clustered_vg.diff and not
+  use the define declared only when building clvm codebase;
+  it is still broken if someone changes the PID location, but at least
+  it now does not depend on clvm code
+- Regenerate_initrd in post of the lvm2 main pkg
+- Update baselibs to point to split-out devicemapper libraries
+
+---
+Wed May  4 09:27:30 UTC 2016 - tchva...@suse.com
+
+- Keep in sync the common configuration options that are shared among
+  all the variants dm/lvm2/clvm
+
+---
+Tue May  3 14:03:30 UTC 2016 - tchva...@suse.com
+
+- Provide symlinks to 1.02 versions of dm and dm-event libs
+  * this should sort out binary packages without the need of double
+rebuilding
+
+---
+Tue May  3 13:23:52 UTC 2016 - tchva...@suse.com
+
+- Update to 2.02.152 release, read WHATS_NEW for detailed log.
+- Refresh patches:
+  * 10-dm.rules-Reset-state-variable-for-spurious-events.patch
+  * device-mapper-gcc-warnings.patch
+  * device-mapper-link.patch
+  * udev-Check-for-DM_NR_VALID_PATHS.patch
+- Slightly tweak btrfs patch as the code changed for the detection:
+  * fsadm-add-support-for-btrfs.patch
+
+---
+Tue May  3 12:55:34 UTC 2016 - tchva...@suse.com
+
+- Build and install properly cluster files
+- Remove csm-converter.tar.gz as the evms was last present on sle10
+  and thus migration is bit out of scope today
+
+---
+Tue May  3 09:23:48 UTC 2016 - tchva...@suse.com
+
+- Add pre_checkin.sh to allow syncing of patches between packages:
+  workflow = add everything to lvm2.spec and run pre_checkin.sh
+
+---
+Mon May  2 17:41:55 UTC 2016 - tchva...@suse.com
+
+- Refresh patch use-mirrortype-asdefault-whenclvmdrunning.patch to
+  work without clvm code enabled
+
+---
+Mon May  2 17:29:09 UTC 2016 - tchva...@suse.com
+
+- Regenerate lvm2 tmpfiles after install so they won't populate just
+  after the reboot
+- Split out lvm2 libraries to separate subpkgs per standards
+- Rename versioning of plugins patch:
+  * version-plugins-in-libdir -> version-plugins-in-libdir.patch
+
+---
+Mon May  2 16:51:09 UTC 2016 - tchva...@suse.com
+
+- Remove evms provides/obsoletes, last seen on sle10
+- Mark configs as such
+- Ghost the during-run created dirs
+- Install rcbla compat service symlinks
+
+---
+Mon May  2 15:13:35 UTC 2016 - tchva...@suse.com
+
+- Sync with device-mapper.spec, build only lvm and wipe devicemapper
+  binaries
+- Install in /usr there is no technical reason to keep this out
+  of /usr
+
+---
+Mon May  2 13:23:49 UTC 2016 - tchva...@suse.com
+
+- Split out device-mapper and clvm to separate spec files
+  * No factual changes just deletion in the spec to keep it out
+of interacting with those parts
+
+---
+Fri Apr 29 11:05:04 UTC 2016 - tchva...@suse.com
+
+- Do not explicitely require expat it is only used by thin_provisioning
+

commit lvm2 for openSUSE:Factory

2016-03-09 Thread h_root
Hello community,

here is the log from the commit of package lvm2 for openSUSE:Factory checked in 
at 2016-03-09 15:15:56

Comparing /work/SRC/openSUSE:Factory/lvm2 (Old)
 and  /work/SRC/openSUSE:Factory/.lvm2.new (New)


Package is "lvm2"

Changes:

--- /work/SRC/openSUSE:Factory/lvm2/lvm2.changes2016-02-03 
10:17:36.0 +0100
+++ /work/SRC/openSUSE:Factory/.lvm2.new/lvm2.changes   2016-03-09 
15:15:57.0 +0100
@@ -1,0 +2,8 @@
+Mon Mar  7 01:53:34 UTC 2016 - lw...@suse.com
+
+- not output error message inside retry loops to avoid noisy error
+  message being output inside retry loops in case of remove failure
+  because device busy. (bsc#940298 boo#957059)
+  add: libdm-iface-not-output-error-message-inside-retry-loop.patch
+
+---

New:

  libdm-iface-not-output-error-message-inside-retry-loop.patch



Other differences:
--
++ lvm2.spec ++
--- /var/tmp/diff_new_pack.Fqs4Vf/_old  2016-03-09 15:15:59.0 +0100
+++ /var/tmp/diff_new_pack.Fqs4Vf/_new  2016-03-09 15:15:59.0 +0100
@@ -88,6 +88,7 @@
 Patch2007:  fsadm-add-support-for-btrfs.patch
 Patch2008:  Import-ID_FS_XXX-variables-bnc909358.patch
 Patch2009:  10-dm.rules-Reset-state-variable-for-spurious-events.patch
+Patch2010:  libdm-iface-not-output-error-message-inside-retry-loop.patch
 
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build
 BuildRequires:  autoconf
@@ -155,6 +156,7 @@
 %patch2007 -p1
 %patch2008 -p1
 %patch2009 -p1
+%patch2010 -p1
 
 %build
 #set path so that thin_check can be found


++ libdm-iface-not-output-error-message-inside-retry-loop.patch ++
>From a70f17fd1dc9a8cccefb946c3501d5cb6f2766bb Mon Sep 17 00:00:00 2001
From: Liuhua Wang 
Date: Mon, 23 Nov 2015 13:49:39 +0800
Subject: [PATCH] libdm-iface: not output error message inside retry loops

This is a workaround to avoid noisy error message being output inside retry 
loops
in case of remove failure because device busy. But as to the replies from 
upstream
there may be some issues in udev operations.

References: bsc#940298 boo#957059
Signed-off-by: lw...@suse.com
---
 libdm/ioctl/libdm-iface.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Index: LVM2.2.02.141/libdm/ioctl/libdm-iface.c
===
--- LVM2.2.02.141.orig/libdm/ioctl/libdm-iface.c
+++ LVM2.2.02.141/libdm/ioctl/libdm-iface.c
@@ -62,6 +62,7 @@
  */
 #define MAPPER_CTRL_MINOR 236
 #define MISC_MAJOR 10
+#define DM_IOCTL_RETRIES 25
 
 /* dm major version no for running kernel */
 static unsigned _dm_version = DM_VERSION_MAJOR;
@@ -1862,7 +1863,7 @@ static struct dm_ioctl *_do_dm_ioctl(str
dmt->major > 0 && dmt->minor == 0 ? 
"0" : "",
dmt->major > 0 ? ")" : "",
strerror(dmt->ioctl_errno));
-   else
+else if(errno != EBUSY || retry_repeat_count == DM_IOCTL_RETRIES)
log_error("device-mapper: %s ioctl on 
%s%s%s%.0d%s%.0d%s%s "
  "failed: %s",
  _cmd_data_v4[dmt->type].name,
@@ -1915,7 +1916,6 @@ void dm_task_update_nodes(void)
update_devs();
 }
 
-#define DM_IOCTL_RETRIES 25
 #define DM_RETRY_USLEEP_DELAY 20
 
 int dm_task_get_errno(struct dm_task *dmt)



commit lvm2 for openSUSE:Factory

2016-02-03 Thread h_root
Hello community,

here is the log from the commit of package lvm2 for openSUSE:Factory checked in 
at 2016-02-03 10:17:34

Comparing /work/SRC/openSUSE:Factory/lvm2 (Old)
 and  /work/SRC/openSUSE:Factory/.lvm2.new (New)


Package is "lvm2"

Changes:

--- /work/SRC/openSUSE:Factory/lvm2/lvm2.changes2015-12-18 
21:53:12.0 +0100
+++ /work/SRC/openSUSE:Factory/.lvm2.new/lvm2.changes   2016-02-03 
10:17:36.0 +0100
@@ -1,0 +2,19 @@
+Thu Jan 28 03:47:31 UTC 2016 - lw...@suse.com
+
+- Add 'Also=lvm2-lvmetad.socket' in '[Install]' section of lvm2-lvmetad.
+  service to remove lvm2-lvmetad.socket when disable lvm2-lvmetad.service.
+  (bsc#960044) 
+  add: lvm2-lvmetad.service-add-Also-lvm2-lvmetad.socket.patch
+
+---
+Wed Jan 27 05:38:07 UTC 2016 - lw...@suse.com
+
+- Split thin-provisioning-tools from lvm2 package for easier maintenance.
+- Update to lvm2-2.02.141 (device-mapper-1.02.115)
+  - Remove patches:
+ lvm2-do-not-strip-pdata_tools.patch: thin-provisioning-tools patch
+ lvmetad.c-ignore-lvmetad-global-handle-on-disconnect.patch:
+  already in upstream
+ no_buildroot_shared.diff: LVM_SHARED_PATH dropped by upstream
+
+---

Old:

  LVM2.2.02.120.tgz
  LVM2.2.02.120.tgz.asc
  lvm2-do-not-strip-pdata_tools.patch
  lvmetad.c-ignore-lvmetad-global-handle-on-disconnect.patch
  no_buildroot_shared.diff
  thin-provisioning-tools-v0.5.3.tar.gz

New:

  LVM2.2.02.141.tgz
  LVM2.2.02.141.tgz.asc
  lvm2-lvmetad.service-add-Also-lvm2-lvmetad.socket.patch



Other differences:
--
++ lvm2.spec ++
--- /var/tmp/diff_new_pack.WOGKNg/_old  2016-02-03 10:17:38.0 +0100
+++ /var/tmp/diff_new_pack.WOGKNg/_new  2016-02-03 10:17:38.0 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package lvm2
 #
-# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2016 SUSE LINUX Products GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -16,9 +16,8 @@
 #
 
 
-%define lvm2_version  2.02.120
-%define device_mapper_version 1.02.97
-%define thin_provisioning_version 0.5.3
+%define lvm2_version  2.02.141
+%define device_mapper_version 1.02.115
 
 %bcond_without clvm
 
@@ -37,15 +36,12 @@
 Source10:   cmirrord.ocf
 Source14:   baselibs.conf
 Source16:   csm-converter.tar.gz
-Source50:   thin-provisioning-tools-v%{thin_provisioning_version}.tar.gz
 
 # Upstream patches first
-Patch1: lvmetad.c-ignore-lvmetad-global-handle-on-disconnect.patch
 
 # SUSE patches 1000- for LVM, 2000- for device mapper
 Patch1001:  improve_probing.diff
 Patch1002:  no-inc-audit.diff
-Patch1003:  no_buildroot_shared.diff
 Patch1004:  sys_mount_instead_linux_fs.diff
 
 #suse
@@ -77,6 +73,7 @@
 
 Patch1017:  version-plugins-in-libdir
 Patch1018:  dmeventd-fix-dso-name-wrong-compare.patch
+Patch1019:  lvm2-lvmetad.service-add-Also-lvm2-lvmetad.socket.patch
 
 # device-mapper patches
 #suse, bnc#707253(also merged patch for bnc#479104)
@@ -88,8 +85,6 @@
 Patch2004:  udev_rules-update.diff
 #suse, bnc#875233
 Patch2005:  udev-Check-for-DM_NR_VALID_PATHS.patch
-# suse, boo#910327 - DO NOT STRIP pdata_tools - Before ever removing this 
patch, understand the issue
-Patch2006:  lvm2-do-not-strip-pdata_tools.patch
 Patch2007:  fsadm-add-support-for-btrfs.patch
 Patch2008:  Import-ID_FS_XXX-variables-bnc909358.patch
 Patch2009:  10-dm.rules-Reset-state-variable-for-spurious-events.patch
@@ -128,12 +123,10 @@
 
 
 %prep
-%setup -q -n LVM2.%{version} -a 50  -a 16 
+%setup -q -n LVM2.%{version} -a 16 
 
-%patch1 -p1
 %patch1001 -p1
 %patch1002 -p1
-%patch1003 -p1
 %patch1004 -p1
 %patch1005 -p1
 %patch1006 -p1
@@ -151,6 +144,7 @@
 %endif
 %patch1017 -p1
 %patch1018 -p1
+%patch1019 -p1
 
 %patch2000 -p1
 %patch2001 -p1
@@ -158,7 +152,6 @@
 %patch2003 -p1
 %patch2004 -p1
 %patch2005 -p1
-%patch2006 -p1
 %patch2007 -p1
 %patch2008 -p1
 %patch2009 -p1
@@ -220,12 +213,6 @@
 popd
 %endif
 
-pushd thin-provisioning-tools-%{thin_provisioning_version}
-autoreconf -fiv
-%configure --sbindir=/sbin --prefix="%_prefix"
-make %{?_smp_mflags}
-popd
-
 %install
 %make_install
 make install_system_dirs DESTDIR="%buildroot"
@@ -269,10 +256,6 @@
 ln -sf ../../sbin/lvm lvm
 popd
 
-pushd thin-provisioning-tools-%{thin_provisioning_version}
-%make_install
-popd
-
 %pre
 %service_add_pre blk-availability.service lvm2-monitor.service 
lvm2-lvmetad.socket 

commit lvm2 for openSUSE:Factory

2015-12-18 Thread h_root
Hello community,

here is the log from the commit of package lvm2 for openSUSE:Factory checked in 
at 2015-12-18 21:53:10

Comparing /work/SRC/openSUSE:Factory/lvm2 (Old)
 and  /work/SRC/openSUSE:Factory/.lvm2.new (New)


Package is "lvm2"

Changes:

--- /work/SRC/openSUSE:Factory/lvm2/lvm2.changes2015-08-27 
08:54:06.0 +0200
+++ /work/SRC/openSUSE:Factory/.lvm2.new/lvm2.changes   2015-12-18 
21:53:12.0 +0100
@@ -1,0 +2,11 @@
+Mon Dec 14 14:52:00 CET 2015 - ti...@suse.de
+
+- Fix missing dependency on coreutils for initrd macros (boo#958562)
+- Call missing initrd macro at postun (boo#958562)
+
+---
+Fri Dec 11 16:03:58 UTC 2015 - dims...@opensuse.org
+
+- Re-add lvm2-do-not-strip-pdata_tools.patch: this is still needed.
+
+---

New:

  lvm2-do-not-strip-pdata_tools.patch



Other differences:
--
++ lvm2.spec ++
--- /var/tmp/diff_new_pack.hUKsOn/_old  2015-12-18 21:53:14.0 +0100
+++ /var/tmp/diff_new_pack.hUKsOn/_new  2015-12-18 21:53:14.0 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package lvm2
 #
-# Copyright (c) 2015 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -88,7 +88,8 @@
 Patch2004:  udev_rules-update.diff
 #suse, bnc#875233
 Patch2005:  udev-Check-for-DM_NR_VALID_PATHS.patch
-# suse, boo#910327
+# suse, boo#910327 - DO NOT STRIP pdata_tools - Before ever removing this 
patch, understand the issue
+Patch2006:  lvm2-do-not-strip-pdata_tools.patch
 Patch2007:  fsadm-add-support-for-btrfs.patch
 Patch2008:  Import-ID_FS_XXX-variables-bnc909358.patch
 Patch2009:  10-dm.rules-Reset-state-variable-for-spurious-events.patch
@@ -103,6 +104,8 @@
 BuildRequires:  systemd-rpm-macros
 BuildRequires:  pkgconfig(udev)
 Requires:   device-mapper >= 1.02.90
+Requires(post): coreutils
+Requires(postun): coreutils
 Provides:   lvm = %version-%release
 # Not a real replacement but we drop evms
 Provides:   evms = 2.5.5
@@ -155,6 +158,7 @@
 %patch2003 -p1
 %patch2004 -p1
 %patch2005 -p1
+%patch2006 -p1
 %patch2007 -p1
 %patch2008 -p1
 %patch2009 -p1
@@ -285,6 +289,7 @@
 
 %postun
 /sbin/ldconfig
+%{?regenerate_initrd_post}
 %service_del_postun blk-availability.service lvm2-monitor.service 
lvm2-lvmetad.service
 
 %files
@@ -456,6 +461,8 @@
 BuildRequires:  systemd-rpm-macros
 BuildRequires:  pkgconfig(libudev)
 Requires:   expat
+Requires(post): coreutils
+Requires(postun): coreutils
 PreReq: %insserv_prereq %fillup_prereq
 
 %description -n device-mapper
@@ -478,6 +485,7 @@
 
 %postun -n device-mapper
 %service_del_postun dm-event.service dm-event.socket
+%{?regenerate_initrd_post}
 /sbin/ldconfig
 
 %files -n device-mapper


++ lvm2-do-not-strip-pdata_tools.patch ++
DO NOT REMOVE THIS UNLESS YOU ACTUALLY UNDERSTAND WHAT IT DOES

in openSUSE, we do not strip binaries running make install - as this would
result in totally useless -debuginfo packages (while those are generated,
the binaries are striped, so the installed binaries are what we expect)

In this particular case, striping results in build failures of 
installation-images-openSUSE-extras,
as it creates a list of all required -debuginfo packages, based on the build_id.

Once stripped, the build_id can't be found in any valid -debuginfo, resulting 
in unresolvable
builds.

Index: LVM2.2.02.120/thin-provisioning-tools-0.5.3/Makefile.in
===
--- LVM2.2.02.120.orig/thin-provisioning-tools-0.5.3/Makefile.in
+++ LVM2.2.02.120/thin-provisioning-tools-0.5.3/Makefile.in
@@ -111,7 +111,7 @@ MANPATH:=$(DATADIR)/man
 vpath %.cc $(TOP_DIR)
 
 INSTALL_DIR = $(INSTALL) -m 755 -d
-INSTALL_PROGRAM = $(INSTALL) -m 755 -s
+INSTALL_PROGRAM = $(INSTALL) -m 755
 INSTALL_DATA = $(INSTALL) -p -m 644
 
 ifeq ("@TESTING@", "yes")



commit lvm2 for openSUSE:Factory

2015-08-27 Thread h_root
Hello community,

here is the log from the commit of package lvm2 for openSUSE:Factory checked in 
at 2015-08-27 08:54:05

Comparing /work/SRC/openSUSE:Factory/lvm2 (Old)
 and  /work/SRC/openSUSE:Factory/.lvm2.new (New)


Package is lvm2

Changes:

--- /work/SRC/openSUSE:Factory/lvm2/lvm2.changes2015-08-10 
09:09:23.0 +0200
+++ /work/SRC/openSUSE:Factory/.lvm2.new/lvm2.changes   2015-08-27 
08:54:06.0 +0200
@@ -1,0 +2,6 @@
+Tue Aug 25 02:27:10 UTC 2015 - lw...@suse.com
+
+- Fix boot failed due to segfault at libc (bnc#942755)
+  add: lvmetad.c-ignore-lvmetad-global-handle-on-disconnect.patch
+
+---

New:

  lvmetad.c-ignore-lvmetad-global-handle-on-disconnect.patch



Other differences:
--
++ lvm2.spec ++
--- /var/tmp/diff_new_pack.HSR1i6/_old  2015-08-27 08:54:08.0 +0200
+++ /var/tmp/diff_new_pack.HSR1i6/_new  2015-08-27 08:54:08.0 +0200
@@ -40,6 +40,7 @@
 Source50:   thin-provisioning-tools-v%{thin_provisioning_version}.tar.gz
 
 # Upstream patches first
+Patch1: lvmetad.c-ignore-lvmetad-global-handle-on-disconnect.patch
 
 # SUSE patches 1000- for LVM, 2000- for device mapper
 Patch1001:  improve_probing.diff
@@ -126,6 +127,7 @@
 %prep
 %setup -q -n LVM2.%{version} -a 50  -a 16 
 
+%patch1 -p1
 %patch1001 -p1
 %patch1002 -p1
 %patch1003 -p1


++ lvmetad.c-ignore-lvmetad-global-handle-on-disconnect.patch ++
From f8bf6410954fcf82bf28852e0dba015c6b7f19dc Mon Sep 17 00:00:00 2001
From: Ondrej Kozina okoz...@redhat.com
Date: Fri, 22 May 2015 14:48:28 +0200
Subject: [PATCH] lvmetad.c: ignore lvmetad global handle on disconnect

do not unset lvmetad global handle on disconnect. This is
hotfix for issue described in:
https://www.redhat.com/archives/linux-lvm/2015-May/msg8.html

Reported-by: Christian Hesse l...@eworm.de
---
 lib/cache/lvmetad.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/lib/cache/lvmetad.c b/lib/cache/lvmetad.c
index 68162b6..73a382c 100644
--- a/lib/cache/lvmetad.c
+++ b/lib/cache/lvmetad.c
@@ -39,7 +39,6 @@ void lvmetad_disconnect(void)
if (_lvmetad_connected)
daemon_close(_lvmetad);
_lvmetad_connected = 0;
-   _lvmetad_cmd = NULL;
 }
 
 void lvmetad_init(struct cmd_context *cmd)
-- 
1.8.4.5




commit lvm2 for openSUSE:Factory

2015-08-10 Thread h_root
Hello community,

here is the log from the commit of package lvm2 for openSUSE:Factory checked in 
at 2015-08-10 09:09:22

Comparing /work/SRC/openSUSE:Factory/lvm2 (Old)
 and  /work/SRC/openSUSE:Factory/.lvm2.new (New)


Package is lvm2

Changes:

--- /work/SRC/openSUSE:Factory/lvm2/lvm2.changes2015-08-02 
22:45:42.0 +0200
+++ /work/SRC/openSUSE:Factory/.lvm2.new/lvm2.changes   2015-08-10 
09:09:23.0 +0200
@@ -1,0 +2,6 @@
+Thu Aug  6 06:13:20 UTC 2015 - lw...@suse.com
+
+- fix spec to change /sbin/thin-check to %{_sbindir}/thin-check.
+  (bnc#940754)
+
+---



Other differences:
--
++ lvm2.spec ++
--- /var/tmp/diff_new_pack.xXudFz/_old  2015-08-10 09:09:25.0 +0200
+++ /var/tmp/diff_new_pack.xXudFz/_new  2015-08-10 09:09:25.0 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package lvm2
 #
-# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2015 SUSE LINUX Products GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -198,7 +198,7 @@
--with-device-mode=0640 \
--with-device-uid=0 \
--with-dmeventd-path=/sbin/dmeventd \
-   --with-thin-check=/sbin/thin_check \
+   --with-thin-check=%{_sbindir}/thin_check \
--with-thin-dump=%{_sbindir}/thin_dump \
--with-thin-repair=%{_sbindir}/thin_repair \
--with-udev-prefix=%_prefix/





commit lvm2 for openSUSE:Factory

2015-08-02 Thread h_root
Hello community,

here is the log from the commit of package lvm2 for openSUSE:Factory checked in 
at 2015-08-02 22:45:40

Comparing /work/SRC/openSUSE:Factory/lvm2 (Old)
 and  /work/SRC/openSUSE:Factory/.lvm2.new (New)


Package is lvm2

Changes:

--- /work/SRC/openSUSE:Factory/lvm2/lvm2.changes2015-07-23 
15:22:00.0 +0200
+++ /work/SRC/openSUSE:Factory/.lvm2.new/lvm2.changes   2015-08-02 
22:45:42.0 +0200
@@ -1,0 +2,17 @@
+Mon Jul 27 19:35:15 UTC 2015 - mplus...@suse.com
+
+- Update thin-provisioning tools to 0.5.3
+  * Fix bug where the tools would crash if given a very large 
+metadata device to restore to.
+  * - thin_delta, thin_trim
+  * --clear-needs-check flag for cache_check
+  * space map checking for thin check
+- Drop unnecessary lvm2-do-not-strip-pdata_tools.patch
+
+---
+Fri Jul 24 13:16:09 UTC 2015 - dval...@suse.com
+
+- Allow building without clvm (boo#923127)
+  Keep clvm2 building by default
+
+---

Old:

  lvm2-do-not-strip-pdata_tools.patch
  thin-provisioning-tools-v0.4.1.tar.gz

New:

  thin-provisioning-tools-v0.5.3.tar.gz



Other differences:
--
++ lvm2.spec ++
--- /var/tmp/diff_new_pack.Ue0Dcv/_old  2015-08-02 22:45:44.0 +0200
+++ /var/tmp/diff_new_pack.Ue0Dcv/_new  2015-08-02 22:45:44.0 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package lvm2
 #
-# Copyright (c) 2015 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -18,7 +18,9 @@
 
 %define lvm2_version  2.02.120
 %define device_mapper_version 1.02.97
-%define thin_provisioning_version 0.4.1
+%define thin_provisioning_version 0.5.3
+
+%bcond_without clvm
 
 Name:   lvm2
 Version:%{lvm2_version}
@@ -86,7 +88,6 @@
 #suse, bnc#875233
 Patch2005:  udev-Check-for-DM_NR_VALID_PATHS.patch
 # suse, boo#910327
-Patch2006:  lvm2-do-not-strip-pdata_tools.patch
 Patch2007:  fsadm-add-support-for-btrfs.patch
 Patch2008:  Import-ID_FS_XXX-variables-bnc909358.patch
 Patch2009:  10-dm.rules-Reset-state-variable-for-spurious-events.patch
@@ -140,7 +141,9 @@
 %patch1013 -p1
 %patch1014 -p1
 %patch1015 -p1
+%if %{with clvm}
 %patch1016 -p1
+%endif
 %patch1017 -p1
 %patch1018 -p1
 
@@ -150,7 +153,6 @@
 %patch2003 -p1
 %patch2004 -p1
 %patch2005 -p1
-%patch2006 -p1
 %patch2007 -p1
 %patch2008 -p1
 %patch2009 -p1
@@ -179,12 +181,14 @@
--enable-realtime \
--enable-pkgconfig \
--enable-selinux \
+%if %{with clvm}
--with-clvmd=corosync \
--with-cluster=internal \
-   --datarootdir=%_datadir \
-   --with-default-locking-dir=/run/lock/lvm \
--enable-cmirrord \
+%endif
+   --datarootdir=%_datadir \
--enable-lvmetad \
+   --with-default-locking-dir=/run/lock/lvm \
--with-default-pid-dir=/run \
--with-default-dm-run-dir=/run \
--with-default-run-dir=/run/lvm \
@@ -203,10 +207,12 @@
 
 make %{?_smp_mflags}
 
+%if %{with clvm}
 #csm convert
 pushd bnz
 make %{?_smp_mflags}
 popd
+%endif
 
 pushd thin-provisioning-tools-%{thin_provisioning_version}
 autoreconf -fiv
@@ -225,9 +231,18 @@
 install -m 644 %{SOURCE1} %buildroot/%_sysconfdir/lvm/
 mkdir -p %buildroot/%_initddir
 mkdir -p %buildroot/%_sbindir
+%if %{with clvm}
 install -m755 -D %{S:8} %buildroot/%_prefix/lib/ocf/resource.d/lvm2/clvmd
 install -m755 -D %{S:10} %buildroot/%_prefix/lib/ocf/resource.d/lvm2/cmirrord
 
+#csm-convert
+pushd bnz
+install -m755 -D csm-converter %buildroot/%_sbindir/csm-converter
+install -m755 -D csm-converter-helper 
%buildroot/%_sbindir/csm-converter-helper
+mv README.csm-converter ..
+popd
+%endif
+
 # Make sure libdevmapper.so.1.02 libdevmapper-event.so.1.02 still available
 # on Tumbleweed, as virtualbox.org didn't update their RPMs yet.
 rm -f libdm/ioctl/libdevmapper.so daemons/dmeventd/libdevmapper-event.so
@@ -248,13 +263,6 @@
 ln -sf ../../sbin/lvm lvm
 popd
 
-#csm-convert
-pushd bnz
-install -m755 -D csm-converter %buildroot/%_sbindir/csm-converter
-install -m755 -D csm-converter-helper 
%buildroot/%_sbindir/csm-converter-helper
-mv README.csm-converter ..
-popd
-
 pushd thin-provisioning-tools-%{thin_provisioning_version}
 %make_install
 popd
@@ -326,6 +334,7 @@
 %_mandir/man8/vg*.8*
 %_mandir/man7/lvm*.7*
 
+%if %{with clvm}
 %package clvm
 Url:http://sources.redhat.com/cluster/clvm/
 Version:%{lvm2_version}
@@ -403,6 +412,7 @@
 /usr/lib/ocf/resource.d/lvm2/cmirrord
 

commit lvm2 for openSUSE:Factory

2015-06-09 Thread h_root
Hello community,

here is the log from the commit of package lvm2 for openSUSE:Factory checked in 
at 2015-06-09 12:23:45

Comparing /work/SRC/openSUSE:Factory/lvm2 (Old)
 and  /work/SRC/openSUSE:Factory/.lvm2.new (New)


Package is lvm2

Changes:

--- /work/SRC/openSUSE:Factory/lvm2/lvm2.changes2015-04-10 
09:49:06.0 +0200
+++ /work/SRC/openSUSE:Factory/.lvm2.new/lvm2.changes   2015-06-09 
12:23:46.0 +0200
@@ -1,0 +2,7 @@
+Tue May 19 16:30:47 UTC 2015 - je...@suse.com
+
+- Update to 2.02.120
+  - Fixed numerous bugs(see WHATS_NEW for full details)
+  - Deleted dab3ebce-devices-Do-not-support-unpartitioned-DASD.patch (upstream)
+
+---

Old:

  LVM2.2.02.114.tgz
  LVM2.2.02.114.tgz.asc
  dab3ebce-devices-Do-not-support-unpartitioned-DASD.patch

New:

  LVM2.2.02.120.tgz
  LVM2.2.02.120.tgz.asc



Other differences:
--
++ lvm2.spec ++
--- /var/tmp/diff_new_pack.cZAQ1C/_old  2015-06-09 12:23:48.0 +0200
+++ /var/tmp/diff_new_pack.cZAQ1C/_new  2015-06-09 12:23:48.0 +0200
@@ -16,8 +16,8 @@
 #
 
 
-%define lvm2_version  2.02.114
-%define device_mapper_version 1.02.92
+%define lvm2_version  2.02.120
+%define device_mapper_version 1.02.97
 %define thin_provisioning_version 0.4.1
 
 Name:   lvm2
@@ -38,8 +38,6 @@
 Source50:   thin-provisioning-tools-v%{thin_provisioning_version}.tar.gz
 
 # Upstream patches first
-# bsc#894202
-Patch1: dab3ebce-devices-Do-not-support-unpartitioned-DASD.patch
 
 # SUSE patches 1000- for LVM, 2000- for device mapper
 Patch1001:  improve_probing.diff
@@ -124,7 +122,6 @@
 %prep
 %setup -q -n LVM2.%{version} -a 50  -a 16 
 
-%patch1 -p1
 %patch1001 -p1
 %patch1002 -p1
 %patch1003 -p1
@@ -287,6 +284,7 @@
 %dir /usr/lib/tmpfiles.d
 %ghost %{_sysconfdir}/lvm/cache/.cache
 %{_sysconfdir}/lvm/profile/*.profile
+%{_sysconfdir}/lvm/lvmlocal.conf
 %{_udevdir}/rules.d/11-dm-lvm.rules
 %{_udevdir}/rules.d/69-dm-lvm-metad.rules
 %{_unitdir}/blk-availability.service

++ LVM2.2.02.114.tgz - LVM2.2.02.120.tgz ++
 44103 lines of diff (skipped)

++ cluster_support_mirrord_log.diff ++
--- /var/tmp/diff_new_pack.cZAQ1C/_old  2015-06-09 12:23:48.0 +0200
+++ /var/tmp/diff_new_pack.cZAQ1C/_new  2015-06-09 12:23:48.0 +0200
@@ -456,7 +456,7 @@
 -  if (!lv_is_pvmove(lv)  !lv_is_locked(lv) 
 -  lv_is_active(lv) 
 -  !lv_is_active_exclusive_locally(lv)  /* 
lv_is_active_remotely */
--  !_cluster_mirror_is_available(lv)) {
+-  !cluster_mirror_is_available(lv-vg-cmd)) {
 -  log_error(Shared cluster mirrors are not available.);
 -  return 0;
 -  }

++ device-mapper-static.patch ++
--- /var/tmp/diff_new_pack.cZAQ1C/_old  2015-06-09 12:23:48.0 +0200
+++ /var/tmp/diff_new_pack.cZAQ1C/_new  2015-06-09 12:23:48.0 +0200
@@ -3,8 +3,8 @@
 --- LVM2.2.02.109.orig/libdm/Makefile.in
 +++ LVM2.2.02.109/libdm/Makefile.in
 @@ -39,9 +39,9 @@ INCLUDES += @VALGRIND_CFLAGS@
- endif
- CFLAGS += $(UDEV_CFLAGS)
+ 
+ INCLUDES = -I$(srcdir)/$(interface)
  
 -ifeq (@STATIC_LINK@, yes)
 +#ifeq (@STATIC_LINK@, yes)

++ display-dm-name-for-lv-name.diff ++
--- /var/tmp/diff_new_pack.cZAQ1C/_old  2015-06-09 12:23:48.0 +0200
+++ /var/tmp/diff_new_pack.cZAQ1C/_new  2015-06-09 12:23:48.0 +0200
@@ -1,33 +1,34 @@
 ---
- lib/config/config_settings.h |1 +
+ lib/config/config_settings.h |3 +++
  lib/config/defaults.h|1 +
- lib/display/display.c|   14 ++
- lib/display/display.h|1 +
- 4 files changed, 13 insertions(+), 4 deletions(-)
+ lib/display/display.c|   13 +
+ 3 files changed, 13 insertions(+), 4 deletions(-)
 
 --- a/lib/config/config_settings.h
 +++ b/lib/config/config_settings.h
-@@ -187,6 +187,7 @@ cfg_array(global_cache_check_options_CFG
- cfg(global_cache_dump_executable_CFG, cache_dump_executable, 
global_CFG_SECTION, CFG_ALLOW_EMPTY, CFG_TYPE_STRING, CACHE_DUMP_CMD, vsn(2, 2, 
108), NULL)
- cfg(global_cache_repair_executable_CFG, cache_repair_executable, 
global_CFG_SECTION, CFG_ALLOW_EMPTY, CFG_TYPE_STRING, CACHE_REPAIR_CMD, vsn(2, 
2, 108), NULL)
- cfg_array(global_cache_repair_options_CFG, cache_repair_options, 
global_CFG_SECTION, 0, CFG_TYPE_STRING, #S DEFAULT_CACHE_REPAIR_OPTIONS, 
vsn(2, 2, 108), NULL)
-+cfg(global_display_dm_name_for_lv_name_CFG, display_dm_name_for_lv_name, 
global_CFG_SECTION, 0, CFG_TYPE_BOOL, DEFAULT_DISPLAY_DM_NAME_FOR_LV_NAME, 
vsn(2, 2, 98), NULL)
+@@ -905,6 +905,9 @@ cfg_array(global_cache_check_options_CFG
+ 

commit lvm2 for openSUSE:Factory

2015-03-29 Thread h_root
Hello community,

here is the log from the commit of package lvm2 for openSUSE:Factory checked in 
at 2015-03-29 20:16:03

Comparing /work/SRC/openSUSE:Factory/lvm2 (Old)
 and  /work/SRC/openSUSE:Factory/.lvm2.new (New)


Package is lvm2

Changes:

--- /work/SRC/openSUSE:Factory/lvm2/lvm2.changes2015-02-14 
13:46:09.0 +0100
+++ /work/SRC/openSUSE:Factory/.lvm2.new/lvm2.changes   2015-03-29 
20:16:04.0 +0200
@@ -1,0 +2,7 @@
+Mon Mar 23 07:50:05 UTC 2015 - lw...@suse.com
+
+- Moved BuildRequires: libcorosync-devel and libdlm-devel from lvm package
+  to clmv package to avoid dracut build needing cluster stack to be built.
+  (bsc#923127)
+
+---



Other differences:
--
++ lvm2.spec ++
--- /var/tmp/diff_new_pack.yo30AJ/_old  2015-03-29 20:16:06.0 +0200
+++ /var/tmp/diff_new_pack.yo30AJ/_new  2015-03-29 20:16:06.0 +0200
@@ -93,8 +93,6 @@
 BuildRequires:  autoconf
 BuildRequires:  automake
 BuildRequires:  libaio-devel
-BuildRequires:  libcorosync-devel
-BuildRequires:  libdlm-devel
 BuildRequires:  libselinux-devel
 BuildRequires:  readline-devel
 BuildRequires:  suse-module-tools
@@ -319,6 +317,8 @@
 Url:http://sources.redhat.com/cluster/clvm/
 Version:%{lvm2_version}
 Release:0
+BuildRequires:  libcorosync-devel
+BuildRequires:  libdlm-devel
 Requires:   corosync
 Requires:   device-mapper = 1.02.25
 Requires:   lvm2 = %{version}


-- 
To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org
For additional commands, e-mail: opensuse-commit+h...@opensuse.org



commit lvm2 for openSUSE:Factory

2015-02-14 Thread h_root
Hello community,

here is the log from the commit of package lvm2 for openSUSE:Factory checked in 
at 2015-02-14 13:46:07

Comparing /work/SRC/openSUSE:Factory/lvm2 (Old)
 and  /work/SRC/openSUSE:Factory/.lvm2.new (New)


Package is lvm2

Changes:

--- /work/SRC/openSUSE:Factory/lvm2/lvm2.changes2015-02-01 
12:29:30.0 +0100
+++ /work/SRC/openSUSE:Factory/.lvm2.new/lvm2.changes   2015-02-14 
13:46:09.0 +0100
@@ -1,0 +2,11 @@
+Thu Feb  5 03:13:52 UTC 2015 - lw...@suse.com
+
+- LVM2 does not support unpartitioned DASD device which has special
+  format in the first 2 tracks and will siliently discards LVM2 lable
+  information written to it when pvcreate. (bsc#894202)
+  Add: dab3ebce-devices-Do-not-support-unpartitioned-DASD.patch 
+- Delete lvm2-lvmetad.socket from %service_del_preun/postun to avoid
+  lvmetad.service being started by 'systemctl retry-start' when updating
+  package. (bsc#914415)
+
+---

New:

  dab3ebce-devices-Do-not-support-unpartitioned-DASD.patch



Other differences:
--
++ lvm2.spec ++
--- /var/tmp/diff_new_pack.slQRGS/_old  2015-02-14 13:46:11.0 +0100
+++ /var/tmp/diff_new_pack.slQRGS/_new  2015-02-14 13:46:11.0 +0100
@@ -38,7 +38,8 @@
 Source50:   thin-provisioning-tools-v%{thin_provisioning_version}.tar.gz
 
 # Upstream patches first
-# (currently none)
+# bsc#894202
+Patch1: dab3ebce-devices-Do-not-support-unpartitioned-DASD.patch
 
 # SUSE patches 1000- for LVM, 2000- for device mapper
 Patch1001:  improve_probing.diff
@@ -123,6 +124,8 @@
 
 %prep
 %setup -q -n LVM2.%{version} -a 50  -a 16 
+
+%patch1 -p1
 %patch1001 -p1
 %patch1002 -p1
 %patch1003 -p1
@@ -258,11 +261,11 @@
 %{?regenerate_initrd_posttrans}
 
 %preun
-%service_del_preun blk-availability.service lvm2-monitor.service 
lvm2-lvmetad.socket lvm2-lvmetad.service
+%service_del_preun blk-availability.service lvm2-monitor.service 
lvm2-lvmetad.service 
 
 %postun
 /sbin/ldconfig
-%service_del_postun blk-availability.service lvm2-monitor.service 
lvm2-lvmetad.socket lvm2-lvmetad.service
+%service_del_postun blk-availability.service lvm2-monitor.service 
lvm2-lvmetad.service
 
 %files
 %defattr(-,root,root)


++ dab3ebce-devices-Do-not-support-unpartitioned-DASD.patch ++
Index: LVM2.2.02.114/lib/device/dev-type.c
===
--- LVM2.2.02.114.orig/lib/device/dev-type.c
+++ LVM2.2.02.114/lib/device/dev-type.c
@@ -112,6 +112,10 @@ struct dev_types *create_dev_types(const
if (!strncmp(drbd, line + i, 4)  isspace(*(line + i + 4)))
dt-drbd_major = line_maj;
 
+   /* Look for DASD */
+   if (!strncmp(dasd, line + i, 4)  isspace(*(line + i + 4)))
+   dt-dasd_major = line_maj;
+
/* Look for EMC powerpath */
if (!strncmp(emcpower, line + i, 8)  isspace(*(line + i + 
8)))
dt-emcpower_major = line_maj;
@@ -203,6 +207,9 @@ int dev_subsystem_part_major(struct dev_
if (MAJOR(dev-dev) == dt-emcpower_major)
return 1;
 
+   if (MAJOR(dev-dev) == dt-dasd_major)
+   return 1;
+
if (MAJOR(dev-dev) == dt-power2_major)
return 1;
 
@@ -222,6 +229,9 @@ const char *dev_subsystem_name(struct de
if (MAJOR(dev-dev) == dt-drbd_major)
return DRBD;
 
+   if (MAJOR(dev-dev) == dt-dasd_major)
+   return DASD;
+
if (MAJOR(dev-dev) == dt-emcpower_major)
return EMCPOWER;
 
@@ -319,6 +329,10 @@ int dev_is_partitioned(struct dev_types
if (!_is_partitionable(dt, dev))
return 0;
 
+   /* Unpartitioned DASD devices are not supported. */
+   if (MAJOR(dev-dev) == dt-dasd_major)
+   return 1;
+
return _has_partition_table(dev);
 }
 
Index: LVM2.2.02.114/lib/device/dev-type.h
===
--- LVM2.2.02.114.orig/lib/device/dev-type.h
+++ LVM2.2.02.114/lib/device/dev-type.h
@@ -44,6 +44,7 @@ struct dev_types {
int device_mapper_major;
int emcpower_major;
int power2_major;
+   int dasd_major;
struct dev_type_def dev_type_array[NUMBER_OF_MAJORS];
 };
 
-- 
To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org
For additional commands, e-mail: opensuse-commit+h...@opensuse.org



commit lvm2 for openSUSE:Factory

2015-02-01 Thread h_root
Hello community,

here is the log from the commit of package lvm2 for openSUSE:Factory checked in 
at 2015-02-01 12:29:29

Comparing /work/SRC/openSUSE:Factory/lvm2 (Old)
 and  /work/SRC/openSUSE:Factory/.lvm2.new (New)


Package is lvm2

Changes:

--- /work/SRC/openSUSE:Factory/lvm2/lvm2.changes2015-01-21 
21:56:24.0 +0100
+++ /work/SRC/openSUSE:Factory/.lvm2.new/lvm2.changes   2015-02-01 
12:29:30.0 +0100
@@ -1,0 +2,5 @@
+Thu Jan 22 09:45:12 UTC 2015 - mplus...@suse.com
+
+- Don't replace lvm.conf
+
+---



Other differences:
--
++ lvm2.spec ++
--- /var/tmp/diff_new_pack.Rp7myQ/_old  2015-02-01 12:29:32.0 +0100
+++ /var/tmp/diff_new_pack.Rp7myQ/_new  2015-02-01 12:29:32.0 +0100
@@ -285,7 +285,7 @@
 %{_unitdir}/lvm2-lvmetad.service
 %{_unitdir}/lvm2-pvscan@.service
 %{_tmpfilesdir}/lvm2.conf
-%config %{_sysconfdir}/lvm/lvm.conf
+%config(noreplace) %{_sysconfdir}/lvm/lvm.conf
 /usr/lib/systemd/system-generators/lvm2-activation-generator
 /sbin/blkdeactivate
 /sbin/fsadm


-- 
To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org
For additional commands, e-mail: opensuse-commit+h...@opensuse.org



commit lvm2 for openSUSE:Factory

2015-01-21 Thread h_root
Hello community,

here is the log from the commit of package lvm2 for openSUSE:Factory checked in 
at 2015-01-21 21:55:54

Comparing /work/SRC/openSUSE:Factory/lvm2 (Old)
 and  /work/SRC/openSUSE:Factory/.lvm2.new (New)


Package is lvm2

Changes:

--- /work/SRC/openSUSE:Factory/lvm2/lvm2.changes2015-01-10 
23:07:02.0 +0100
+++ /work/SRC/openSUSE:Factory/.lvm2.new/lvm2.changes   2015-01-21 
21:56:24.0 +0100
@@ -1,0 +2,7 @@
+Mon Jan 12 08:33:14 UTC 2015 - mplus...@suse.com
+
+- Re-add lvm2-lvmetad.service to %service_add_pre/post
+- Add service registrations for cmirrord and clvm
+- Correct category for device-mapper-devel
+
+---



Other differences:
--
++ lvm2.spec ++
--- /var/tmp/diff_new_pack.XFbnrg/_old  2015-01-21 21:56:25.0 +0100
+++ /var/tmp/diff_new_pack.XFbnrg/_new  2015-01-21 21:56:25.0 +0100
@@ -247,22 +247,22 @@
 popd
 
 %pre
-%service_add_pre blk-availability.service lvm2-monitor.service 
lvm2-lvmetad.socket
+%service_add_pre blk-availability.service lvm2-monitor.service 
lvm2-lvmetad.socket lvm2-lvmetad.service
 
 %post
 /sbin/ldconfig
 %{?regenerate_initrd_post}
-%service_add_post blk-availability.service lvm2-monitor.service 
lvm2-lvmetad.socket 
+%service_add_post blk-availability.service lvm2-monitor.service 
lvm2-lvmetad.socket lvm2-lvmetad.service
 
 %posttrans
 %{?regenerate_initrd_posttrans}
 
 %preun
-%service_del_preun blk-availability.service lvm2-monitor.service 
lvm2-lvmetad.socket
+%service_del_preun blk-availability.service lvm2-monitor.service 
lvm2-lvmetad.socket lvm2-lvmetad.service
 
 %postun
 /sbin/ldconfig
-%service_del_postun blk-availability.service lvm2-monitor.service 
lvm2-lvmetad.socket
+%service_del_postun blk-availability.service lvm2-monitor.service 
lvm2-lvmetad.socket lvm2-lvmetad.service
 
 %files
 %defattr(-,root,root)
@@ -328,7 +328,17 @@
 %description clvm
 A daemon for using LVM2 Logival Volumes in a clustered environment.
 
+%pre clvm
+%service_add_pre lvm2-cluster-activation.service lvm2-clvmd.service
 
+%post clvm
+%service_add_post lvm2-cluster-activation.service lvm2-clvmd.service
+
+%preun clvm
+%service_del_preun lvm2-cluster-activation.service lvm2-clvmd.service
+
+%postun clvm
+%service_del_postun lvm2-cluster-activation.service lvm2-clvmd.service
 
 %files clvm
 %defattr(-,root,root)
@@ -359,7 +369,17 @@
 %description cmirrord
 A daemon for using LVM2 Logival Volumes in a clustered environment.
 
+%pre cmirrord
+%service_add_pre lvm2-cmirrord.service lvm2-cluster-activation.service
+
+%post cmirrord
+%service_add_post lvm2-cmirrord.service lvm2-cluster-activation.service
 
+%preun cmirrord
+%service_del_preun lvm2-cmirrord.service lvm2-cluster-activation.service
+
+%postun cmirrord
+%service_del_postun lvm2-cmirrord.service lvm2-cluster-activation.service
 
 %files cmirrord
 %defattr(-,root,root)
@@ -457,7 +477,7 @@
 
 %package -n device-mapper-devel
 Summary:Development package for the device mapper
-Group:  System/Base
+Group:  Development/Libraries/C and C++
 Version:%{device_mapper_version}
 Release:0
 Requires:   device-mapper = %{device_mapper_version}


-- 
To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org
For additional commands, e-mail: opensuse-commit+h...@opensuse.org



commit lvm2 for openSUSE:Factory

2015-01-10 Thread h_root
Hello community,

here is the log from the commit of package lvm2 for openSUSE:Factory checked in 
at 2015-01-10 23:06:59

Comparing /work/SRC/openSUSE:Factory/lvm2 (Old)
 and  /work/SRC/openSUSE:Factory/.lvm2.new (New)


Package is lvm2

Changes:

--- /work/SRC/openSUSE:Factory/lvm2/lvm2.changes2015-01-05 
04:44:16.0 +0100
+++ /work/SRC/openSUSE:Factory/.lvm2.new/lvm2.changes   2015-01-10 
23:07:02.0 +0100
@@ -1,0 +2,8 @@
+Thu Jan  8 15:21:17 UTC 2015 - dims...@opensuse.org
+
+- Add lvm2-do-not-strip-pdata_tools.patch: Change build system to
+  not strip pdata_tools during installation. We need the file in
+  tact in order to be able to produce valid debuginfo packages
+  (boo#910327).
+
+---

New:

  lvm2-do-not-strip-pdata_tools.patch



Other differences:
--
++ lvm2.spec ++
--- /var/tmp/diff_new_pack.0X2JBD/_old  2015-01-10 23:07:03.0 +0100
+++ /var/tmp/diff_new_pack.0X2JBD/_new  2015-01-10 23:07:03.0 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package lvm2
 #
-# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2015 SUSE LINUX Products GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -85,6 +85,8 @@
 Patch2004:  udev_rules-update.diff
 #suse, bnc#875233
 Patch2005:  udev-Check-for-DM_NR_VALID_PATHS.patch
+# suse, boo#910327
+Patch2006:  lvm2-do-not-strip-pdata_tools.patch
 
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build
 BuildRequires:  autoconf
@@ -145,6 +147,7 @@
 %patch2003 -p1
 %patch2004 -p1
 %patch2005 -p1
+%patch2006 -p1
 
 %build
 #set path so that thin_check can be found


++ lvm2-do-not-strip-pdata_tools.patch ++
Index: LVM2.2.02.114/thin-provisioning-tools-0.4.1/Makefile.in
===
--- LVM2.2.02.114.orig/thin-provisioning-tools-0.4.1/Makefile.in
+++ LVM2.2.02.114/thin-provisioning-tools-0.4.1/Makefile.in
@@ -108,7 +108,7 @@ MANPATH:=$(DATADIR)/man
 vpath %.cc $(TOP_DIR)
 
 INSTALL_DIR = $(INSTALL) -m 755 -d
-INSTALL_PROGRAM = $(INSTALL) -m 755 -s
+INSTALL_PROGRAM = $(INSTALL) -m 755
 INSTALL_DATA = $(INSTALL) -p -m 644
 
 ifeq (@TESTING@, yes)
-- 
To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org
For additional commands, e-mail: opensuse-commit+h...@opensuse.org



commit lvm2 for openSUSE:Factory

2015-01-04 Thread h_root
Hello community,

here is the log from the commit of package lvm2 for openSUSE:Factory checked in 
at 2015-01-05 04:44:14

Comparing /work/SRC/openSUSE:Factory/lvm2 (Old)
 and  /work/SRC/openSUSE:Factory/.lvm2.new (New)


Package is lvm2

Changes:

--- /work/SRC/openSUSE:Factory/lvm2/lvm2.changes2014-12-16 
14:46:44.0 +0100
+++ /work/SRC/openSUSE:Factory/.lvm2.new/lvm2.changes   2015-01-05 
04:44:16.0 +0100
@@ -1,0 +2,12 @@
+Mon Dec 22 07:10:10 UTC 2014 - lw...@suse.com
+
+- delete lvm2-lvmetad.service from %service_add_pre/post and
+  %service_del_preun/postun to avoid lvm2-lvmetad.service running
+  when use_lvmetad=0.  (bnc#901859) 
+- locking_type is set to 3(clustered lock) by default will output
+  warning message if cmirrord is not running. Set to 1 to be same
+  with upstream. (bnc#906710)
+- Set silent default to 0 to avoid some commands have no output 
+  and to be same with upstream. (bnc#888798)
+  
+---



Other differences:
--
++ lvm2.spec ++
--- /var/tmp/diff_new_pack.blLztF/_old  2015-01-05 04:44:17.0 +0100
+++ /var/tmp/diff_new_pack.blLztF/_new  2015-01-05 04:44:17.0 +0100
@@ -244,22 +244,22 @@
 popd
 
 %pre
-%service_add_pre blk-availability.service lvm2-monitor.service 
lvm2-lvmetad.socket lvm2-lvmetad.service
+%service_add_pre blk-availability.service lvm2-monitor.service 
lvm2-lvmetad.socket
 
 %post
 /sbin/ldconfig
 %{?regenerate_initrd_post}
-%service_add_post blk-availability.service lvm2-monitor.service 
lvm2-lvmetad.socket lvm2-lvmetad.service
+%service_add_post blk-availability.service lvm2-monitor.service 
lvm2-lvmetad.socket 
 
 %posttrans
 %{?regenerate_initrd_posttrans}
 
 %preun
-%service_del_preun blk-availability.service lvm2-monitor.service 
lvm2-lvmetad.service lvm2-lvmetad.socket
+%service_del_preun blk-availability.service lvm2-monitor.service 
lvm2-lvmetad.socket
 
 %postun
 /sbin/ldconfig
-%service_del_postun lvm2-lvmetad.service blk-availability.service 
lvm2-monitor.service lvm2-lvmetad.socket
+%service_del_postun blk-availability.service lvm2-monitor.service 
lvm2-lvmetad.socket
 
 %files
 %defattr(-,root,root)


++ lvm.conf ++
--- /var/tmp/diff_new_pack.blLztF/_old  2015-01-05 04:44:17.0 +0100
+++ /var/tmp/diff_new_pack.blLztF/_new  2015-01-05 04:44:17.0 +0100
@@ -275,7 +275,7 @@
 # for syslog and lvm2_log_fn purposes.
 # Any 'yes' or 'no' questions not overridden by other arguments
 # are suppressed and default to 'no'.
-silent = 1
+silent = 0
 
 # Should we send log messages through syslog?
 # 1 is yes; 0 is no.
@@ -421,7 +421,7 @@
 # Type 3 uses built-in clustered locking.
 # Type 4 uses read-only locking which forbids any operations that might 
 # change metadata.
-locking_type = 3
+locking_type = 1
 
 # Set to 0 to fail when a lock request cannot be satisfied immediately.
 wait_for_locks = 1

-- 
To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org
For additional commands, e-mail: opensuse-commit+h...@opensuse.org



commit lvm2 for openSUSE:Factory

2014-12-16 Thread h_root
Hello community,

here is the log from the commit of package lvm2 for openSUSE:Factory checked in 
at 2014-12-16 14:47:30

Comparing /work/SRC/openSUSE:Factory/lvm2 (Old)
 and  /work/SRC/openSUSE:Factory/.lvm2.new (New)


Package is lvm2

Changes:

--- /work/SRC/openSUSE:Factory/lvm2/lvm2.changes2014-12-05 
21:07:24.0 +0100
+++ /work/SRC/openSUSE:Factory/.lvm2.new/lvm2.changes   2014-12-16 
14:46:44.0 +0100
@@ -1,0 +2,6 @@
+Mon Dec  8 21:19:13 UTC 2014 - jeng...@inai.de
+
+- spec: replace some shell variables and paths by rpm macros
+- shorten filelists by using wildcards
+
+---



Other differences:
--
++ lvm2.spec ++
--- /var/tmp/diff_new_pack.PwvRlF/_old  2014-12-16 14:46:47.0 +0100
+++ /var/tmp/diff_new_pack.PwvRlF/_new  2014-12-16 14:46:47.0 +0100
@@ -20,26 +20,14 @@
 %define device_mapper_version 1.02.92
 %define thin_provisioning_version 0.4.1
 
-Url:http://www.sourceware.org/lvm2/
-
 Name:   lvm2
-BuildRequires:  autoconf
-BuildRequires:  automake
-BuildRequires:  libaio-devel
-BuildRequires:  libcorosync-devel
-BuildRequires:  libdlm-devel
-BuildRequires:  libselinux-devel
-BuildRequires:  readline-devel
-BuildRequires:  suse-module-tools
-BuildRequires:  systemd-rpm-macros
-BuildRequires:  pkgconfig(udev)
-Requires:   device-mapper = 1.02.90
-Provides:   lvm
 Version:%{lvm2_version}
 Release:0
 Summary:Logical Volume Manager Tools
 License:GPL-2.0 and LGPL-2.1
 Group:  System/Base
+Url:http://www.sourceware.org/lvm2/
+
 Source: ftp://sources.redhat.com/pub/%{name}/LVM2.%{version}.tgz
 Source42:   ftp://sources.redhat.com/pub/%{name}/LVM2.%{version}.tgz.asc
 Source1:lvm.conf
@@ -99,6 +87,18 @@
 Patch2005:  udev-Check-for-DM_NR_VALID_PATHS.patch
 
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build
+BuildRequires:  autoconf
+BuildRequires:  automake
+BuildRequires:  libaio-devel
+BuildRequires:  libcorosync-devel
+BuildRequires:  libdlm-devel
+BuildRequires:  libselinux-devel
+BuildRequires:  readline-devel
+BuildRequires:  suse-module-tools
+BuildRequires:  systemd-rpm-macros
+BuildRequires:  pkgconfig(udev)
+Requires:   device-mapper = 1.02.90
+Provides:   lvm = %version-%release
 # Not a real replacement but we drop evms
 Provides:   evms = 2.5.5
 Provides:   evms-devel = 2.5.5
@@ -172,7 +172,7 @@
--enable-selinux \
--with-clvmd=corosync \
--with-cluster=internal \
-   --datarootdir=/usr/share \
+   --datarootdir=%_datadir \
--with-default-locking-dir=/run/lock/lvm \
--enable-cmirrord \
--enable-lvmetad \
@@ -188,7 +188,7 @@
--with-thin-check=/sbin/thin_check \
--with-thin-dump=%{_sbindir}/thin_dump \
--with-thin-repair=%{_sbindir}/thin_repair \
-   --with-udev-prefix=/usr/
+   --with-udev-prefix=%_prefix/
 
 export SUSE_ASNEEDED=0
 
@@ -201,50 +201,46 @@
 
 pushd thin-provisioning-tools-%{thin_provisioning_version}
 autoreconf -fiv
-%configure --sbindir=/sbin --prefix=/usr
+%configure --sbindir=/sbin --prefix=%_prefix
 make %{?_smp_mflags}
 popd
 
 %install
-%makeinstall
-make install_system_dirs DESTDIR=$RPM_BUILD_ROOT
-make install_systemd_units DESTDIR=$RPM_BUILD_ROOT
-make install_systemd_generators DESTDIR=$RPM_BUILD_ROOT
-make install_tmpfiles_configuration DESTDIR=$RPM_BUILD_ROOT
+%make_install
+make install_system_dirs DESTDIR=%buildroot
+make install_systemd_units DESTDIR=%buildroot
+make install_systemd_generators DESTDIR=%buildroot
+make install_tmpfiles_configuration DESTDIR=%buildroot
 # Is this directory used anymore?
-install -d -m 755 $RPM_BUILD_ROOT/etc/lvm/metadata
-install -m 644 %{SOURCE1} $RPM_BUILD_ROOT/etc/lvm
-mkdir -p $RPM_BUILD_ROOT/etc/init.d
-mkdir -p $RPM_BUILD_ROOT/usr/sbin
-install -m755 -D %{S:8} $RPM_BUILD_ROOT/usr/lib/ocf/resource.d/lvm2/clvmd
-install -m755 -D %{S:10} $RPM_BUILD_ROOT/usr/lib/ocf/resource.d/lvm2/cmirrord
+install -d -m 755 %buildroot/%_sysconfdir/lvm/metadata
+install -m 644 %{SOURCE1} %buildroot/%_sysconfdir/lvm/
+mkdir -p %buildroot/%_initddir
+mkdir -p %buildroot/%_sbindir
+install -m755 -D %{S:8} %buildroot/%_prefix/lib/ocf/resource.d/lvm2/clvmd
+install -m755 -D %{S:10} %buildroot/%_prefix/lib/ocf/resource.d/lvm2/cmirrord
 
-pushd $RPM_BUILD_ROOT/%_lib
+pushd %buildroot/%_lib
 ln -sf liblvm2cmd.so.2.02 liblvm2cmd.so
 ln -sf liblvm2app.so.2.2 liblvm2app.so
-ln -sf device-mapper/libdevmapper-event-lvm2mirror.so 
libdevmapper-event-lvm2mirror.so.2.02
-ln -sf device-mapper/libdevmapper-event-lvm2snapshot.so 
libdevmapper-event-lvm2snapshot.so.2.02
-ln -sf 

commit lvm2 for openSUSE:Factory

2014-12-05 Thread h_root
Hello community,

here is the log from the commit of package lvm2 for openSUSE:Factory checked in 
at 2014-12-05 21:07:30

Comparing /work/SRC/openSUSE:Factory/lvm2 (Old)
 and  /work/SRC/openSUSE:Factory/.lvm2.new (New)


Package is lvm2

Changes:

--- /work/SRC/openSUSE:Factory/lvm2/lvm2.changes2014-11-24 
11:15:51.0 +0100
+++ /work/SRC/openSUSE:Factory/.lvm2.new/lvm2.changes   2014-12-05 
21:07:24.0 +0100
@@ -1,0 +2,8 @@
+Wed Dec  3 03:23:47 UTC 2014 - je...@suse.com
+
+- Update to 2.02.114
+  - Removed cmirrord-fix-s390-endian-issue.patch
+  - Renumbered patches to allow for upstream patches to be applied
+before local ones.
+
+---

Old:

  LVM2.2.02.111.tgz
  LVM2.2.02.111.tgz.asc
  cmirrord-fix-s390-endian-issue.patch

New:

  LVM2.2.02.114.tgz
  LVM2.2.02.114.tgz.asc



Other differences:
--
++ lvm2.spec ++
--- /var/tmp/diff_new_pack.22Vzu4/_old  2014-12-05 21:07:27.0 +0100
+++ /var/tmp/diff_new_pack.22Vzu4/_new  2014-12-05 21:07:27.0 +0100
@@ -16,8 +16,8 @@
 #
 
 
-%define lvm2_version  2.02.111
-%define device_mapper_version 1.02.90
+%define lvm2_version  2.02.114
+%define device_mapper_version 1.02.92
 %define thin_provisioning_version 0.4.1
 
 Url:http://www.sourceware.org/lvm2/
@@ -49,53 +49,54 @@
 Source16:   csm-converter.tar.gz
 Source50:   thin-provisioning-tools-v%{thin_provisioning_version}.tar.gz
 
-Patch1: improve_probing.diff
-Patch2: no-inc-audit.diff
-Patch3: no_buildroot_shared.diff
-Patch4: sys_mount_instead_linux_fs.diff
+# Upstream patches first
+# (currently none)
+
+# SUSE patches 1000- for LVM, 2000- for device mapper
+Patch1001:  improve_probing.diff
+Patch1002:  no-inc-audit.diff
+Patch1003:  no_buildroot_shared.diff
+Patch1004:  sys_mount_instead_linux_fs.diff
 
 #suse
-Patch5: display-dm-name-for-lv-name.diff
-Patch6: device-mapper-type_punning.diff
+Patch1005:  display-dm-name-for-lv-name.diff
+Patch1006:  device-mapper-type_punning.diff
 
 #fate312248, patch6,7
-Patch7: make-mirror-legs-on-different-tag-pvs.patch
-Patch8: improve-mirror-legs-on-different-tag-pvs.patch
+Patch1007:  make-mirror-legs-on-different-tag-pvs.patch
+Patch1008:  improve-mirror-legs-on-different-tag-pvs.patch
 
 #fate#315092
-Patch9: cmirrord_improvment_performance.patch
+Patch1009:  cmirrord_improvment_performance.patch
 
 #fate#314367, patch10,11
-Patch10:cluster_support_mirrord_log.diff
-Patch11:lvconvert-cluster-mirrored-disk-failed.patch
+Patch1010:  cluster_support_mirrord_log.diff
+Patch1011:  lvconvert-cluster-mirrored-disk-failed.patch
 
 #forward-port from sle11
-Patch12:suppress_format1_size_warning.diff
-Patch13:pvmove_support_clustered_vg.diff
+Patch1012:  suppress_format1_size_warning.diff
+Patch1013:  pvmove_support_clustered_vg.diff
 
 # Never upstream
-Patch14:cmirrord_remove_date_time_from_compilation.patch
+Patch1014:  cmirrord_remove_date_time_from_compilation.patch
 
 #suse, bnc873538
-Patch15:fix-closedown-before-thread-finish.patch
+Patch1015:  fix-closedown-before-thread-finish.patch
 #suse, bnc#870824
-Patch16:use-mirrortype-asdefault-whenclvmdrunning.patch
-
-Patch17:version-plugins-in-libdir
+Patch1016:  use-mirrortype-asdefault-whenclvmdrunning.patch
 
-#suse, bnc#890452,bnc#893684 
-Patch18:cmirrord-fix-s390-endian-issue.patch
+Patch1017:  version-plugins-in-libdir
 
 # device-mapper patches
 #suse, bnc#707253(also merged patch for bnc#479104)
-Patch200:   device-mapper-dmsetup-export.patch
-Patch201:   device-mapper-gcc-warnings.patch
-Patch202:   device-mapper-static.patch
-Patch203:   device-mapper-link
+Patch2000:  device-mapper-dmsetup-export.patch
+Patch2001:  device-mapper-gcc-warnings.patch
+Patch2002:  device-mapper-static.patch
+Patch2003:  device-mapper-link
 #suse, bnc#78902,bnc#789019,bnc#789020
-Patch204:   udev_rules-update.diff
+Patch2004:  udev_rules-update.diff
 #suse, bnc#875233
-Patch205:   udev-Check-for-DM_NR_VALID_PATHS.patch
+Patch2005:  udev-Check-for-DM_NR_VALID_PATHS.patch
 
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build
 # Not a real replacement but we drop evms
@@ -120,31 +121,30 @@
 
 %prep
 %setup -q -n LVM2.%{version} -a 50  -a 16 
-%patch1 -p1
-%patch2 -p1
-%patch3 -p1
-%patch4 -p1
-%patch5 -p1
-%patch6 -p1
-%patch7 -p1
-%patch8 -p1
-%patch9 -p1
-%patch10 -p1
-%patch11 -p1
-%patch12 -p1
-%patch13 -p1
-%patch14 -p1
-%patch15 -p1
-%patch16 -p1
-%patch17 -p1

commit lvm2 for openSUSE:Factory

2014-11-24 Thread h_root
Hello community,

here is the log from the commit of package lvm2 for openSUSE:Factory checked in 
at 2014-11-24 11:15:49

Comparing /work/SRC/openSUSE:Factory/lvm2 (Old)
 and  /work/SRC/openSUSE:Factory/.lvm2.new (New)


Package is lvm2

Changes:

--- /work/SRC/openSUSE:Factory/lvm2/lvm2.changes2014-11-11 
10:16:04.0 +0100
+++ /work/SRC/openSUSE:Factory/.lvm2.new/lvm2.changes   2014-11-24 
11:15:51.0 +0100
@@ -1,0 +2,7 @@
+Wed Nov 19 22:40:13 UTC 2014 - dims...@opensuse.org
+
+- Drop libudev-devel BuildRequires: we already buildrequire
+  pkgconfig(libudev), which is the better choice, as it allows us
+  to get libudev-mini-devel.
+
+---



Other differences:
--
++ lvm2.spec ++
--- /var/tmp/diff_new_pack.Ic4ay5/_old  2014-11-24 11:15:52.0 +0100
+++ /var/tmp/diff_new_pack.Ic4ay5/_new  2014-11-24 11:15:52.0 +0100
@@ -29,7 +29,6 @@
 BuildRequires:  libcorosync-devel
 BuildRequires:  libdlm-devel
 BuildRequires:  libselinux-devel
-BuildRequires:  libudev-devel
 BuildRequires:  readline-devel
 BuildRequires:  suse-module-tools
 BuildRequires:  systemd-rpm-macros


-- 
To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org
For additional commands, e-mail: opensuse-commit+h...@opensuse.org



commit lvm2 for openSUSE:Factory

2014-11-11 Thread h_root
Hello community,

here is the log from the commit of package lvm2 for openSUSE:Factory checked in 
at 2014-11-11 10:00:32

Comparing /work/SRC/openSUSE:Factory/lvm2 (Old)
 and  /work/SRC/openSUSE:Factory/.lvm2.new (New)


Package is lvm2

Changes:

--- /work/SRC/openSUSE:Factory/lvm2/lvm2.changes2014-09-06 
12:18:22.0 +0200
+++ /work/SRC/openSUSE:Factory/.lvm2.new/lvm2.changes   2014-11-11 
10:16:04.0 +0100
@@ -1,0 +2,84 @@
+Mon Nov 10 09:01:35 UTC 2014 - dims...@opensuse.org
+
+- Require device-mapper by device-mapper-devel: otherwise, the .so
+  symlinks might happen to point to no target.
+
+---
+Tue Oct 28 07:18:36 UTC 2014 - lw...@suse.com
+
+- Delete BuildRequire for device-mapper-devel for all symbols needed 
+  is created in ./include/.symlinks file.
+- Add link /usr/sbin/lvm file to avoid others using /usr/sbin/lvm
+
+---
+Fri Sep 26 07:09:27 UTC 2014 - lw...@suse.com
+
+- recover no_buildroot_shared.diff, this may cause gcc error
+
+---
+Wed Sep 24 08:24:13 UTC 2014 - lw...@suse.com
+  
+- All patches eliminated since update to 2.02.111
+  - Eliminated 25 patches in lvm2 package:
+no_buildroot_shared.diff: don't know why necessary change this
+pipe_buff-definition.diff: don't know why necessary
+handle_extended_devt.diff: not need(bnc#525060 not reproduce even without 
this patch)  
+support-drbd-filter.diff: source to patch not found
+lvm-path.patch: not needed, upstream fixed hardcode
+suppress_locking_failer_message.patch: no doc as to why suppress warning  
+add_scm_support.patch: definition device_info_t _device_info is no longer 
exist
+   upstream patches(18):
+man_page_sectors.diff
+make_raid1_default.diff
+remove-fedora-systemd.patch
+0001-lvmetad-Init-lazily-to-avoid-socket-access-on-config.patch
+do_not_read_from_mirrors_have_failed_devices.diff
+avoid_reading_failed_dev_in_mirrored_log.diff
+mirrored_log_fixed_when_double_fault_occurs.diff
+device_is_usable_mem_leak.diff
+clmvd-fix-decriptor-leak-on-restart.patch
+clvmd-Fix-node-up-down-handing-in-corosync-module.patch
+clvmd-Avoid-a-3-way-deadlock-in-dead-client-cleanup.patch
+0001-clvmd-avoid-logging-in-signal-handler.patch
+0001-RAID-Make-RAID-4-5-6-display-sync-status-under-headi.patch
+clvmd-fix-debugging-level-set-in-clvmd_set_debug-function.patch
+0001-toolcontext-Only-reopen-stdin-if-readable.patch
+systemd-lvm2-activation-generator-report-only-error.patch
+systemd-use-umask-022-for-generated-systemd-units-by.patch
+remove-quote-in-lvm2-monitor.patch 
+ 
+  - Eliminated 6 patches in device-mapper package:
+bug-479104_device-mapper-dmsetup-deps-export.patch:merged with 
device-mapper-dmsetup-export.patch
+udev_sync-cookie_set-1-on-each-dm_task_set_cookie-ca.patch: already 
included in upstream
+increase-minor-version.diff: not needed
+segault_for_truncated_string_token.patch: upstream
+s390-sectorsize4096.patch: upstream
+add_integrate_flush_flag.patch: included in 
cmirrord_improvment_performance.patch
+
+  - Moved device-mapper patches to lvm2:
+device-mapper-dmsetup-export.patch(bnc#707253)
+device-mapper-gcc-warnings.patch
+device-mapper-static.patch
+device-mapper-link
+udev_rules-update.diff(bnc#78902,bnc#789019,bnc#789020)
+
+---
+Wed Sep 24 02:34:46 UTC 2014 - lw...@suse.com
+
+- cmirrord has endian issue which cause cmirrord start fail on s390
+  patch: cmirrord-fix-s390-endian-issue.patch(bnc#890452,bnc#893684)
+
+---
+Thu Sep 11 15:55:50 UTC 2014 - je...@suse.com
+
+- Integrated device-mapper and thin-provisioning packages into
+  lvm2 package. device-mapper and lvm2 have been included in
+  the same source repository for some time.
+
+---
+Thu Sep 11 05:17:27 UTC 2014 - je...@suse.com
+
+- Update to 2.02.111
+  - Eliminated 21 patches.
+   
+---

Old:

  0001-RAID-Make-RAID-4-5-6-display-sync-status-under-headi.patch
  0001-clvmd-avoid-logging-in-signal-handler.patch
  0001-lvmetad-Init-lazily-to-avoid-socket-access-on-config.patch
  0001-toolcontext-Only-reopen-stdin-if-readable.patch
  LVM2.2.02.98.tgz
  LVM2.2.02.98.tgz.asc
  add_scm_support.patch
  avoid_reading_failed_dev_in_mirrored_log.diff
  clmvd-fix-decriptor-leak-on-restart.patch
  clvmd-Avoid-a-3-way-deadlock-in-dead-client-cleanup.patch
  

commit lvm2 for openSUSE:Factory

2014-09-06 Thread h_root
Hello community,

here is the log from the commit of package lvm2 for openSUSE:Factory checked in 
at 2014-09-06 12:18:15

Comparing /work/SRC/openSUSE:Factory/lvm2 (Old)
 and  /work/SRC/openSUSE:Factory/.lvm2.new (New)


Package is lvm2

Changes:

--- /work/SRC/openSUSE:Factory/lvm2/lvm2.changes2014-07-17 
06:57:55.0 +0200
+++ /work/SRC/openSUSE:Factory/.lvm2.new/lvm2.changes   2014-09-06 
12:18:22.0 +0200
@@ -1,0 +2,5 @@
+Wed Sep  3 01:48:48 CEST 2014 - r...@suse.de
+
+- sanitize release line in specfile
+
+---



Other differences:
--
++ lvm2.spec ++
--- /var/tmp/diff_new_pack.f8sVnn/_old  2014-09-06 12:18:23.0 +0200
+++ /var/tmp/diff_new_pack.f8sVnn/_new  2014-09-06 12:18:23.0 +0200
@@ -31,7 +31,7 @@
 Requires:   device-mapper = 1.02.25
 Provides:   lvm
 Version:2.02.98
-Release:0.RELEASE11
+Release:0
 Summary:Logical Volume Manager Tools
 License:GPL-2.0 and LGPL-2.1
 Group:  System/Base


-- 
To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org
For additional commands, e-mail: opensuse-commit+h...@opensuse.org



commit lvm2 for openSUSE:Factory

2014-07-16 Thread h_root
Hello community,

here is the log from the commit of package lvm2 for openSUSE:Factory checked in 
at 2014-07-17 06:57:48

Comparing /work/SRC/openSUSE:Factory/lvm2 (Old)
 and  /work/SRC/openSUSE:Factory/.lvm2.new (New)


Package is lvm2

Changes:

--- /work/SRC/openSUSE:Factory/lvm2/lvm2.changes2014-06-24 
15:15:30.0 +0200
+++ /work/SRC/openSUSE:Factory/.lvm2.new/lvm2.changes   2014-07-17 
06:57:55.0 +0200
@@ -1,0 +2,5 @@
+Fri Jul  4 09:14:10 UTC 2014 - dmzh...@suse.com
+
+- bnc#885632, set multipath_componnet_detection = 1 per default 
+
+---



Other differences:
--

++ lvm.conf ++
--- /var/tmp/diff_new_pack.QGu29s/_old  2014-07-17 06:57:56.0 +0200
+++ /var/tmp/diff_new_pack.QGu29s/_new  2014-07-17 06:57:56.0 +0200
@@ -124,7 +124,7 @@
 # By default, LVM2 will ignore devices used as component paths
 # of device-mapper multipath devices.
 # 1 enables; 0 disables.
-multipath_component_detection = 0
+multipath_component_detection = 1
 
 # By default, LVM2 will ignore devices used as components of
 # software RAID (md) devices by looking for md superblocks.

-- 
To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org
For additional commands, e-mail: opensuse-commit+h...@opensuse.org



commit lvm2 for openSUSE:Factory

2014-06-24 Thread h_root
Hello community,

here is the log from the commit of package lvm2 for openSUSE:Factory checked in 
at 2014-06-24 15:15:29

Comparing /work/SRC/openSUSE:Factory/lvm2 (Old)
 and  /work/SRC/openSUSE:Factory/.lvm2.new (New)


Package is lvm2

Changes:

--- /work/SRC/openSUSE:Factory/lvm2/lvm2.changes2014-06-16 
21:43:45.0 +0200
+++ /work/SRC/openSUSE:Factory/.lvm2.new/lvm2.changes   2014-06-24 
15:15:30.0 +0200
@@ -1,0 +2,6 @@
+Fri Jun 13 10:31:48 CEST 2014 - h...@suse.de
+
+- Generate all symlinks even for multipath events (bnc#875233)
+  patch: udev-Check-for-DM_NR_VALID_PATHS.patch
+
+---

New:

  udev-Check-for-DM_NR_VALID_PATHS.patch



Other differences:
--
++ lvm2.spec ++
--- /var/tmp/diff_new_pack.lwTk3s/_old  2014-06-24 15:15:31.0 +0200
+++ /var/tmp/diff_new_pack.lwTk3s/_new  2014-06-24 15:15:31.0 +0200
@@ -117,6 +117,8 @@
 Patch97:systemd-use-umask-022-for-generated-systemd-units-by.patch
 # bnc#878930
 Patch98:remove-quote-in-lvm2-monitor.patch
+# bnc#875233
+Patch99:udev-Check-for-DM_NR_VALID_PATHS.patch
 
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build
 # Not a real replacement but we drop evms
@@ -180,6 +182,7 @@
 %patch96 -p1
 %patch97 -p1
 %patch98 -p1
+%patch99 -p1
 
 %build
 #set path so that thin_check can be found


++ udev-Check-for-DM_NR_VALID_PATHS.patch ++
From b8354ac161b5ab8a4f5842201d7ee69f5089c6dc Mon Sep 17 00:00:00 2001
From: Hannes Reinecke h...@suse.de
Date: Thu, 12 Jun 2014 17:07:31 +0200
Subject: [PATCH] udev: Check for DM_NR_VALID_PATHS

When the device becomes inaccessible we must not run any program
requiring disk access, as this will stall and cause udev to
eventually timeout this event.

So check for DM_NR_VALID_PATHS before calling these programs.

References: bnc#875233

Signed-off-by: Hannes Reinecke h...@suse.de
---
 udev/10-dm.rules.in   | 1 -
 udev/13-dm-disk.rules.in  | 2 ++
 udev/69-dm-lvm-metad.rules.in | 1 +
 3 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/udev/10-dm.rules.in b/udev/10-dm.rules.in
index 29af467..f108941 100644
--- a/udev/10-dm.rules.in
+++ b/udev/10-dm.rules.in
@@ -111,7 +111,6 @@ ENV{DM_UDEV_DISABLE_DM_RULES_FLAG}!=1, 
ENV{DM_NAME}==?*, SYMLINK+=(DM_DIR)/
 
 # We have to ignore further rule application for inappropriate events
 # and devices. But still send the notification if cookie exists.
-ENV{DM_UUID}==mpath-?*, ENV{DM_ACTION}==PATH_FAILED, GOTO=dm_disable
 ENV{DM_UUID}==CRYPT-TEMP-?*, GOTO=dm_disable
 ENV{DM_UUID}!=?*, ENV{DM_NAME}==temporary-cryptsetup-?*, GOTO=dm_disable
 
diff --git a/udev/13-dm-disk.rules.in b/udev/13-dm-disk.rules.in
index 1920260..d117a94 100644
--- a/udev/13-dm-disk.rules.in
+++ b/udev/13-dm-disk.rules.in
@@ -18,8 +18,10 @@ SYMLINK+=disk/by-id/dm-name-$env{DM_NAME}
 ENV{DM_UUID}==?*, SYMLINK+=disk/by-id/dm-uuid-$env{DM_UUID}
 
 ENV{DM_SUSPENDED}==1, GOTO=dm_end
+ENV{DM_NR_VALID_PATHS}==0, GOTO=dm_blkid_end
 
 (BLKID_RULE)
+LABEL=dm_blkid_end
 ENV{DM_UDEV_LOW_PRIORITY_FLAG}==1, OPTIONS=link_priority=-100
 ENV{ID_FS_USAGE}==filesystem|other|crypto, ENV{ID_FS_UUID_ENC}==?*, 
SYMLINK+=disk/by-uuid/$env{ID_FS_UUID_ENC}
 ENV{ID_FS_USAGE}==filesystem|other, ENV{ID_FS_LABEL_ENC}==?*, 
SYMLINK+=disk/by-label/$env{ID_FS_LABEL_ENC}
diff --git a/udev/69-dm-lvm-metad.rules.in b/udev/69-dm-lvm-metad.rules.in
index 706c03b..0b0ebbf 100644
--- a/udev/69-dm-lvm-metad.rules.in
+++ b/udev/69-dm-lvm-metad.rules.in
@@ -19,6 +19,7 @@ SUBSYSTEM!=block, GOTO=lvm_end
 
 # Device-mapper devices are processed only on change event or on supported 
synthesized event.
 KERNEL==dm-[0-9]*, ENV{DM_UDEV_RULES_VSN}!=?*, GOTO=lvm_end
+KERNEL==dm-[0-9]*, ENV{DM_NR_VALID_PATHS}==0, GOTO=lvm_end
 
 # Only process devices already marked as a PV - this requires blkid to be 
called before.
 ENV{ID_FS_TYPE}==LVM2_member|LVM1_member, RUN+=(LVM_EXEC)/lvm pvscan 
--cache --activate ay --major $major --minor $minor
-- 
1.8.4.5

-- 
To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org
For additional commands, e-mail: opensuse-commit+h...@opensuse.org



commit lvm2 for openSUSE:Factory

2014-06-16 Thread h_root
Hello community,

here is the log from the commit of package lvm2 for openSUSE:Factory checked in 
at 2014-06-16 21:43:05

Comparing /work/SRC/openSUSE:Factory/lvm2 (Old)
 and  /work/SRC/openSUSE:Factory/.lvm2.new (New)


Package is lvm2

Changes:

--- /work/SRC/openSUSE:Factory/lvm2/lvm2.changes2014-06-10 
14:37:46.0 +0200
+++ /work/SRC/openSUSE:Factory/.lvm2.new/lvm2.changes   2014-06-16 
21:43:45.0 +0200
@@ -1,0 +2,48 @@
+
+Tue May 30 09:01:08 UTC 2014 - l...@suse.com
+
+- Versioning for the lvm2-cmirrord dependencies
+
+---
+Thu May 29 10:01:35 UTC 2014 - dmzh...@suse.com
+
+- bnc#878930, systemd is putting out an erroneous message about 
lvm2-monitor.service
+  patch: remove-quote-in-lvm2-monitor.patch
+
+---
+Wed May 28 16:45:45 UTC 2014 - lw...@suse.com
+
+- fix lvm2-activation{,-early}.service is marked world-inaccessible 
(bnc#878481)
+  add systemd-use-umask-022-for-generated-systemd-units-by.patch
+- add comment to lvm.conf to inform user to start lvm2-lvmetad.socket
+  if it is not started in case of use_lvmetad = 1 (bnc#878473)
+- disable lvmetad in lvm.conf to fix it (bnc#862076)
+
+---
+Wed May 28 15:46:58 UTC 2014 - lw...@suse.com
+
+- bnc#878121, modify clvmd.ocf start debug level -d2 to d0
+
+---
+Wed May 28 14:57:23 UTC 2014 - lw...@suse.com
+
+- bnc#870598, change lockdir to /run/lvm/lock
+modify lvm.conf
+  bnc#854092, backport patches to fix 'nohup lvm' crash
+patch:0001-toolcontext-Only-reopen-stdin-if-readable.patch
+  bnc#870824, defaut the mirrortype to mirror when clvmd is running
+patch:use-mirrortype-asdefault-whenclvmdrunning.patch
+  bnc#859824, get rid of the annoying message 'LVM activation generator 
successfully completed'
+patch:systemd-lvm2-activation-generator-report-only-error.patch
+  bnc#837538, fix closedown of clvmd
+patch:fix-closedown-before-thread-finish.patch
+
+---
+Wed May 28 14:50:13 UTC 2014 - lw...@suse.com
+
+- Added: clvmd-fix-debugging-level-set-in-clvmd_set_debug-function.patch
+   This patch is missed in sle12, added from sle11sp3
+   Fix debugging level set in clvmd_set_debug by using the correct
+   variable (bnc#785467),change default -d0 to -d2
+
+---

New:

  0001-toolcontext-Only-reopen-stdin-if-readable.patch
  clvmd-fix-debugging-level-set-in-clvmd_set_debug-function.patch
  fix-closedown-before-thread-finish.patch
  remove-quote-in-lvm2-monitor.patch
  systemd-lvm2-activation-generator-report-only-error.patch
  systemd-use-umask-022-for-generated-systemd-units-by.patch
  use-mirrortype-asdefault-whenclvmdrunning.patch



Other differences:
--
++ lvm2.spec ++
--- /var/tmp/diff_new_pack.aoCA87/_old  2014-06-16 21:43:46.0 +0200
+++ /var/tmp/diff_new_pack.aoCA87/_new  2014-06-16 21:43:46.0 +0200
@@ -103,6 +103,20 @@
 
 #upstream, bnc#871176
 Patch91:0001-RAID-Make-RAID-4-5-6-display-sync-status-under-headi.patch
+#fixed in upstream,bnc#785467
+Patch92:clvmd-fix-debugging-level-set-in-clvmd_set_debug-function.patch
+#upstream 
+Patch93:0001-toolcontext-Only-reopen-stdin-if-readable.patch
+#suse, bnc873538
+Patch94:fix-closedown-before-thread-finish.patch
+#upstream
+Patch95:systemd-lvm2-activation-generator-report-only-error.patch
+#suse, bnc#870824
+Patch96:use-mirrortype-asdefault-whenclvmdrunning.patch
+# bnc#878481 
+Patch97:systemd-use-umask-022-for-generated-systemd-units-by.patch
+# bnc#878930
+Patch98:remove-quote-in-lvm2-monitor.patch
 
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build
 # Not a real replacement but we drop evms
@@ -159,6 +173,13 @@
 %patch89 -p1
 %patch90 -p1
 %patch91 -p1
+%patch92 -p1
+%patch93 -p1
+%patch94 -p1
+%patch95 -p1
+%patch96 -p1
+%patch97 -p1
+%patch98 -p1
 
 %build
 #set path so that thin_check can be found
@@ -405,6 +426,8 @@
 Requires:   device-mapper = 1.02.25
 Requires:   lvm2 = %{version}
 Requires:   lvm2-cmirrord
+Obsoletes:  cmirrord  %{version}
+Provides:   cmirrord = %{version}
 Summary:Clustered LVM2
 Group:  Productivity/Clustering/HA
 

++ 0001-toolcontext-Only-reopen-stdin-if-readable.patch ++
Index: LVM2.2.02.98/lib/commands/toolcontext.c
===
--- LVM2.2.02.98.orig/lib/commands/toolcontext.c2014-04-14 

commit lvm2 for openSUSE:Factory

2014-06-10 Thread h_root
Hello community,

here is the log from the commit of package lvm2 for openSUSE:Factory checked in 
at 2014-06-10 14:37:13

Comparing /work/SRC/openSUSE:Factory/lvm2 (Old)
 and  /work/SRC/openSUSE:Factory/.lvm2.new (New)


Package is lvm2

Changes:

--- /work/SRC/openSUSE:Factory/lvm2/lvm2.changes2014-05-23 
08:05:15.0 +0200
+++ /work/SRC/openSUSE:Factory/.lvm2.new/lvm2.changes   2014-06-10 
14:37:46.0 +0200
@@ -1,0 +2,6 @@
+Wed May 28 14:34:04 UTC 2014 - meiss...@suse.com
+
+- add missing %pre section, specify all sockets and services in
+  all 4 calls.
+
+---



Other differences:
--
++ lvm2.spec ++
--- /var/tmp/diff_new_pack.0E2KQf/_old  2014-06-10 14:37:47.0 +0200
+++ /var/tmp/diff_new_pack.0E2KQf/_new  2014-06-10 14:37:47.0 +0200
@@ -244,11 +244,13 @@
 mv README.csm-converter ..
 popd
 
+%pre
+%service_add_pre blk-availability.service lvm2-monitor.service 
lvm2-lvmetad.socket lvm2-lvmetad.service
+
 %post
 /sbin/ldconfig
 %{?regenerate_initrd_post}
-%service_add_post blk-availability.service lvm2-monitor.service
-%service_add_post lvm2-lvmetad.socket
+%service_add_post blk-availability.service lvm2-monitor.service 
lvm2-lvmetad.socket lvm2-lvmetad.service
 
 %posttrans
 %{?regenerate_initrd_posttrans}
@@ -258,7 +260,7 @@
 
 %postun
 /sbin/ldconfig
-%service_del_postun lvm2-lvmetad.service
+%service_del_postun lvm2-lvmetad.service blk-availability.service 
lvm2-monitor.service lvm2-lvmetad.socket
 
 %files
 %defattr(-,root,root)


-- 
To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org
For additional commands, e-mail: opensuse-commit+h...@opensuse.org



commit lvm2 for openSUSE:Factory

2014-05-23 Thread h_root
Hello community,

here is the log from the commit of package lvm2 for openSUSE:Factory checked in 
at 2014-05-23 08:05:13

Comparing /work/SRC/openSUSE:Factory/lvm2 (Old)
 and  /work/SRC/openSUSE:Factory/.lvm2.new (New)


Package is lvm2

Changes:

--- /work/SRC/openSUSE:Factory/lvm2/lvm2.changes2014-04-26 
17:01:51.0 +0200
+++ /work/SRC/openSUSE:Factory/.lvm2.new/lvm2.changes   2014-05-23 
08:05:15.0 +0200
@@ -1,0 +2,5 @@
+Mon May 12 08:11:08 UTC 2014 - lw...@suse.com
+
+-bnc#871176, 0001-RAID-Make-RAID-4-5-6-display-sync-status-under-headi.patch 
+
+---

New:

  0001-RAID-Make-RAID-4-5-6-display-sync-status-under-headi.patch



Other differences:
--
++ lvm2.spec ++
--- /var/tmp/diff_new_pack.tliayr/_old  2014-05-23 08:05:17.0 +0200
+++ /var/tmp/diff_new_pack.tliayr/_new  2014-05-23 08:05:17.0 +0200
@@ -100,6 +100,10 @@
 
 # Never upstream
 Patch90:cmirrord_remove_date_time_from_compilation.patch
+
+#upstream, bnc#871176
+Patch91:0001-RAID-Make-RAID-4-5-6-display-sync-status-under-headi.patch
+
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build
 # Not a real replacement but we drop evms
 Provides:   evms = 2.5.5
@@ -154,6 +158,7 @@
 %patch88 -p1
 %patch89 -p1
 %patch90 -p1
+%patch91 -p1
 
 %build
 #set path so that thin_check can be found

++ 0001-RAID-Make-RAID-4-5-6-display-sync-status-under-headi.patch ++
From e1917809477c4850cc1094121001d61a2b70ef26 Mon Sep 17 00:00:00 2001
From: Jonathan Brassow jbras...@redhat.com
Date: Tue, 23 Oct 2012 21:19:27 -0500
Subject: [PATCH 1/1] RAID:  Make RAID 4/5/6 display sync status under heading
 s/Copy%/Cpy%Sync

The heading 'Copy%' is specific to PVMOVE volumes, but can be generalized
to apply to LVM mirrors also.  It is a bit awkward to use 'Copy%' for
RAID 4/5/6, however - 'Sync%' would be more appropriate.  This is why
RAID 4/5/6 have not displayed their sync status by any means available to
'lvs' yet.

Example (old):
[root@hayes-02 lvm2]# lvs vg
  LV  VG   Attr  LSize  Pool Origin Data%  Move Log Cpy%Sy Convert
  lvvg   -wi-a  1.00g
  raid1 vg   rwi-a-r--  1.00g 100.00
  raid4 vg   rwi-a-r--  1.01g
  raid5 vg   rwi-a-r--  1.01g
  raid6 vg   rwi-a-r--  1.01g

This patch changes the heading to 'Cpy%Sync' and allows RAID 4/5/6 to print
their sync percent in this field.

Example (new):
[root@hayes-02 lvm2]# lvs vg
  LVVG   Attr  LSize Pool Origin Data%  Move Log Cpy%Sync Convert
  lvvg   -wi-a 1.00g
  raid1 vg   rwi-a-r-- 1.00g   100.00
  raid4 vg   rwi-a-r-- 1.01g   100.00
  raid5 vg   rwi-a-r-- 1.01g   100.00
  raid6 vg   rwi-a-r-- 1.01g   100.00
---
 lib/report/columns.h|  3 ++-
 lib/report/properties.c |  2 ++
 lib/report/report.c | 20 +---
 man/lvs.8.in|  1 +
 4 files changed, 18 insertions(+), 8 deletions(-)

diff --git a/lib/report/columns.h b/lib/report/columns.h
index 6299a2b..c83a086 100644
--- a/lib/report/columns.h
+++ b/lib/report/columns.h
@@ -78,7 +78,8 @@ FIELD(LVS, lv, NUM, OSize, lvid, 5, originsize, 
origin_size, For snapshots, t
 FIELD(LVS, lv, NUM, Data%, lvid, 6, datapercent, data_percent, For snapshot 
and thin pools and volumes, the percentage full if LV is active., 0)
 FIELD(LVS, lv, NUM, Snap%, lvid, 6, snpercent, snap_percent, For snapshots, 
the percentage full if LV is active., 0)
 FIELD(LVS, lv, NUM, Meta%, lvid, 6, metadatapercent, metadata_percent, For 
thin pools, the percentage of metadata full if LV is active., 0)
-FIELD(LVS, lv, NUM, Copy%, lvid, 6, copypercent, copy_percent, For mirrors 
and pvmove, current percentage in-sync., 0)
+FIELD(LVS, lv, NUM, Cpy%Sync, lvid, 8, copypercent, copy_percent, For RAID, 
mirrors and pvmove, current percentage in-sync., 0)
+FIELD(LVS, lv, NUM, Cpy%Sync, lvid, 8, copypercent, sync_percent, For RAID, 
mirrors and pvmove, current percentage in-sync., 0)
 FIELD(LVS, lv, STR, Move, lvid, 4, movepv, move_pv, For pvmove, Source PV 
of temporary LV created by pvmove., 0)
 FIELD(LVS, lv, STR, Convert, lvid, 7, convertlv, convert_lv, For lvconvert, 
Name of temporary LV created by lvconvert., 0)
 FIELD(LVS, lv, STR, Log, lvid, 3, loglv, mirror_log, For mirrors, the LV 
holding the synchronisation log., 0)
diff --git a/lib/report/properties.c b/lib/report/properties.c
index c4f6ab9..fe197f5 100644
--- a/lib/report/properties.c
+++ b/lib/report/properties.c
@@ -189,6 +189,8 @@ GET_LV_NUM_PROPERTY_FN(snap_percent, _snap_percent(lv))
 #define _snap_percent_set _not_implemented_set
 GET_LV_NUM_PROPERTY_FN(copy_percent, 

commit lvm2 for openSUSE:Factory

2014-04-26 Thread h_root
Hello community,

here is the log from the commit of package lvm2 for openSUSE:Factory checked in 
at 2014-04-26 17:01:50

Comparing /work/SRC/openSUSE:Factory/lvm2 (Old)
 and  /work/SRC/openSUSE:Factory/.lvm2.new (New)


Package is lvm2

Changes:

--- /work/SRC/openSUSE:Factory/lvm2/lvm2.changes2014-04-11 
14:40:30.0 +0200
+++ /work/SRC/openSUSE:Factory/.lvm2.new/lvm2.changes   2014-04-26 
17:01:51.0 +0200
@@ -1,0 +2,14 @@
+Wed Apr 16 09:11:32 UTC 2014 - tr...@suse.de
+
+- Switch from mkinitrd to dracut
+  - Dracut already has a lvm module and takes care that the right stuff is
+include into initrd, therefore remove:
+  - mkinitrd-lvm2-boot.sh
+  - mkinitrd-lvm2-setup.sh
+mkinitrd scripts from sources
+  - Add dracut macros in %post and %posttrans to ensure initrd recreation  
+- Remove unneeded comments in .spec file
+- Do not compile in DATE and TIME to avoid build unneeded retriggering in obs
+  Add: cmirrord_remove_date_time_from_compilation.patch
+
+---

Old:

  mkinitrd-lvm2-boot.sh
  mkinitrd-lvm2-setup.sh

New:

  cmirrord_remove_date_time_from_compilation.patch



Other differences:
--
++ lvm2.spec ++
--- /var/tmp/diff_new_pack.hvy8dL/_old  2014-04-26 17:01:52.0 +0200
+++ /var/tmp/diff_new_pack.hvy8dL/_new  2014-04-26 17:01:52.0 +0200
@@ -25,11 +25,11 @@
 BuildRequires:  libselinux-devel
 BuildRequires:  libudev-devel
 BuildRequires:  readline-devel
+BuildRequires:  suse-module-tools
 BuildRequires:  systemd-rpm-macros
 BuildRequires:  pkgconfig(udev)
 Requires:   device-mapper = 1.02.25
 Provides:   lvm
-PreReq: /sbin/mkinitrd
 Version:2.02.98
 Release:0.RELEASE11
 Summary:Logical Volume Manager Tools
@@ -38,8 +38,6 @@
 Source: ftp://sources.redhat.com/pub/%{name}/LVM2.%{version}.tgz
 Source42:   ftp://sources.redhat.com/pub/%{name}/LVM2.%{version}.tgz.asc
 Source1:lvm.conf
-Source4:mkinitrd-lvm2-setup.sh
-Source5:mkinitrd-lvm2-boot.sh
 Source8:clvmd.ocf
 Source10:   cmirrord.ocf
 Source14:   baselibs.conf
@@ -100,6 +98,8 @@
 Patch88:clvmd-Avoid-a-3-way-deadlock-in-dead-client-cleanup.patch
 Patch89:0001-clvmd-avoid-logging-in-signal-handler.patch
 
+# Never upstream
+Patch90:cmirrord_remove_date_time_from_compilation.patch
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build
 # Not a real replacement but we drop evms
 Provides:   evms = 2.5.5
@@ -153,6 +153,7 @@
 %patch87 -p1
 %patch88 -p1
 %patch89 -p1
+%patch90 -p1
 
 %build
 #set path so that thin_check can be found
@@ -193,10 +194,6 @@
 install -d -m 755 $RPM_BUILD_ROOT/etc/lvm/metadata
 install -m 644 %{SOURCE1} $RPM_BUILD_ROOT/etc/lvm
 mkdir -p $RPM_BUILD_ROOT/etc/init.d
-#install -m 755 %{SOURCE2} $RPM_BUILD_ROOT/etc/init.d
-install -d $RPM_BUILD_ROOT/lib/mkinitrd/scripts
-install -m 755 %{SOURCE4} $RPM_BUILD_ROOT/lib/mkinitrd/scripts/setup-lvm2.sh
-install -m 755 %{SOURCE5} $RPM_BUILD_ROOT/lib/mkinitrd/scripts/boot-lvm2.sh
 install -m755 -D %{S:8} $RPM_BUILD_ROOT/usr/lib/ocf/resource.d/lvm2/clvmd
 install -m755 -D %{S:10} $RPM_BUILD_ROOT/usr/lib/ocf/resource.d/lvm2/cmirrord
 
@@ -227,11 +224,6 @@
 mkdir -p $RPM_BUILD_ROOT/usr/share
 rm $RPM_BUILD_ROOT/etc/lvm/cache/.cache
 
-# these files are put into their own devel package
-##remove lvm-devel parts
-#rm -f $RPM_BUILD_ROOT/usr/include/lvm2cmd.h
-#rm -f $RPM_BUILD_ROOT/usr/include/lvm2app.h
-#rm -f $RPM_BUILD_ROOT%{_libdir}/pkgconfig/lvm2app.pc
 #remove device-mapper man page
 rm -f $RPM_BUILD_ROOT/%{_mandir}/man8/dm*
 #remove device-mapper systemd events
@@ -249,16 +241,18 @@
 
 %post
 /sbin/ldconfig
-[ -x /sbin/mkinitrd ]  /sbin/mkinitrd
+%{?regenerate_initrd_post}
 %service_add_post blk-availability.service lvm2-monitor.service
 %service_add_post lvm2-lvmetad.socket
 
+%posttrans
+%{?regenerate_initrd_posttrans}
+
 %preun
 %service_del_preun blk-availability.service lvm2-monitor.service 
lvm2-lvmetad.service lvm2-lvmetad.socket
 
 %postun
 /sbin/ldconfig
-[ -x /sbin/mkinitrd ]  /sbin/mkinitrd
 %service_del_postun lvm2-lvmetad.service
 
 %files
@@ -268,8 +262,6 @@
 %dir /etc/lvm/backup
 %dir /etc/lvm/archive
 %dir /etc/lvm/metadata
-%dir /lib/mkinitrd
-%dir /lib/mkinitrd/scripts
 %{_udevdir}/rules.d/11-dm-lvm.rules
 %{_udevdir}/rules.d/69-dm-lvm-metad.rules
 %{_unitdir}/blk-availability.service
@@ -278,8 +270,6 @@
 %{_unitdir}/lvm2-lvmetad.service
 %{_tmpfilesdir}/lvm2.conf
 %config /etc/lvm/lvm.conf
-/lib/mkinitrd/scripts/setup-lvm2.sh
-/lib/mkinitrd/scripts/boot-lvm2.sh
 /usr/lib/systemd/system-generators/lvm2-activation-generator
 /sbin/blkdeactivate
 /sbin/fsadm


++ 

commit lvm2 for openSUSE:Factory

2014-04-11 Thread h_root
Hello community,

here is the log from the commit of package lvm2 for openSUSE:Factory checked in 
at 2014-04-11 14:40:29

Comparing /work/SRC/openSUSE:Factory/lvm2 (Old)
 and  /work/SRC/openSUSE:Factory/.lvm2.new (New)


Package is lvm2

Changes:

--- /work/SRC/openSUSE:Factory/lvm2/lvm2.changes2014-04-05 
16:50:18.0 +0200
+++ /work/SRC/openSUSE:Factory/.lvm2.new/lvm2.changes   2014-04-11 
14:40:30.0 +0200
@@ -1,0 +2,5 @@
+Tue Apr  8 08:47:51 UTC 2014 - lw...@suse.com
+
+- bnc#862403, modify lvm.conf to add filter to exclude floppy and cdrom 
+
+---



Other differences:
--

++ lvm.conf ++
--- /var/tmp/diff_new_pack.X0U2Sl/_old  2014-04-11 14:40:33.0 +0200
+++ /var/tmp/diff_new_pack.X0U2Sl/_new  2014-04-11 14:40:33.0 +0200
@@ -71,8 +71,8 @@
 # is an 'r' pattern for any of the names it is rejected; otherwise it is
 # accepted.
 
-# By default we accept every block device except udev names:
-filter = [ r|/dev/.*/by-path/.*|, r|/dev/.*/by-id/.*|, a/.*/ ]
+# By default we accept every block device except udev names, floppy and 
cdrom drives:
+filter = [ r|/dev/.*/by-path/.*|, r|/dev/.*/by-id/.*|,r|/dev/fd.*|, 
r|/dev/cdrom|,  a/.*/ ]
 
 # Exclude the cdrom drive
 # filter = [ r|/dev/cdrom| ]

-- 
To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org
For additional commands, e-mail: opensuse-commit+h...@opensuse.org



commit lvm2 for openSUSE:Factory

2014-04-05 Thread h_root
Hello community,

here is the log from the commit of package lvm2 for openSUSE:Factory checked in 
at 2014-04-05 16:50:12

Comparing /work/SRC/openSUSE:Factory/lvm2 (Old)
 and  /work/SRC/openSUSE:Factory/.lvm2.new (New)


Package is lvm2

Changes:

--- /work/SRC/openSUSE:Factory/lvm2/lvm2.changes2014-02-25 
16:41:21.0 +0100
+++ /work/SRC/openSUSE:Factory/.lvm2.new/lvm2.changes   2014-04-05 
16:50:18.0 +0200
@@ -1,0 +2,25 @@
+Tue Mar 25 09:08:16 UTC 2014 - dmzh...@suse.com
+
+- backport more patches from slesp3(bnc#831518)
+  scm support:
+add_scm_support.patch
+  mirrored log fix:
+do_not_read_from_mirrors_have_failed_devices.diff
+avoid_reading_failed_dev_in_mirrored_log.diff
+mirrored_log_fixed_when_double_fault_occurs.diff
+device_is_usable_mem_leak.diff
+  clvmd:
+clmvd-fix-decriptor-leak-on-restart.patch
+clvmd-Avoid-a-3-way-deadlock-in-dead-client-cleanup.patch
+clvmd-Fix-node-up-down-handing-in-corosync-module.patch
+0001-clvmd-avoid-logging-in-signal-handler.patch
+  fate#314367, missing patch
+lvconvert-cluster-mirrored-disk-failed.patch
+  other fix:
+pvmove_support_clustered_vg.diff
+suppress_format1_size_warning.diff
+display-dm-name-for-lv-name.diff
+  no longer needed patches:
+autoactivate-lvmetad-with-generator.patch
+
+---

Old:

  autoactivate-lvmetad-with-generator.patch

New:

  0001-clvmd-avoid-logging-in-signal-handler.patch
  add_scm_support.patch
  avoid_reading_failed_dev_in_mirrored_log.diff
  clmvd-fix-decriptor-leak-on-restart.patch
  clvmd-Avoid-a-3-way-deadlock-in-dead-client-cleanup.patch
  clvmd-Fix-node-up-down-handing-in-corosync-module.patch
  device_is_usable_mem_leak.diff
  display-dm-name-for-lv-name.diff
  do_not_read_from_mirrors_have_failed_devices.diff
  lvconvert-cluster-mirrored-disk-failed.patch
  mirrored_log_fixed_when_double_fault_occurs.diff
  pvmove_support_clustered_vg.diff
  suppress_format1_size_warning.diff



Other differences:
--
++ lvm2.spec ++
--- /var/tmp/diff_new_pack.kSLzIV/_old  2014-04-05 16:50:20.0 +0200
+++ /var/tmp/diff_new_pack.kSLzIV/_new  2014-04-05 16:50:20.0 +0200
@@ -25,6 +25,7 @@
 BuildRequires:  libselinux-devel
 BuildRequires:  libudev-devel
 BuildRequires:  readline-devel
+BuildRequires:  systemd-rpm-macros
 BuildRequires:  pkgconfig(udev)
 Requires:   device-mapper = 1.02.25
 Provides:   lvm
@@ -37,17 +38,11 @@
 Source: ftp://sources.redhat.com/pub/%{name}/LVM2.%{version}.tgz
 Source42:   ftp://sources.redhat.com/pub/%{name}/LVM2.%{version}.tgz.asc
 Source1:lvm.conf
-#Source2:boot.lvm
 Source4:mkinitrd-lvm2-setup.sh
 Source5:mkinitrd-lvm2-boot.sh
-#Source6:64-lvm2.rules
-#Source7:collect_lvm
 Source8:clvmd.ocf
 Source10:   cmirrord.ocf
-#Source12:   mkinitrd-devmapper-setup.sh
-#Source13:   mkinitrd-devmapper-boot.sh
 Source14:   baselibs.conf
-#Source15:   lvm2-activation.service
 Source16:   csm-converter.tar.gz
 
 Patch:  improve_probing.diff
@@ -60,6 +55,9 @@
 
 Patch20:support-drbd-filter.diff
 Patch22:handle_extended_devt.diff
+#suse
+Patch23:display-dm-name-for-lv-name.diff
+
 Patch66:device-mapper-type_punning.diff
 Patch67:lvm-path.patch
 
@@ -67,24 +65,41 @@
 Patch68:make-mirror-legs-on-different-tag-pvs.patch
 Patch69:improve-mirror-legs-on-different-tag-pvs.patch
 
-#fate#314367
-Patch70:cluster_support_mirrord_log.diff
-
 #upstream
 Patch71:make_raid1_default.diff
 #suppress warning
 Patch72:suppress_locking_failer_message.patch
+#upstream
 Patch73:remove-fedora-systemd.patch
 
-#bnc#862076
-Patch74:autoactivate-lvmetad-with-generator.patch
-
 #fate#315092
 Patch75:cmirrord_improvment_performance.patch
 
 #bnc#862076
 Patch76:0001-lvmetad-Init-lazily-to-avoid-socket-access-on-config.patch
 
+#fate#314367
+Patch77:cluster_support_mirrord_log.diff
+Patch78:lvconvert-cluster-mirrored-disk-failed.patch
+
+Patch79:add_scm_support.patch
+
+#upstream backport
+Patch80:do_not_read_from_mirrors_have_failed_devices.diff
+Patch81:avoid_reading_failed_dev_in_mirrored_log.diff
+Patch82:mirrored_log_fixed_when_double_fault_occurs.diff
+Patch83:device_is_usable_mem_leak.diff
+
+#forward-port from sle11
+Patch84:suppress_format1_size_warning.diff
+Patch85:pvmove_support_clustered_vg.diff
+
+#upstream
+Patch86:clmvd-fix-decriptor-leak-on-restart.patch
+Patch87:clvmd-Fix-node-up-down-handing-in-corosync-module.patch

commit lvm2 for openSUSE:Factory

2014-02-25 Thread h_root
Hello community,

here is the log from the commit of package lvm2 for openSUSE:Factory checked in 
at 2014-02-25 16:41:19

Comparing /work/SRC/openSUSE:Factory/lvm2 (Old)
 and  /work/SRC/openSUSE:Factory/.lvm2.new (New)


Package is lvm2

Changes:

--- /work/SRC/openSUSE:Factory/lvm2/lvm2.changes2014-02-17 
07:18:25.0 +0100
+++ /work/SRC/openSUSE:Factory/.lvm2.new/lvm2.changes   2014-02-25 
16:41:21.0 +0100
@@ -1,0 +2,7 @@
+Thu Feb 20 16:23:21 UTC 2014 - arvidj...@gmail.com
+
+- add 0001-lvmetad-Init-lazily-to-avoid-socket-access-on-config.patch
+  avoid connect to lvmetad.socket too early to prevent deadlock during
+  systemctl daemon-reload (bnc#862076)
+
+---

New:

  0001-lvmetad-Init-lazily-to-avoid-socket-access-on-config.patch



Other differences:
--
++ lvm2.spec ++
--- /var/tmp/diff_new_pack.q3b0O9/_old  2014-02-25 16:41:22.0 +0100
+++ /var/tmp/diff_new_pack.q3b0O9/_new  2014-02-25 16:41:22.0 +0100
@@ -76,12 +76,15 @@
 Patch72:suppress_locking_failer_message.patch
 Patch73:remove-fedora-systemd.patch
 
-# bnc#862076
+#bnc#862076
 Patch74:autoactivate-lvmetad-with-generator.patch
 
 #fate#315092
 Patch75:cmirrord_improvment_performance.patch
 
+#bnc#862076
+Patch76:0001-lvmetad-Init-lazily-to-avoid-socket-access-on-config.patch
+
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build
 # Not a real replacement but we drop evms
 Provides:   evms = 2.5.5
@@ -122,6 +125,7 @@
 %patch73 -p1
 %patch74 -p1
 %patch75 -p1
+%patch76 -p1
 
 %build
 #set path so that thin_check can be found

++ 0001-lvmetad-Init-lazily-to-avoid-socket-access-on-config.patch ++
From 983f0b46f2de85b8de0e2d7f8afbdf53f132a87a Mon Sep 17 00:00:00 2001
From: Petr Rockai proc...@redhat.com
Date: Mon, 29 Oct 2012 21:39:46 +0100
Subject: [PATCH] lvmetad: Init lazily, to avoid socket access on config
 overrides.

Signed-off-by: Andrey Borzenkov arvidj...@gmail.com
---
 lib/cache/lvmetad.c | 28 ++--
 1 file changed, 22 insertions(+), 6 deletions(-)

diff --git a/lib/cache/lvmetad.c b/lib/cache/lvmetad.c
index 6a374ac..72e07fd 100644
--- a/lib/cache/lvmetad.c
+++ b/lib/cache/lvmetad.c
@@ -33,7 +33,8 @@ static struct cmd_context *_lvmetad_cmd = NULL;
 
 void lvmetad_disconnect(void)
 {
-   daemon_close(_lvmetad);
+   if (_lvmetad_connected)
+   daemon_close(_lvmetad);
_lvmetad_connected = 0;
_lvmetad_cmd = NULL;
 }
@@ -41,19 +42,25 @@ void lvmetad_disconnect(void)
 void lvmetad_init(struct cmd_context *cmd)
 {
if (!_lvmetad_use  !access(LVMETAD_PIDFILE, F_OK))
-   log_warn(WARNING: lvmetad is running but disabled. Restart 
lvmetad before enabling it!);
+   log_warn(WARNING: lvmetad is running but disabled.
+ Restart lvmetad before enabling it!);
+   _lvmetad_cmd = cmd;
+}
+
+static void _lvmetad_connect()
+{
if (_lvmetad_use  _lvmetad_socket  !_lvmetad_connected) {
assert(_lvmetad_socket);
_lvmetad = lvmetad_open(_lvmetad_socket);
-   if (_lvmetad.socket_fd = 0  !_lvmetad.error) {
+   if (_lvmetad.socket_fd = 0  !_lvmetad.error)
_lvmetad_connected = 1;
-   _lvmetad_cmd = cmd;
-   }
}
 }
 
 void lvmetad_warning(void)
 {
+   if (!_lvmetad_connected)
+   _lvmetad_connect();
if (_lvmetad_use  (_lvmetad.socket_fd  0 || _lvmetad.error))
log_warn(WARNING: Failed to connect to lvmetad: %s. Falling 
back to internal scanning.,
 strerror(_lvmetad.error));
@@ -61,7 +68,11 @@ void lvmetad_warning(void)
 
 int lvmetad_active(void)
 {
-   return _lvmetad_use  _lvmetad_connected;
+   if (!_lvmetad_use)
+   return 0;
+   if (!_lvmetad_connected)
+   _lvmetad_connect();
+   return _lvmetad_connected;
 }
 
 void lvmetad_set_active(int active)
@@ -873,6 +884,11 @@ int lvmetad_pvscan_all_devs(struct cmd_context *cmd, 
activation_handler handler)
char *future_token;
int was_silent;
 
+   if (!lvmetad_active()) {
+   log_error(Cannot proceed since lvmetad is not active.);
+   return 0;
+   }
+
if (!(iter = dev_iter_create(cmd-lvmetad_filter, 1))) {
log_error(dev_iter creation failed);
return 0;
-- 
1.8.4.5


-- 
To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org
For additional commands, e-mail: opensuse-commit+h...@opensuse.org



commit lvm2 for openSUSE:Factory

2014-02-16 Thread h_root
Hello community,

here is the log from the commit of package lvm2 for openSUSE:Factory checked in 
at 2014-02-17 07:18:24

Comparing /work/SRC/openSUSE:Factory/lvm2 (Old)
 and  /work/SRC/openSUSE:Factory/.lvm2.new (New)


Package is lvm2

Changes:

--- /work/SRC/openSUSE:Factory/lvm2/lvm2.changes2014-02-13 
15:01:53.0 +0100
+++ /work/SRC/openSUSE:Factory/.lvm2.new/lvm2.changes   2014-02-17 
07:18:25.0 +0100
@@ -1,0 +2,6 @@
+Thu Feb 13 06:39:47 UTC 2014 - dmzh...@suse.com
+
+- fate#315092, improve performance of cluster mirror
+  add cmirrord_improvment_performance.patch
+
+---

New:

  cmirrord_improvment_performance.patch



Other differences:
--
++ lvm2.spec ++
--- /var/tmp/diff_new_pack.TOWsjM/_old  2014-02-17 07:18:26.0 +0100
+++ /var/tmp/diff_new_pack.TOWsjM/_new  2014-02-17 07:18:26.0 +0100
@@ -79,6 +79,9 @@
 # bnc#862076
 Patch74:autoactivate-lvmetad-with-generator.patch
 
+#fate#315092
+Patch75:cmirrord_improvment_performance.patch
+
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build
 # Not a real replacement but we drop evms
 Provides:   evms = 2.5.5
@@ -118,6 +121,7 @@
 %patch72 -p1
 %patch73 -p1
 %patch74 -p1
+%patch75 -p1
 
 %build
 #set path so that thin_check can be found


++ cmirrord_improvment_performance.patch ++
diff --git a/daemons/cmirrord/cluster.c b/daemons/cmirrord/cluster.c
index fea739a..aa35f62 100644
--- a/daemons/cmirrord/cluster.c
+++ b/daemons/cmirrord/cluster.c
@@ -353,6 +353,10 @@ static int handle_cluster_response(struct clog_cpg *entry,
/* FIXME: Ensure memcpy cannot explode */
memcpy(orig_rq, rq, sizeof(*rq) + rq-u_rq.data_size);
 
+   /* make sure the response of DM_ULOG_FLUSH has no payload */
+   if (orig_rq-u_rq.request_type == DM_ULOG_FLUSH)
+   orig_rq-u_rq.data_size = 0;
+
r = kernel_send(orig_rq-u_rq);
if (r)
LOG_ERROR(Failed to send response to kernel);
diff --git a/daemons/cmirrord/functions.c b/daemons/cmirrord/functions.c
index f6e0918..c1c3538 100644
--- a/daemons/cmirrord/functions.c
+++ b/daemons/cmirrord/functions.c
@@ -362,7 +362,7 @@ static int find_disk_path(char *major_minor_str, char 
*path_rtn, int *unlink_pat
// return r ? -errno : 0;
 }
 
-static int _clog_ctr(char *uuid, uint64_t luid,
+static int _clog_ctr(char *uuid, uint64_t luid, uint32_t version,
 int argc, char **argv, uint64_t device_size)
 {
int i;
@@ -431,6 +431,8 @@ static int _clog_ctr(char *uuid, uint64_t luid,
log_sync = NOSYNC;
else if (!strcmp(argv[i], block_on_error))
block_on_error = 1;
+   else if (!strcmp(argv[i], integrated_flush)  version  2)
+   LOG_PRINT(support integrated_flush);
}
 
lc = dm_zalloc(sizeof(*lc));
@@ -594,7 +596,7 @@ static int clog_ctr(struct dm_ulog_request *rq)
return -EINVAL;
}
 
-   r = _clog_ctr(rq-uuid, rq-luid, argc - 1, argv + 1, device_size);
+   r = _clog_ctr(rq-uuid, rq-luid, rq-version, argc - 1, argv + 1, 
device_size);
 
/* We join the CPG when we resume */
 
@@ -1026,12 +1028,14 @@ static int clog_in_sync(struct dm_ulog_request *rq)
return 0;
 }
 
+static int _clog_mark_region(struct log_c * lc, struct dm_ulog_request *rq, 
uint32_t originator);
+
 /*
  * clog_flush
  * @rq
  *
  */
-static int clog_flush(struct dm_ulog_request *rq, int server)
+static int clog_flush(struct dm_ulog_request *rq, uint32_t originator, int 
server)
 {
int r = 0;
struct log_c *lc = get_log(rq-uuid, rq-luid);
@@ -1042,6 +1046,15 @@ static int clog_flush(struct dm_ulog_request *rq, int 
server)
if (!lc-touched)
return 0;
 
+   /* flush has payload to mark region */
+   if(rq-data_size) {
+   r = _clog_mark_region(lc, rq, originator);
+   if (r) {
+   LOG_ERROR(mark region failed in integrated flush);
+   return r;
+   }
+   }
+
/*
 * Do the actual flushing of the log only
 * if we are the server.
@@ -1104,25 +1117,11 @@ static int mark_region(struct log_c *lc, uint64_t 
region, uint32_t who)
return 0;
 }
 
-/*
- * clog_mark_region
- * @rq
- *
- * rq may contain more than one mark request.  We
- * can determine the number from the 'data_size' field.
- *
- * Returns: 0 on success, -EXXX on failure
- */
-static int clog_mark_region(struct dm_ulog_request *rq, uint32_t originator)
+static int _clog_mark_region(struct log_c * lc, struct dm_ulog_request *rq, 
uint32_t 

commit lvm2 for openSUSE:Factory

2014-02-13 Thread h_root
Hello community,

here is the log from the commit of package lvm2 for openSUSE:Factory checked in 
at 2014-02-13 15:01:51

Comparing /work/SRC/openSUSE:Factory/lvm2 (Old)
 and  /work/SRC/openSUSE:Factory/.lvm2.new (New)


Package is lvm2

Changes:

--- /work/SRC/openSUSE:Factory/lvm2/lvm2.changes2013-11-04 
07:07:44.0 +0100
+++ /work/SRC/openSUSE:Factory/.lvm2.new/lvm2.changes   2014-02-13 
15:01:53.0 +0100
@@ -1,0 +2,27 @@
+Wed Feb 12 15:17:05 UTC 2014 - arvidj...@gmail.com
+
+- add autoactivate-lvmetad-with-generator.patch - if use_lvmetad=1,
+  automatically activate lvm2-lvmetad.socket to ensure lvmetad is
+  started when required (bnc#862076)
+
+---
+Wed Jan 22 14:34:41 UTC 2014 - henrik.k...@origenis.de
+
+- added a lvm2-devel package definition 
+
+---
+Mon Jan  6 07:43:59 UTC 2014 - dmzh...@suse.com
+
+- add csm_convert to lvm2-clvm package(bnc#854076)
+- system fails to boot due to missing /usr/sbin/lvm(bnc#837954)
+- lvm2 systemd incorrectly uses dependencies on Fedora services(bnc#851741)
+- set use_lvmetad = 1 as default of lvm.conf(bnc#854413)
+- drop patch dont_ignore_tmp_device_file.diff
+- backport patches from sle11sp3
+  fate#314367,cluster_support_mirrord_log.diff
+  fate#312248,make-mirror-legs-on-different-tag-pvs.patch
+  improve-mirror-legs-on-different-tag-pvs.patch
+- set default mirror to md_raid1 insdead of dm_mirror for better performance
+- enable lvm2-lvmetad.socket by default
+  
+---

Old:

  dont_ignore_tmp_device_file.diff

New:

  autoactivate-lvmetad-with-generator.patch
  cluster_support_mirrord_log.diff
  csm-converter.tar.gz
  improve-mirror-legs-on-different-tag-pvs.patch
  make-mirror-legs-on-different-tag-pvs.patch
  make_raid1_default.diff
  remove-fedora-systemd.patch
  suppress_locking_failer_message.patch



Other differences:
--
++ lvm2.spec ++
--- /var/tmp/diff_new_pack.awrbPo/_old  2014-02-13 15:01:54.0 +0100
+++ /var/tmp/diff_new_pack.awrbPo/_new  2014-02-13 15:01:54.0 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package lvm2
 #
-# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -48,6 +48,7 @@
 #Source13:   mkinitrd-devmapper-boot.sh
 Source14:   baselibs.conf
 #Source15:   lvm2-activation.service
+Source16:   csm-converter.tar.gz
 
 Patch:  improve_probing.diff
 Patch2: no-inc-audit.diff
@@ -56,12 +57,28 @@
 Patch6: man_page_sectors.diff
 
 Patch13:pipe_buff-definition.diff
-Patch19:dont_ignore_tmp_device_file.diff
+
 Patch20:support-drbd-filter.diff
 Patch22:handle_extended_devt.diff
 Patch66:device-mapper-type_punning.diff
 Patch67:lvm-path.patch
 
+#fate312248,patch68,69
+Patch68:make-mirror-legs-on-different-tag-pvs.patch
+Patch69:improve-mirror-legs-on-different-tag-pvs.patch
+
+#fate#314367
+Patch70:cluster_support_mirrord_log.diff
+
+#upstream
+Patch71:make_raid1_default.diff
+#suppress warning
+Patch72:suppress_locking_failer_message.patch
+Patch73:remove-fedora-systemd.patch
+
+# bnc#862076
+Patch74:autoactivate-lvmetad-with-generator.patch
+
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build
 # Not a real replacement but we drop evms
 Provides:   evms = 2.5.5
@@ -90,11 +107,17 @@
 %patch4
 %patch6 -p1
 %patch13 -p1
-%patch19 -p1
 %patch20 -p1
 %patch22 -p1
 %patch66 -p1
 %patch67 -p1
+%patch68 -p1
+%patch69 -p1
+%patch70 -p1
+%patch71 -p1
+%patch72 -p1
+%patch73 -p1
+%patch74 -p1
 
 %build
 #set path so that thin_check can be found
@@ -116,6 +139,12 @@
 export SUSE_ASNEEDED=0
 make -j1 # symlinks are generated in parallel! %{?_smp_mflags}
 
+#csm convert
+tar zxvf %{S:16}
+pushd bnz
+make
+popd
+
 %install
 make install_lvm2 DESTDIR=$RPM_BUILD_ROOT
 make install_system_dirs DESTDIR=$RPM_BUILD_ROOT
@@ -163,10 +192,11 @@
 mkdir -p $RPM_BUILD_ROOT/usr/share
 rm $RPM_BUILD_ROOT/etc/lvm/cache/.cache
 
-#remove lvm-devel parts
-rm -f $RPM_BUILD_ROOT/usr/include/lvm2cmd.h
-rm -f $RPM_BUILD_ROOT/usr/include/lvm2app.h
-rm -f $RPM_BUILD_ROOT%{_libdir}/pkgconfig/lvm2app.pc
+# these files are put into their own devel package
+##remove lvm-devel parts
+#rm -f $RPM_BUILD_ROOT/usr/include/lvm2cmd.h
+#rm -f $RPM_BUILD_ROOT/usr/include/lvm2app.h
+#rm -f 

commit lvm2 for openSUSE:Factory

2013-11-03 Thread h_root
Hello community,

here is the log from the commit of package lvm2 for openSUSE:Factory checked in 
at 2013-11-04 07:07:43

Comparing /work/SRC/openSUSE:Factory/lvm2 (Old)
 and  /work/SRC/openSUSE:Factory/.lvm2.new (New)


Package is lvm2

Changes:

--- /work/SRC/openSUSE:Factory/lvm2/lvm2.changes2013-10-21 
19:53:31.0 +0200
+++ /work/SRC/openSUSE:Factory/.lvm2.new/lvm2.changes   2013-11-04 
07:07:44.0 +0100
@@ -1,0 +2,7 @@
+Sun Oct 27 21:44:41 CET 2013 - oher...@suse.de
+
+- Remove /etc/sysconfig/lvm to avoid errors during mkinitrd run
+  LVM_VGS_ACTIVATED_ON_BOOT is not handled anymore with systemd
+- Remove fillup and insserv from PreReq
+
+---

Old:

  sysconfig.lvm



Other differences:
--
++ lvm2.spec ++
--- /var/tmp/diff_new_pack.LtDY2z/_old  2013-11-04 07:07:45.0 +0100
+++ /var/tmp/diff_new_pack.LtDY2z/_new  2013-11-04 07:07:45.0 +0100
@@ -28,7 +28,7 @@
 BuildRequires:  pkgconfig(udev)
 Requires:   device-mapper = 1.02.25
 Provides:   lvm
-PreReq: %fillup_prereq %insserv_prereq /sbin/mkinitrd
+PreReq: /sbin/mkinitrd
 Version:2.02.98
 Release:0.RELEASE11
 Summary:Logical Volume Manager Tools
@@ -38,7 +38,6 @@
 Source42:   ftp://sources.redhat.com/pub/%{name}/LVM2.%{version}.tgz.asc
 Source1:lvm.conf
 #Source2:boot.lvm
-Source3:sysconfig.lvm
 Source4:mkinitrd-lvm2-setup.sh
 Source5:mkinitrd-lvm2-boot.sh
 #Source6:64-lvm2.rules
@@ -134,8 +133,6 @@
 install -d $RPM_BUILD_ROOT/lib/mkinitrd/scripts
 install -m 755 %{SOURCE4} $RPM_BUILD_ROOT/lib/mkinitrd/scripts/setup-lvm2.sh
 install -m 755 %{SOURCE5} $RPM_BUILD_ROOT/lib/mkinitrd/scripts/boot-lvm2.sh
-mkdir -p $RPM_BUILD_ROOT/var/adm/fillup-templates
-install -m 644 %{SOURCE3} $RPM_BUILD_ROOT/var/adm/fillup-templates
 install -m755 -D %{S:8} $RPM_BUILD_ROOT/usr/lib/ocf/resource.d/lvm2/clvmd
 install -m755 -D %{S:10} $RPM_BUILD_ROOT/usr/lib/ocf/resource.d/lvm2/cmirrord
 
@@ -213,7 +210,6 @@
 /lib/mkinitrd/scripts/setup-lvm2.sh
 /lib/mkinitrd/scripts/boot-lvm2.sh
 /usr/lib/systemd/system-generators/lvm2-activation-generator
-/var/adm/fillup-templates/sysconfig.lvm
 /sbin/blkdeactivate
 /sbin/fsadm
 /sbin/lvchange


++ mkinitrd-lvm2-setup.sh ++
--- /var/tmp/diff_new_pack.LtDY2z/_old  2013-11-04 07:07:45.0 +0100
+++ /var/tmp/diff_new_pack.LtDY2z/_new  2013-11-04 07:07:45.0 +0100
@@ -34,11 +34,9 @@
 
 if use_script lvm2; then
 tmp_root_dm=1 # lvm needs dm
-   mkdir -p $tmp_mnt/etc/sysconfig
 mkdir -p $tmp_mnt/etc/lvm
 mkdir -p $tmp_mnt/var/lock/lvm
 cp -a /etc/lvm/lvm.conf $tmp_mnt/etc/lvm/
-   cp -a /etc/sysconfig/lvm $tmp_mnt/etc/sysconfig/
 # udev rule for lvm2
mkdir -p $tmp_mnt/usr/lib/udev/rules.d
cp /usr/lib/udev/rules.d/11-dm-lvm.rules $tmp_mnt/usr/lib/udev/rules.d/

-- 
To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org
For additional commands, e-mail: opensuse-commit+h...@opensuse.org



commit lvm2 for openSUSE:Factory

2013-10-21 Thread h_root
Hello community,

here is the log from the commit of package lvm2 for openSUSE:Factory checked in 
at 2013-10-21 19:53:30

Comparing /work/SRC/openSUSE:Factory/lvm2 (Old)
 and  /work/SRC/openSUSE:Factory/.lvm2.new (New)


Package is lvm2

Changes:

--- /work/SRC/openSUSE:Factory/lvm2/lvm2.changes2013-09-11 
14:15:37.0 +0200
+++ /work/SRC/openSUSE:Factory/.lvm2.new/lvm2.changes   2013-10-21 
19:53:31.0 +0200
@@ -1,0 +2,5 @@
+Mon Oct 21 08:09:41 UTC 2013 - dmzh...@suse.com
+
+- bnc#779965, use export before %configure in spec
+
+---



Other differences:
--
++ lvm2.spec ++
--- /var/tmp/diff_new_pack.Ha7hpB/_old  2013-10-21 19:53:32.0 +0200
+++ /var/tmp/diff_new_pack.Ha7hpB/_new  2013-10-21 19:53:32.0 +0200
@@ -98,9 +98,11 @@
 %patch67 -p1
 
 %build
-#  set path so that thin_check can be found
-CFLAGS=$RPM_OPT_FLAGS MODPROBE_CMD=/sbin/modprobe \
-PATH=$PATH:/sbin:/usr/sbin \
+#set path so that thin_check can be found
+#export before configure due to bnc#779965
+export MODPROBE_CMD=/sbin/modprobe 
+export CFLAGS=$RPM_OPT_FLAGS
+export PATH=$PATH:/sbin:/usr/sbin 
 %configure --prefix=/ \
--bindir=/bin --libdir=/%_lib --with-usrlibdir=%_libdir \
--sbindir=/sbin --enable-dmeventd \


-- 
To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org
For additional commands, e-mail: opensuse-commit+h...@opensuse.org



commit lvm2 for openSUSE:Factory

2013-09-11 Thread h_root
Hello community,

here is the log from the commit of package lvm2 for openSUSE:Factory checked in 
at 2013-09-11 14:15:36

Comparing /work/SRC/openSUSE:Factory/lvm2 (Old)
 and  /work/SRC/openSUSE:Factory/.lvm2.new (New)


Package is lvm2

Changes:

--- /work/SRC/openSUSE:Factory/lvm2/lvm2.changes2013-08-30 
11:55:02.0 +0200
+++ /work/SRC/openSUSE:Factory/.lvm2.new/lvm2.changes   2013-09-11 
14:15:37.0 +0200
@@ -1,0 +2,14 @@
+Wed Sep 11 10:18:47 CEST 2013 - fcro...@suse.com
+
+- Add lvm-path.patch: fix lvm binary path in systemd generator.
+- Use %_tmpfilesdir macro for tmpfiles directory.
+
+---
+Sun Sep  8 22:20:46 UTC 2013 - crrodrig...@opensuse.org
+
+- Set all run directories relative to /run not just the lock
+  location
+- Install /usr/lib/tmpfiles.d/lvm2.conf as required to ensure
+  such runtime directories are _always_ there.
+
+---

New:

  lvm-path.patch



Other differences:
--
++ lvm2.spec ++
--- /var/tmp/diff_new_pack.Y3TjIh/_old  2013-09-11 14:15:39.0 +0200
+++ /var/tmp/diff_new_pack.Y3TjIh/_new  2013-09-11 14:15:39.0 +0200
@@ -61,6 +61,7 @@
 Patch20:support-drbd-filter.diff
 Patch22:handle_extended_devt.diff
 Patch66:device-mapper-type_punning.diff
+Patch67:lvm-path.patch
 
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build
 # Not a real replacement but we drop evms
@@ -94,6 +95,7 @@
 %patch20 -p1
 %patch22 -p1
 %patch66 -p1
+%patch67 -p1
 
 %build
 #  set path so that thin_check can be found
@@ -108,9 +110,8 @@
--enable-selinux \
--with-clvmd=corosync --with-cluster=internal --with-cluster=internal \
   --datarootdir=/usr/share --with-default-locking-dir=/run/lock/lvm \
-   --enable-cmirrord \
-  --with-thin=internal \
-   --enable-lvmetad
+   --enable-cmirrord --with-thin=internal --enable-lvmetad 
--with-default-pid-dir=/run \
+--with-default-dm-run-dir=/run --with-default-run-dir=/run/lvm 
--with-tmpfilesdir=%{_tmpfilesdir}
 export SUSE_ASNEEDED=0
 make -j1 # symlinks are generated in parallel! %{?_smp_mflags}
 
@@ -119,6 +120,7 @@
 make install_system_dirs DESTDIR=$RPM_BUILD_ROOT
 make install_systemd_units DESTDIR=$RPM_BUILD_ROOT
 make install_systemd_generators DESTDIR=$RPM_BUILD_ROOT
+make install_tmpfiles_configuration DESTDIR=$RPM_BUILD_ROOT
 make -C liblvm install DESTDIR=$RPM_BUILD_ROOT
 install -d -m 755 $RPM_BUILD_ROOT/etc/lvm
 install -d -m 755 $RPM_BUILD_ROOT/etc/lvm/backup
@@ -171,7 +173,6 @@
 #remove device-mapper systemd events
 rm -f $RPM_BUILD_ROOT/%{_unitdir}/dm-event.socket
 rm -f $RPM_BUILD_ROOT/%{_unitdir}/dm-event.service
-
 # install and collect_lvm
 #install -m755 -D %{S:7} $RPM_BUILD_ROOT%{_udevdir}/collect_lvm
 
@@ -205,6 +206,7 @@
 %{_unitdir}/lvm2-monitor.service
 %{_unitdir}/lvm2-lvmetad.socket
 %{_unitdir}/lvm2-lvmetad.service
+%{_tmpfilesdir}/lvm2.conf
 #%{_udevdir}/collect_lvm
 /lib/mkinitrd/scripts/setup-lvm2.sh
 /lib/mkinitrd/scripts/boot-lvm2.sh


++ lvm-path.patch ++
Index: LVM2.2.02.98/scripts/lvm2_activation_generator_systemd_red_hat.c
===
--- LVM2.2.02.98.orig/scripts/lvm2_activation_generator_systemd_red_hat.c
+++ LVM2.2.02.98/scripts/lvm2_activation_generator_systemd_red_hat.c
@@ -125,7 +125,7 @@ static int generate_unit(const char *dir
fputs(Before=local-fs.target shutdown.target\n
  Wants=systemd-udev-settle.service\n\n
  [Service]\n
- ExecStart=/usr/sbin/lvm vgchange -aay --sysinit\n
+ ExecStart=/sbin/lvm vgchange -aay --sysinit\n
  Type=oneshot\n, f);
 
if (fclose(f)  0) {
-- 
To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org
For additional commands, e-mail: opensuse-commit+h...@opensuse.org



commit lvm2 for openSUSE:Factory

2013-08-30 Thread h_root
Hello community,

here is the log from the commit of package lvm2 for openSUSE:Factory checked in 
at 2013-08-30 11:55:01

Comparing /work/SRC/openSUSE:Factory/lvm2 (Old)
 and  /work/SRC/openSUSE:Factory/.lvm2.new (New)


Package is lvm2

Changes:

--- /work/SRC/openSUSE:Factory/lvm2/lvm2.changes2013-07-24 
15:09:10.0 +0200
+++ /work/SRC/openSUSE:Factory/.lvm2.new/lvm2.changes   2013-08-30 
11:55:02.0 +0200
@@ -1,0 +2,12 @@
+Wed Aug 28 11:15:54 UTC 2013 - meiss...@suse.com
+
+- replace BuildRequires: systemd by pkgconfig(udev) again
+  to avoid cycles.
+
+---
+Tue Aug 20 07:59:06 UTC 2013 - dmzh...@suse.com
+
+- add systemd support to lvm2 package
+  split device-mapper to another package.
+
+---

Old:

  64-lvm2.rules
  boot.device-mapper
  boot.lvm
  collect_lvm
  device-mapper-dmsetup-deps-export.patch
  device-mapper-dmsetup-export.patch
  mkinitrd-devmapper-boot.sh
  mkinitrd-devmapper-setup.sh
  sleep-try-open-count.diff
  udev-rules_update.diff
  udev_sync-cookie_set-1-on-each-dm_task_set_cookie-ca.patch

New:

  LVM2.2.02.98.tgz.asc
  cmirrord.ocf



Other differences:
--
++ lvm2.spec ++
--- /var/tmp/diff_new_pack.FYHDuD/_old  2013-08-30 11:55:03.0 +0200
+++ /var/tmp/diff_new_pack.FYHDuD/_new  2013-08-30 11:55:03.0 +0200
@@ -16,36 +16,39 @@
 #
 
 
-Url:http://sources.redhat.com/cluster/clvm/
+Url:http://www.sourceware.org/lvm2/
 
 Name:   lvm2
+BuildRequires:  device-mapper-devel
 BuildRequires:  libcorosync-devel
 BuildRequires:  libdlm-devel
-BuildRequires:  libopenais-devel
 BuildRequires:  libselinux-devel
+BuildRequires:  libudev-devel
 BuildRequires:  readline-devel
 BuildRequires:  pkgconfig(udev)
 Requires:   device-mapper = 1.02.25
 Provides:   lvm
 PreReq: %fillup_prereq %insserv_prereq /sbin/mkinitrd
 Version:2.02.98
-Release:0
+Release:0.RELEASE11
 Summary:Logical Volume Manager Tools
 License:GPL-2.0 and LGPL-2.1
 Group:  System/Base
 Source: ftp://sources.redhat.com/pub/%{name}/LVM2.%{version}.tgz
+Source42:   ftp://sources.redhat.com/pub/%{name}/LVM2.%{version}.tgz.asc
 Source1:lvm.conf
-Source2:boot.lvm
+#Source2:boot.lvm
 Source3:sysconfig.lvm
 Source4:mkinitrd-lvm2-setup.sh
 Source5:mkinitrd-lvm2-boot.sh
-Source6:64-lvm2.rules
-Source7:collect_lvm
+#Source6:64-lvm2.rules
+#Source7:collect_lvm
 Source8:clvmd.ocf
-Source11:   boot.device-mapper
-Source12:   mkinitrd-devmapper-setup.sh
-Source13:   mkinitrd-devmapper-boot.sh
+Source10:   cmirrord.ocf
+#Source12:   mkinitrd-devmapper-setup.sh
+#Source13:   mkinitrd-devmapper-boot.sh
 Source14:   baselibs.conf
+#Source15:   lvm2-activation.service
 
 Patch:  improve_probing.diff
 Patch2: no-inc-audit.diff
@@ -57,12 +60,7 @@
 Patch19:dont_ignore_tmp_device_file.diff
 Patch20:support-drbd-filter.diff
 Patch22:handle_extended_devt.diff
-Patch61:device-mapper-dmsetup-export.patch
-Patch65:device-mapper-dmsetup-deps-export.patch
 Patch66:device-mapper-type_punning.diff
-Patch70:sleep-try-open-count.diff
-Patch81:udev-rules_update.diff
-Patch82:udev_sync-cookie_set-1-on-each-dm_task_set_cookie-ca.patch
 
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build
 # Not a real replacement but we drop evms
@@ -76,6 +74,8 @@
 Obsoletes:  evms-ha = 2.5.5
 %define _udevdir %(pkg-config --variable=udevdir udev)
 
+%{systemd_requires}
+
 %description
 Programs and man pages for configuring and using the LVM2 Logical
 Volume Manager.
@@ -93,88 +93,99 @@
 %patch19 -p1
 %patch20 -p1
 %patch22 -p1
-%patch61 -p1
-%patch65 -p1
 %patch66 -p1
-%patch70 -p1
-%patch81 -p1
-%patch82 -p1
 
 %build
-export MODPROBE_CMD=/sbin/modprobe
+#  set path so that thin_check can be found
+CFLAGS=$RPM_OPT_FLAGS MODPROBE_CMD=/sbin/modprobe \
+PATH=$PATH:/sbin:/usr/sbin \
 %configure --prefix=/ \
--bindir=/bin --libdir=/%_lib --with-usrlibdir=%_libdir \
--sbindir=/sbin --enable-dmeventd \
-   --with-udevdir=%{_udevdir}/rules.d \
-   --with-dmeventd_path=/sbin/dmeventd \
-   --with-device-uid=0 --with-device-gid=6 --with-device-mode=0640 \
--enable-udev_sync --enable-udev_rules \
-   --enable-cmdlib --enable-dmeventd \
+   --enable-cmdlib --enable-applib --enable-dmeventd \
--enable-realtime --enable-pkgconfig \
--enable-selinux \
-   --with-clvmd=corosync --datarootdir=/usr/share 

commit lvm2 for openSUSE:Factory

2013-07-24 Thread h_root
Hello community,

here is the log from the commit of package lvm2 for openSUSE:Factory checked in 
at 2013-07-24 15:09:09

Comparing /work/SRC/openSUSE:Factory/lvm2 (Old)
 and  /work/SRC/openSUSE:Factory/.lvm2.new (New)


Package is lvm2

Changes:

--- /work/SRC/openSUSE:Factory/lvm2/lvm2.changes2013-04-24 
12:23:41.0 +0200
+++ /work/SRC/openSUSE:Factory/.lvm2.new/lvm2.changes   2013-07-24 
15:09:10.0 +0200
@@ -1,0 +2,11 @@
+Tue Jul 16 14:55:10 CEST 2013 - oher...@suse.de
+
+- Remove usage of absolute paths in mkinitrd scripts
+
+---
+Tue Jul 16 14:39:31 CEST 2013 - oher...@suse.de
+
+- Fix parsing lvdisplay -c output with more than 10 volumes in 
+  mkinitrd-lvm2-setup.sh (bnc#826727)
+
+---



Other differences:
--
++ mkinitrd-devmapper-boot.sh ++
--- /var/tmp/diff_new_pack.vXfRll/_old  2013-07-24 15:09:11.0 +0200
+++ /var/tmp/diff_new_pack.vXfRll/_new  2013-07-24 15:09:11.0 +0200
@@ -2,7 +2,7 @@
 #%stage: boot
 #%depends: start
 #%udevmodules: dm-mod dm-snapshot $dm_modules
-#%programs: /sbin/dmsetup /sbin/blockdev
+#%programs: dmsetup blockdev
 # dm-crypt dm-zero dm-mirror
 #%if: -n $root_dm
 #

++ mkinitrd-devmapper-setup.sh ++
--- /var/tmp/diff_new_pack.vXfRll/_old  2013-07-24 15:09:11.0 +0200
+++ /var/tmp/diff_new_pack.vXfRll/_new  2013-07-24 15:09:11.0 +0200
@@ -5,7 +5,7 @@
 #
 
 # no dmsetup - no dm
-if [ -x /sbin/dmsetup ]; then  
+if [ -x $(type -p dmsetup) ]; then   
 dm_blockdev=

 # if any device before was on dm we have to activate it

++ mkinitrd-lvm2-boot.sh ++
--- /var/tmp/diff_new_pack.vXfRll/_old  2013-07-24 15:09:11.0 +0200
+++ /var/tmp/diff_new_pack.vXfRll/_new  2013-07-24 15:09:11.0 +0200
@@ -1,7 +1,8 @@
 #!/bin/bash
 #%stage: volumemanager
 #%depends: evms
-#%programs: /sbin/vgscan /sbin/vgchange /sbin/lvm
+#%programs: vgscan vgchange lvm
+#%programs: sed
 #%modules: linear
 #%if: -n $root_lvm2
 #

++ mkinitrd-lvm2-setup.sh ++
--- /var/tmp/diff_new_pack.vXfRll/_old  2013-07-24 15:09:11.0 +0200
+++ /var/tmp/diff_new_pack.vXfRll/_new  2013-07-24 15:09:11.0 +0200
@@ -7,13 +7,13 @@
 update_blockdev
 
 # Check whether we are using LVM2 (only available when not using EVMS)
-if [ -z $root_evms ]  [ -x /sbin/lvdisplay ] ; then
+if [ -z $root_evms ]  [ -x $(type -p lvdisplay) ] ; then
   lvm_blockdev=
 
   for bd in $blockdev; do
 update_blockdev $bd

-vg_name=$(lvdisplay -c 2 /dev/null | sed -n 
/.*:$blockmajor:$blockminor/p)
+vg_name=$(lvdisplay -c 2 /dev/null | sed -n 
/:${blockmajor}:${blockminor}$/p)
 vg_dev=${vg_name%%:*}
 vg_name=${vg_name#*:}
 vg_root=${vg_name%%:*}

-- 
To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org
For additional commands, e-mail: opensuse-commit+h...@opensuse.org



commit lvm2 for openSUSE:Factory

2013-04-24 Thread h_root
Hello community,

here is the log from the commit of package lvm2 for openSUSE:Factory checked in 
at 2013-04-24 10:41:32

Comparing /work/SRC/openSUSE:Factory/lvm2 (Old)
 and  /work/SRC/openSUSE:Factory/.lvm2.new (New)


Package is lvm2, Maintainer is dmzh...@suse.com

Changes:

--- /work/SRC/openSUSE:Factory/lvm2/lvm2.changes2013-04-17 
23:06:32.0 +0200
+++ /work/SRC/openSUSE:Factory/.lvm2.new/lvm2.changes   2013-04-24 
10:41:35.0 +0200
@@ -1,0 +2,6 @@
+Mon Apr 22 14:01:29 UTC 2013 - cfarr...@suse.com
+
+- license update: GPL-2.0 and LGPL-2.1
+  Presence of multiple files (both GPL and LGPL) with only licenses
+
+---



Other differences:
--
++ lvm2.spec ++
--- /var/tmp/diff_new_pack.K0Vjcu/_old  2013-04-24 10:41:40.0 +0200
+++ /var/tmp/diff_new_pack.K0Vjcu/_new  2013-04-24 10:41:40.0 +0200
@@ -31,7 +31,7 @@
 Version:2.02.98
 Release:0
 Summary:Logical Volume Manager Tools
-License:GPL-2.0+ and LGPL-2.1+
+License:GPL-2.0 and LGPL-2.1
 Group:  System/Base
 Source: ftp://sources.redhat.com/pub/%{name}/LVM2.%{version}.tgz
 Source1:lvm.conf

-- 
To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org
For additional commands, e-mail: opensuse-commit+h...@opensuse.org



commit lvm2 for openSUSE:Factory

2013-02-23 Thread h_root
Hello community,

here is the log from the commit of package lvm2 for openSUSE:Factory checked in 
at 2013-02-23 16:37:29

Comparing /work/SRC/openSUSE:Factory/lvm2 (Old)
 and  /work/SRC/openSUSE:Factory/.lvm2.new (New)


Package is lvm2, Maintainer is dmzh...@suse.com

Changes:

--- /work/SRC/openSUSE:Factory/lvm2/lvm2.changes2012-12-05 
13:59:41.0 +0100
+++ /work/SRC/openSUSE:Factory/.lvm2.new/lvm2.changes   2013-02-23 
16:37:30.0 +0100
@@ -1,0 +2,5 @@
+Fri Feb 15 11:44:36 UTC 2013 - rmila...@suse.com
+
+- Move all udev releated files in the appropriate udev directory.
+
+---



Other differences:
--
++ lvm2.spec ++
--- /var/tmp/diff_new_pack.6v15sv/_old  2013-02-23 16:37:32.0 +0100
+++ /var/tmp/diff_new_pack.6v15sv/_new  2013-02-23 16:37:32.0 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package lvm2
 #
-# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -74,7 +74,7 @@
 Obsoletes:  evms-devel = 2.5.5
 Obsoletes:  evms-gui = 2.5.5
 Obsoletes:  evms-ha = 2.5.5
-%define _udevrulesdir %(pkg-config --variable=udevdir udev)/rules.d
+%define _udevdir %(pkg-config --variable=udevdir udev)
 
 %description
 Programs and man pages for configuring and using the LVM2 Logical
@@ -105,7 +105,7 @@
 %configure --prefix=/ \
--bindir=/bin --libdir=/%_lib --with-usrlibdir=%_libdir \
--sbindir=/sbin --enable-dmeventd \
-   --with-udevdir=%{_udevrulesdir} \
+   --with-udevdir=%{_udevdir}/rules.d \
--with-dmeventd_path=/sbin/dmeventd \
--with-device-uid=0 --with-device-gid=6 --with-device-mode=0640 \
--enable-udev_sync --enable-udev_rules \
@@ -148,7 +148,7 @@
 mkdir -p $RPM_BUILD_ROOT/usr/share
 rm $RPM_BUILD_ROOT/usr/include/lvm2cmd.h
 # install and collect_lvm
-install -m755 -D %{S:7} $RPM_BUILD_ROOT/lib/udev/collect_lvm
+install -m755 -D %{S:7} $RPM_BUILD_ROOT%{_udevdir}/collect_lvm
 
 %post
 %{fillup_and_insserv -n lvm boot.lvm}
@@ -188,8 +188,8 @@
 %config /etc/init.d/boot.lvm
 %dir /lib/mkinitrd
 %dir /lib/mkinitrd/scripts
-%{_udevrulesdir}/11-dm-lvm.rules
-/lib/udev/collect_lvm
+%{_udevdir}/rules.d/11-dm-lvm.rules
+%{_udevdir}/collect_lvm
 /lib/mkinitrd/scripts/setup-lvm2.sh
 /lib/mkinitrd/scripts/boot-lvm2.sh
 /var/adm/fillup-templates/sysconfig.lvm
@@ -337,10 +337,10 @@
 %config /etc/init.d/boot.device-mapper
 /%_lib/libdevmapper.so.1.02
 /%_lib/libdevmapper-event.so.1.02
-%{_udevrulesdir}/10-dm.rules
-#/lib/udev/rules.d/12-dm-permissions.rules
-%{_udevrulesdir}/13-dm-disk.rules
-%{_udevrulesdir}/95-dm-notify.rules
+%{_udevdir}/rules.d/10-dm.rules
+#%{_udevdir}/rules.d/12-dm-permissions.rules
+%{_udevdir}/rules.d/13-dm-disk.rules
+%{_udevdir}/rules.d/95-dm-notify.rules
 /sbin/dmsetup
 /sbin/dmeventd
 %{_mandir}/man8/dmsetup.8.gz

-- 
To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org
For additional commands, e-mail: opensuse-commit+h...@opensuse.org



commit lvm2 for openSUSE:Factory

2012-12-05 Thread h_root
Hello community,

here is the log from the commit of package lvm2 for openSUSE:Factory checked in 
at 2012-12-05 13:59:39

Comparing /work/SRC/openSUSE:Factory/lvm2 (Old)
 and  /work/SRC/openSUSE:Factory/.lvm2.new (New)


Package is lvm2, Maintainer is dmzh...@suse.com

Changes:

--- /work/SRC/openSUSE:Factory/lvm2/lvm2.changes2012-11-13 
11:41:26.0 +0100
+++ /work/SRC/openSUSE:Factory/.lvm2.new/lvm2.changes   2012-12-05 
13:59:41.0 +0100
@@ -1,0 +2,6 @@
+Wed Nov 28 09:37:23 UTC 2012 - rmila...@suse.com
+
+- udev_sync-cookie_set-1-on-each-dm_task_set_cookie-ca.patch: 
+  cookie_set=1 on each dm_task_set_cookie call (bnc#72)
+
+---

New:

  udev_sync-cookie_set-1-on-each-dm_task_set_cookie-ca.patch



Other differences:
--
++ lvm2.spec ++
--- /var/tmp/diff_new_pack.lZzrGZ/_old  2012-12-05 13:59:42.0 +0100
+++ /var/tmp/diff_new_pack.lZzrGZ/_new  2012-12-05 13:59:42.0 +0100
@@ -62,6 +62,7 @@
 Patch66:device-mapper-type_punning.diff
 Patch70:sleep-try-open-count.diff
 Patch81:udev-rules_update.diff
+Patch82:udev_sync-cookie_set-1-on-each-dm_task_set_cookie-ca.patch
 
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build
 # Not a real replacement but we drop evms
@@ -97,6 +98,7 @@
 %patch66 -p1
 %patch70 -p1
 %patch81 -p1
+%patch82 -p1
 
 %build
 export MODPROBE_CMD=/sbin/modprobe

++ udev_sync-cookie_set-1-on-each-dm_task_set_cookie-ca.patch ++
From a820a68619c10108666f8093545837233c954046 Mon Sep 17 00:00:00 2001
From: Peter Rajnoha prajn...@redhat.com
Date: Tue, 23 Oct 2012 11:40:53 +0200
Subject: [PATCH] udev_sync: cookie_set=1 on each dm_task_set_cookie call

cookie_set variable found in the struct dm_task should be always
set to 1 after dm_task_set_cookie_call, even if udev_sync is disabled
as the cookie itself carries synchronization informations *as well as*
extra flags to control other aspects of udev support.

For example, one could disable the synchronization itself, but still
direct the libdm code to disable library fallback via
DM_UDEV_DISABLE_LIBRARY_FALLBACK flag. These extra flags still need
to be carried out!

A concrete example:
  $ dmsetup create test --table 0 1 zero --noudevsync

This disables synchronization with udev. As the --verifyudev option is
not used, we don't want to do any corrections. In other words, we
need DM_UDEV_DISABLE_LIBRARY_FALLBACK flag to be used. However,
with --noudevsync this was not the case - the flag was ignored!

This patch fixes the case when noudevsync is used but there are still
some extra flags passed within the cookie flag part. The synchronization
part of the cookie stays zero (which is ok as dm_udev_wait call on such a
cookie is simply a NOOP).
---
 WHATS_NEW_DM |1 +
 libdm/libdm-common.c |2 ++
 2 files changed, 3 insertions(+)

diff --git a/WHATS_NEW_DM b/WHATS_NEW_DM
index 2d0b05c..7c636f0 100644
--- a/WHATS_NEW_DM
+++ b/WHATS_NEW_DM
@@ -1,5 +1,6 @@
 Version 1.02.77 - 15th October 2012
 ===
+  Fix dm_task_set_cookie to properly process udev flags if udev_sync disabled.
   Support unmount of thin volumes from pool above thin pool threshold.
   Update man page to reflect that dm UUIDs are being mangled as well.
   Apply 'dmsetup mangle' for dm UUIDs besides dm names.
diff --git a/libdm/libdm-common.c b/libdm/libdm-common.c
index b8533ed..afdac89 100644
--- a/libdm/libdm-common.c
+++ b/libdm/libdm-common.c
@@ -1838,6 +1838,7 @@ int dm_task_set_cookie(struct dm_task *dmt, uint32_t 
*cookie, uint16_t flags)
if (dm_cookie_supported())
dmt-event_nr = flags  DM_UDEV_FLAGS_SHIFT;
*cookie = 0;
+   dmt-cookie_set = 1;
 
return 1;
 }
@@ -2207,6 +2208,7 @@ int dm_task_set_cookie(struct dm_task *dmt, uint32_t 
*cookie, uint16_t flags)
 
if (!dm_udev_get_sync_support()) {
*cookie = 0;
+   dmt-cookie_set = 1;
return 1;
}
 
-- 
1.7.10.4

-- 
To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org
For additional commands, e-mail: opensuse-commit+h...@opensuse.org



commit lvm2 for openSUSE:Factory

2012-11-13 Thread h_root
Hello community,

here is the log from the commit of package lvm2 for openSUSE:Factory checked in 
at 2012-11-13 11:41:25

Comparing /work/SRC/openSUSE:Factory/lvm2 (Old)
 and  /work/SRC/openSUSE:Factory/.lvm2.new (New)


Package is lvm2, Maintainer is dmzh...@suse.com

Changes:

--- /work/SRC/openSUSE:Factory/lvm2/lvm2.changes2012-11-10 
16:54:56.0 +0100
+++ /work/SRC/openSUSE:Factory/.lvm2.new/lvm2.changes   2012-11-13 
11:41:26.0 +0100
@@ -1,0 +2,11 @@
+Mon Nov 12 10:41:45 UTC 2012 - seife+...@b1-systems.com
+
+- fix 10-dm.rules (bnc#789021)
+- port dmsetup export patch to new LVM code (bnc#789019,bnc#789020)
+
+---
+Mon Nov  5 21:10:28 UTC 2012 - hrvoje.sen...@gmail.com
+
+- Now also fix devmapper-setup
+
+---



Other differences:
--
++ device-mapper-dmsetup-deps-export.patch ++
--- /var/tmp/diff_new_pack.W5CvJS/_old  2012-11-13 11:41:32.0 +0100
+++ /var/tmp/diff_new_pack.W5CvJS/_new  2012-11-13 11:41:32.0 +0100
@@ -2,17 +2,25 @@
  tools/dmsetup.c |   23 +++
  1 file changed, 23 insertions(+)
 
+Index: LVM2.2.02.98/tools/dmsetup.c
+===
 --- LVM2.2.02.98.orig/tools/dmsetup.c
 +++ LVM2.2.02.98/tools/dmsetup.c
-@@ -1720,6 +1720,7 @@ static int _export(int argc, char **argv
+@@ -1717,10 +1717,11 @@ static int _export(CMD_ARGS)
+   char *target_type = NULL;
+   char *params;
const char *name = NULL;
const char *uuid = NULL;
struct dm_info info;
 +  struct dm_deps *deps;
  
-   if (data)
+   if (names)
name = names-name;
-@@ -1789,6 +1790,28 @@ static int _export(int argc, char **argv
+   else if (argc == 2)
+   name = argv[1];
+@@ -1786,10 +1787,32 @@ static int _export(CMD_ARGS)
+   printf(,%s, target_type);
+   }
printf(\n);
}
  
@@ -22,9 +30,9 @@
 +  goto out;
 +
 +  name = NULL;
-+if (data)
++  if (names)
 +  name = names-name;
-+else if (argc == 2)
++  else if (argc == 2)
 +  name = argv[1];
 +
 +  if (!_set_task_device(dmt, name, 0))
@@ -41,3 +49,5 @@
r = 1;
out:
if (dmt)
+   dm_task_destroy(dmt);
+   return r;

++ device-mapper-dmsetup-export.patch ++
--- /var/tmp/diff_new_pack.W5CvJS/_old  2012-11-13 11:41:32.0 +0100
+++ /var/tmp/diff_new_pack.W5CvJS/_new  2012-11-13 11:41:32.0 +0100
@@ -1,11 +1,15 @@
 ---
  man/dmsetup.8.in |7 
- tools/dmsetup.c  |   89 
+++
- 2 files changed, 96 insertions(+)
+ tools/dmsetup.c  |   88 
+++
+ 2 files changed, 95 insertions(+)
 
+Index: LVM2.2.02.98/man/dmsetup.8.in
+===
 --- LVM2.2.02.98.orig/man/dmsetup.8.in
 +++ LVM2.2.02.98/man/dmsetup.8.in
-@@ -19,6 +19,9 @@ dmsetup \- low level logical volume mana
+@@ -17,10 +17,13 @@ dmsetup \- low level logical volume mana
+ .RB [{ \-\-addnodeoncreate | \-\-addnodeonresume }]
+ .RB [ \-\-readahead
  .RI [ \+ ] sectors | auto | none ]
  .RE
  .br
@@ -15,7 +19,11 @@
  .B dmsetup deps
  .RB [ \-o
  .IR options ]
-@@ -285,6 +288,10 @@ device_name in subsequent dmsetup comman
+ .RI [ device_name ]
+ .br
+@@ -283,10 +286,14 @@ Otherwise a table is read from standard
+ The optional uuid can be used in place of
+ device_name in subsequent dmsetup commands.
  If successful a device will appear as
  /dev/mapper/device-name.
  See below for information on the table format.
@@ -26,13 +34,19 @@
  .br
  .TP
  .B deps
+ .RB [ \-o
+ .IR options ]
+Index: LVM2.2.02.98/tools/dmsetup.c
+===
 --- LVM2.2.02.98.orig/tools/dmsetup.c
 +++ LVM2.2.02.98/tools/dmsetup.c
-@@ -1708,6 +1708,94 @@ static int _status(CMD_ARGS)
+@@ -1706,10 +1706,97 @@ static int _status(CMD_ARGS)
+   out:
+   dm_task_destroy(dmt);
return r;
  }
  
-+static int _export(int argc, char **argv, void *data)
++static int _export(CMD_ARGS)
 +{
 +  int r = 0;
 +  struct dm_task *dmt = NULL;
@@ -40,12 +54,11 @@
 +  uint64_t start, length;
 +  char *target_type = NULL;
 +  char *params;
-+  struct dm_names *names = (struct dm_names *) data;
 +  const char *name = NULL;
 +  const char *uuid = NULL;
 +  struct dm_info info;
 +
-+  if (data)
++  if (names)
 +  name = names-name;
 +  else if (argc == 2)
 +  

commit lvm2 for openSUSE:Factory

2012-11-10 Thread h_root
Hello community,

here is the log from the commit of package lvm2 for openSUSE:Factory checked in 
at 2012-11-10 16:54:55

Comparing /work/SRC/openSUSE:Factory/lvm2 (Old)
 and  /work/SRC/openSUSE:Factory/.lvm2.new (New)


Package is lvm2, Maintainer is dmzh...@suse.com

Changes:

--- /work/SRC/openSUSE:Factory/lvm2/lvm2.changes2012-10-25 
12:10:20.0 +0200
+++ /work/SRC/openSUSE:Factory/.lvm2.new/lvm2.changes   2012-11-10 
16:54:56.0 +0100
@@ -1,0 +2,10 @@
+Mon Nov  5 12:08:26 UTC 2012 - hrvoje.sen...@gmail.com
+
+- Adapt mkinitrd scripts to new udev locataion
+
+---
+Sun Nov  4 02:31:00 UTC 2012 - crrodrig...@opensuse.org
+
+- Fix booting ... place udev rules in the proper location..
+
+---



Other differences:
--
++ lvm2.spec ++
--- /var/tmp/diff_new_pack.zCnGwk/_old  2012-11-10 16:54:57.0 +0100
+++ /var/tmp/diff_new_pack.zCnGwk/_new  2012-11-10 16:54:57.0 +0100
@@ -73,6 +73,7 @@
 Obsoletes:  evms-devel = 2.5.5
 Obsoletes:  evms-gui = 2.5.5
 Obsoletes:  evms-ha = 2.5.5
+%define _udevrulesdir %(pkg-config --variable=udevdir udev)/rules.d
 
 %description
 Programs and man pages for configuring and using the LVM2 Logical
@@ -81,7 +82,7 @@
 
 
 %prep
-%setup -n LVM2.%{version}
+%setup -q -n LVM2.%{version}
 %patch -p1
 %patch2
 %patch3
@@ -102,7 +103,7 @@
 %configure --prefix=/ \
--bindir=/bin --libdir=/%_lib --with-usrlibdir=%_libdir \
--sbindir=/sbin --enable-dmeventd \
-   --with-udevdir=/lib/udev/rules.d \
+   --with-udevdir=%{_udevrulesdir} \
--with-dmeventd_path=/sbin/dmeventd \
--with-device-uid=0 --with-device-gid=6 --with-device-mode=0640 \
--enable-udev_sync --enable-udev_rules \
@@ -185,10 +186,7 @@
 %config /etc/init.d/boot.lvm
 %dir /lib/mkinitrd
 %dir /lib/mkinitrd/scripts
-%dir /lib/udev
-%dir /lib/udev/rules.d
-#/lib/udev/rules.d/64-lvm2.rules
-/lib/udev/rules.d/11-dm-lvm.rules
+%{_udevrulesdir}/11-dm-lvm.rules
 /lib/udev/collect_lvm
 /lib/mkinitrd/scripts/setup-lvm2.sh
 /lib/mkinitrd/scripts/boot-lvm2.sh
@@ -337,12 +335,10 @@
 %config /etc/init.d/boot.device-mapper
 /%_lib/libdevmapper.so.1.02
 /%_lib/libdevmapper-event.so.1.02
-%dir /lib/udev/rules.d
-%dir /lib/udev
-/lib/udev/rules.d/10-dm.rules
+%{_udevrulesdir}/10-dm.rules
 #/lib/udev/rules.d/12-dm-permissions.rules
-/lib/udev/rules.d/13-dm-disk.rules
-/lib/udev/rules.d/95-dm-notify.rules
+%{_udevrulesdir}/13-dm-disk.rules
+%{_udevrulesdir}/95-dm-notify.rules
 /sbin/dmsetup
 /sbin/dmeventd
 %{_mandir}/man8/dmsetup.8.gz

++ mkinitrd-devmapper-setup.sh ++
--- /var/tmp/diff_new_pack.zCnGwk/_old  2012-11-10 16:54:57.0 +0100
+++ /var/tmp/diff_new_pack.zCnGwk/_new  2012-11-10 16:54:57.0 +0100
@@ -31,10 +31,10 @@
 # include dm block var from sysconfig
 mkdir -p etc/sysconfig
 grep DM_BLOCK /etc/sysconfig/kernel  etc/sysconfig/kernel
-   mkdir -p lib/udev/rules.d
-   cp /lib/udev/rules.d/10-dm.rules lib/udev/rules.d
-   cp /lib/udev/rules.d/13-dm-disk.rules lib/udev/rules.d
-   cp /lib/udev/rules.d/95-dm-notify.rules lib/udev/rules.d
+   mkdir -p usr/lib/udev/rules.d
+   cp usr/lib/udev/rules.d/10-dm.rules usr/lib/udev/rules.d
+   cp usr/lib/udev/rules.d/13-dm-disk.rules usrlib/udev/rules.d
+   cp usr/lib/udev/rules.d/95-dm-notify.rules usr/lib/udev/rules.d
 save_var root_dm
 save_var dm_modules
 fi

++ mkinitrd-lvm2-setup.sh ++
--- /var/tmp/diff_new_pack.zCnGwk/_old  2012-11-10 16:54:57.0 +0100
+++ /var/tmp/diff_new_pack.zCnGwk/_new  2012-11-10 16:54:57.0 +0100
@@ -40,10 +40,10 @@
 cp -a /etc/lvm/lvm.conf $tmp_mnt/etc/lvm/
cp -a /etc/sysconfig/lvm $tmp_mnt/etc/sysconfig/
 # udev rule for lvm2
-   mkdir -p $tmp_mnt/lib/udev/rules.d
-   cp /lib/udev/rules.d/11-dm-lvm.rules $tmp_mnt/lib/udev/rules.d/
-   if [ -e /lib/udev/rules.d/64-lvm2.rules ]; then
-   cp /lib/udev/rules.d/64-lvm2.rules $tmp_mnt/lib/udev/rules.d/
+   mkdir -p $tmp_mnt/usr/lib/udev/rules.d
+   cp /usr/lib/udev/rules.d/11-dm-lvm.rules $tmp_mnt/usr/lib/udev/rules.d/
+   if [ -e /usr/lib/udev/rules.d/64-lvm2.rules ]; then
+   cp /usr/lib/udev/rules.d/64-lvm2.rules 
$tmp_mnt/usr/lib/udev/rules.d/
fi
 fi
 

-- 
To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org
For additional commands, e-mail: opensuse-commit+h...@opensuse.org



commit lvm2 for openSUSE:Factory

2012-10-25 Thread h_root
Hello community,

here is the log from the commit of package lvm2 for openSUSE:Factory checked in 
at 2012-10-25 12:10:19

Comparing /work/SRC/openSUSE:Factory/lvm2 (Old)
 and  /work/SRC/openSUSE:Factory/.lvm2.new (New)


Package is lvm2, Maintainer is dmzh...@suse.com

Changes:

--- /work/SRC/openSUSE:Factory/lvm2/lvm2.changes2012-10-23 
19:40:17.0 +0200
+++ /work/SRC/openSUSE:Factory/.lvm2.new/lvm2.changes   2012-10-25 
12:10:20.0 +0200
@@ -1,0 +2,5 @@
+Thu Oct 18 12:35:30 UTC 2012 - hrvoje.sen...@gmail.com
+
+- Change the default locking dir to reflect the change in filesystem package
+
+---



Other differences:
--
++ lvm2.spec ++
--- /var/tmp/diff_new_pack.ERKZHX/_old  2012-10-25 12:10:25.0 +0200
+++ /var/tmp/diff_new_pack.ERKZHX/_new  2012-10-25 12:10:25.0 +0200
@@ -109,7 +109,7 @@
--enable-cmdlib --enable-dmeventd \
--enable-realtime --enable-pkgconfig \
--enable-selinux \
-   --with-clvmd=corosync --datarootdir=/usr/share
+   --with-clvmd=corosync --datarootdir=/usr/share 
--with-default-locking-dir=/run/lock/lvm
 export SUSE_ASNEEDED=0
 make -j1 # symlinks are generated in parallel! %{?_smp_mflags}
 

++ lvm.conf ++
--- /var/tmp/diff_new_pack.ERKZHX/_old  2012-10-25 12:10:25.0 +0200
+++ /var/tmp/diff_new_pack.ERKZHX/_new  2012-10-25 12:10:25.0 +0200
@@ -204,7 +204,7 @@
 
 # Local non-LV directory that holds file-based locks while commands are
 # in progress.  A directory like /tmp that may get wiped on reboot is OK.
-locking_dir = /var/lock/lvm
+locking_dir = /run/lock/lvm
 
 # Other entries can go here to allow you to load shared libraries
 # e.g. if support for LVM1 metadata was compiled as a shared library use

-- 
To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org
For additional commands, e-mail: opensuse-commit+h...@opensuse.org



commit lvm2 for openSUSE:Factory

2012-10-23 Thread h_root
Hello community,

here is the log from the commit of package lvm2 for openSUSE:Factory checked in 
at 2012-10-23 19:40:13

Comparing /work/SRC/openSUSE:Factory/lvm2 (Old)
 and  /work/SRC/openSUSE:Factory/.lvm2.new (New)


Package is lvm2, Maintainer is dmzh...@suse.com

Changes:

--- /work/SRC/openSUSE:Factory/lvm2/lvm2.changes2012-10-18 
10:15:43.0 +0200
+++ /work/SRC/openSUSE:Factory/.lvm2.new/lvm2.changes   2012-10-23 
19:40:17.0 +0200
@@ -1,0 +2,21 @@
+Wed Oct 17 23:01:54 UTC 2012 - nfbr...@suse.com
+
+- lvm2.spec: merge rules for device-mapper and
+  lvm2-clvm packages, so there is only one
+  spec file and all packages are built consistently.
+
+---
+Tue Oct 16 09:34:40 UTC 2012 - co...@suse.com
+
+- build against the minimal udev to avoid cycles
+- the sysvinit requires are no longer necessary
+
+---
+Tue Oct 16 04:19:59 UTC 2012 - nfbr...@suse.com
+
+- Upgrade to LVM2-2-02-98.  Improvements include
+  improved interaction with udev and systemd,
+  improved dmraid support, and new command
+  blkdeactivate.
+
+---

Old:

  LVM2.2.02.84.tgz
  blkid-builtin.patch
  cmdline_large_minor.diff
  device-mapper-gcc-warning.diff
  device-mapper.changes
  device-mapper.spec
  k_dev_t.dif
  lvm-pv-create-link.diff
  lvm2-clvm.changes
  lvm2-clvm.spec

New:

  LVM2.2.02.98.tgz



Other differences:
--
++ lvm2.spec ++
--- /var/tmp/diff_new_pack.o8a9dq/_old  2012-10-23 19:40:38.0 +0200
+++ /var/tmp/diff_new_pack.o8a9dq/_new  2012-10-23 19:40:38.0 +0200
@@ -19,19 +19,19 @@
 Url:http://sources.redhat.com/cluster/clvm/
 
 Name:   lvm2
+BuildRequires:  libcorosync-devel
+BuildRequires:  libdlm-devel
+BuildRequires:  libopenais-devel
 BuildRequires:  libselinux-devel
-BuildRequires:  libudev-devel
 BuildRequires:  readline-devel
+BuildRequires:  pkgconfig(udev)
 Requires:   device-mapper = 1.02.25
 Provides:   lvm
 PreReq: %fillup_prereq %insserv_prereq /sbin/mkinitrd
-%if %suse_version  1130
-PreReq: sysvinit(boot.device-mapper)
-%endif
-Version:2.02.84
+Version:2.02.98
 Release:0
-Summary:LVM2 Tools
-License:GPL-2.0+ ; LGPL-2.1+
+Summary:Logical Volume Manager Tools
+License:GPL-2.0+ and LGPL-2.1+
 Group:  System/Base
 Source: LVM2.%{version}.tgz
 Source1:lvm.conf
@@ -42,23 +42,25 @@
 Source6:64-lvm2.rules
 Source7:collect_lvm
 Source8:clvmd.ocf
+Source11:   boot.device-mapper
+Source12:   mkinitrd-devmapper-setup.sh
+Source13:   mkinitrd-devmapper-boot.sh
+Source14:   baselibs.conf
+
 Patch:  improve_probing.diff
 Patch2: no-inc-audit.diff
 Patch3: no_buildroot_shared.diff
 Patch4: sys_mount_instead_linux_fs.diff
-#Patch5: pvscan_2TB_limit.diff
 Patch6: man_page_sectors.diff
-Patch11:cmdline_large_minor.diff
+
 Patch13:pipe_buff-definition.diff
-Patch14:lvm-pv-create-link.diff
 Patch19:dont_ignore_tmp_device_file.diff
+Patch20:support-drbd-filter.diff
 Patch22:handle_extended_devt.diff
-#Patch23:lvm2cmd-link-to-devmapper-event.diff
-#Patches for device mapper
-Patch60:k_dev_t.dif
 Patch61:device-mapper-dmsetup-export.patch
-Patch62:device-mapper-gcc-warning.diff
 Patch65:device-mapper-dmsetup-deps-export.patch
+Patch66:device-mapper-type_punning.diff
+Patch70:sleep-try-open-count.diff
 Patch81:udev-rules_update.diff
 
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build
@@ -80,70 +82,70 @@
 
 %prep
 %setup -n LVM2.%{version}
-%patch
+%patch -p1
 %patch2
 %patch3
 %patch4
-#%patch5
-%patch6
-%patch11
-%patch13
-#%patch14 -p1
+%patch6 -p1
+%patch13 -p1
 %patch19 -p1
+%patch20 -p1
 %patch22 -p1
-#%patch23 -p1
-# patch to device-mapper
-%patch60 -p1
 %patch61 -p1
-%patch62 -p1
-#%patch63 -p1
 %patch65 -p1
-#%patch80 -p0
+%patch66 -p1
+%patch70 -p1
 %patch81 -p1
 
 %build
 export MODPROBE_CMD=/sbin/modprobe
 %configure --prefix=/ \
-   --bindir=/bin --libdir=/%_lib --with-userlibdir=%_libdir \
+   --bindir=/bin --libdir=/%_lib --with-usrlibdir=%_libdir \
--sbindir=/sbin --enable-dmeventd \
--with-udevdir=/lib/udev/rules.d \
--with-dmeventd_path=/sbin/dmeventd \
-   --enable-udev_sync --enable-udev_rules --enable-compat \
+   --with-device-uid=0 --with-device-gid=6 --with-device-mode=0640 \
+   --enable-udev_sync --enable-udev_rules \
--enable-cmdlib --enable-dmeventd