Update to latest lvm2 upstream release v2.02.112.

This commit is contained in:
Peter Rajnoha 2014-11-11 16:40:11 +01:00
parent f6db0490e3
commit 1e186b35f4
7 changed files with 129 additions and 20 deletions

1
.gitignore vendored
View File

@ -18,3 +18,4 @@
/LVM2.2.02.109.tgz /LVM2.2.02.109.tgz
/LVM2.2.02.110.tgz /LVM2.2.02.110.tgz
/LVM2.2.02.111.tgz /LVM2.2.02.111.tgz
/LVM2.2.02.112.tgz

View File

@ -1,7 +0,0 @@
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.14 (GNU/Linux)
iEYEABECAAYFAlQDxEEACgkQIoGRwVZ+LBdgbACfRZSdijneiht0fIZCLz3BhpGn
BXIAoIshSUrdKDUuNd94SIeAtZVbmVpi
=w0Qo
-----END PGP SIGNATURE-----

7
LVM2.2.02.112.tgz.asc Normal file
View File

@ -0,0 +1,7 @@
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.14 (GNU/Linux)
iEYEABECAAYFAlRiGnEACgkQIoGRwVZ+LBfMXgCgtxm90T/GSuddGXQAjH4nAZzG
tzEAoKbX2qXTrFv++Xx36jji506VdqTU
=Oo8f
-----END PGP SIGNATURE-----

View File

@ -1,19 +1,27 @@
--- LVM2.2.02.108/conf/example.conf.in 2014-07-23 16:21:02.000000000 +0100 conf/example.conf.in | 2 +-
+++ LVM2.2.02.108-new/conf/example.conf.in 2014-07-23 23:11:03.000000000 +0100 lib/config/config_settings.h | 2 +-
@@ -695,7 +695,7 @@ 2 files changed, 2 insertions(+), 2 deletions(-)
# supported in clustered environment. If use_lvmetad=1 and locking_type=3
diff --git a/conf/example.conf.in b/conf/example.conf.in
index d1a1397..812b747 100644
--- a/conf/example.conf.in
+++ b/conf/example.conf.in
@@ -730,7 +730,7 @@ global {
# is set at the same time, LVM always issues a warning message about this # is set at the same time, LVM always issues a warning message about this
# and then it automatically disables lvmetad use. # and then it automatically disables use_lvmetad.
- use_lvmetad = 0 - use_lvmetad = 0
+ use_lvmetad = 1 + use_lvmetad = 1
# Full path of the utility called to check that a thin metadata device # Full path of the utility called to check that a thin metadata device
# is in a state that allows it to be used. # is in a state that allows it to be used.
--- LVM2.2.02.108/lib/config/config_settings.h 2014-07-23 16:21:02.000000000 +0100 diff --git a/lib/config/config_settings.h b/lib/config/config_settings.h
+++ LVM2.2.02.108-new/lib/config/config_settings.h 2014-07-23 23:11:03.000000000 +0100 index e944b81..7b5beff 100644
@@ -175,7 +175,7 @@ --- a/lib/config/config_settings.h
cfg(global_mirror_segtype_default_CFG, "mirror_segtype_default", global_CFG_SECTION, 0, CFG_TYPE_STRING, DEFAULT_MIRROR_SEGTYPE, vsn(2, 2, 87), NULL) +++ b/lib/config/config_settings.h
@@ -177,7 +177,7 @@ cfg(global_mirror_segtype_default_CFG, "mirror_segtype_default", global_CFG_SECT
cfg(global_raid10_segtype_default_CFG, "raid10_segtype_default", global_CFG_SECTION, 0, CFG_TYPE_STRING, DEFAULT_RAID10_SEGTYPE, vsn(2, 2, 99), NULL) cfg(global_raid10_segtype_default_CFG, "raid10_segtype_default", global_CFG_SECTION, 0, CFG_TYPE_STRING, DEFAULT_RAID10_SEGTYPE, vsn(2, 2, 99), NULL)
cfg(global_sparse_segtype_default_CFG, "sparse_segtype_default", global_CFG_SECTION, 0, CFG_TYPE_STRING, DEFAULT_SPARSE_SEGTYPE, vsn(2, 2, 112), NULL)
cfg(global_lvdisplay_shows_full_device_path_CFG, "lvdisplay_shows_full_device_path", global_CFG_SECTION, CFG_PROFILABLE, CFG_TYPE_BOOL, DEFAULT_LVDISPLAY_SHOWS_FULL_DEVICE_PATH, vsn(2, 2, 89), NULL) cfg(global_lvdisplay_shows_full_device_path_CFG, "lvdisplay_shows_full_device_path", global_CFG_SECTION, CFG_PROFILABLE, CFG_TYPE_BOOL, DEFAULT_LVDISPLAY_SHOWS_FULL_DEVICE_PATH, vsn(2, 2, 89), NULL)
-cfg(global_use_lvmetad_CFG, "use_lvmetad", global_CFG_SECTION, 0, CFG_TYPE_BOOL, 0, vsn(2, 2, 93), NULL) -cfg(global_use_lvmetad_CFG, "use_lvmetad", global_CFG_SECTION, 0, CFG_TYPE_BOOL, 0, vsn(2, 2, 93), NULL)
+cfg(global_use_lvmetad_CFG, "use_lvmetad", global_CFG_SECTION, 0, CFG_TYPE_BOOL, 1, vsn(2, 2, 93), NULL) +cfg(global_use_lvmetad_CFG, "use_lvmetad", global_CFG_SECTION, 0, CFG_TYPE_BOOL, 1, vsn(2, 2, 93), NULL)

104
lvm2.spec
View File

@ -1,4 +1,4 @@
%define device_mapper_version 1.02.90 %define device_mapper_version 1.02.91
%define enable_cache 1 %define enable_cache 1
%define enable_cluster 1 %define enable_cluster 1
@ -39,7 +39,7 @@
Summary: Userland logical volume management tools Summary: Userland logical volume management tools
Name: lvm2 Name: lvm2
Version: 2.02.111 Version: 2.02.112
Release: 1%{?dist} Release: 1%{?dist}
License: GPLv2 License: GPLv2
Group: System Environment/Base Group: System Environment/Base
@ -638,6 +638,106 @@ the device-mapper event library.
%{_libdir}/pkgconfig/devmapper-event.pc %{_libdir}/pkgconfig/devmapper-event.pc
%changelog %changelog
* Mon Sep 01 2014 Peter Rajnoha <prajnoha@redhat.com> - 2.02.112-1
- Add cache_{read,write}_{hits,misses} reporting fields.
- Add cache_{total,used,dirty}_blocks reporting fields.
- Add _corig as reserved suffix.
- Reduce number of VG writes and commits when creating spare volumes.
- When remove_layer_from_lv() removes layer, restore subLV names.
- Cache-pool in use becomes invisible LV.
- Don't prompt for removal of _pmspare in VG without pool metadata LV.
- Deactivation of snapshot origin detects and deactivates left-over snapshots.
- Properly report error when taking snapshot of any cache type LV.
- Add basic thread debugging messages to dmeventd.
- Include threads being shutdown in dmeventd device registration responses.
- Inital support for external users of thin pools based on transaction_id.
- Report some basic percentage info for cache pools.
- Introduce size_mb_arg_with_percent() for advanced size arg reading.
- Add extra support for '.' as decimal point in size args.
- Add configure parameters for default segment type choices.
- Add global/sparse_segtype_default setting to use thin for --type sparse.
- Update and correct lvcreate and lvcovert man pages.
- Mark pools and snapshots as unzeroable volumes.
- Check for zeroing of volume after segment type is fully detected.
- Better support for persistent major and minor options with lvcreate.
- Refactor lvcreate towards more complete validation of all supported options.
- Support lvcreate --type linear.
- Improve _should_wipe_lv() to warn with message.
- Inform about temporarily created volumes only in verbose mode.
- Better support for --test mode with pool creation.
- Query lock holding LV when replacing and converting raid volumes.
- Add extra validate for locked lv within validate_lv_cache_create().
- Add internal lvseg_name() function.
- Skip use of lock files for virtual internal VG names.
- Fix selection on {vg,lv}_permissions fields to properly match selection criteria.
- Fix lv_permissions reporting to display read-only{-override} instead of blank.
- Fix liblvm2cmd and lvm shell to respect quotes around args in cmd line string.
- Permit extent sizes > 128KB that are not power of 2 with lvm2 format.
- Remove workaround for lvm2-monitor.service hang on stop if lvmetad stopped.
- Change vgremove to use process_each_lv_in_vg.
- Allow lvconvert --repair and --splitmirrors on internal LVs.
- Introduce WARN_ flags to control some metadata warning messages.
- Use process_each_pv in vgreduce.
- Refactor process_each_pv in toollib.
- Introduce single validation routine for pool chunk size.
- Support --yes like --force in vg/lvremove to skip y|n prompt.
- Support --yes with lvconvert --splitsnapshot.
- Fix detection of unsupported thin external lvconversions.
- Fix detection of unsupported cache and thin pool lvconversions.
- Fix detection of unsupported lvconversion of cache to snapshot.
- Improve code for creation of cache and cache pool volumes.
- Check cluster-wide (not local) active status before removing LV.
- Properly check if activation of removed cached LV really activated.
- lvremove cached LV removes cachepool (keep with lvconvert --splitcache).
- Always remove spare LV with last removed pool volume.
- Support lvconvert --splitcache and --uncache of cached LV.
- Option --cache has also shortcut -H (i.e. lvcreate -H).
- Refactor lvcreate code and better preserve --type argument.
- Refactor filter processing around lvmetad.
- Refactor process_each_lv in toollib.
- Refactor process_each_vg in toollib.
- Pools cannot be used as external origin.
- Use lv_update_and_reload() for snapshot reload.
- Don't print message in adjusted_mirror_region_size() in activation.
- Improve lv_update_and_reload() to find out proper lock holding LV.
- Improve search of LV in lv_ondisk().
- Do not scan sysfs in lv_check_not_in_use() when device is closed.
- Backup final metadata after resync of mirror/raid.
- Unify handling of --persistent option for lvcreate and lvchange.
- Validate major and minor numbers stored in metadata.
- Use -fPIE when linking -pie executables.
- Support DEBUG_MEMLOCK to trap unsupported mmap usage.
- Enable cache segment type by default.
- Ensure only supported volume types are used with cache segments.
- Fix inablility to specify cachemode when 'lvconvert'ing to cache-pool.
- Grab cluster lock for active LVs when setting clustered attribute.
- Use va_copy to properly pass va_list through functions.
- Add function to detect rotational devices.
- Review internal checks for mirror/raid/pvmove volumes.
- Track mirror segment type with separate MIRROR flag.
- Fix cmirror endian conversions.
- Introduce lv_is_pvmove/locked/converting/merging macros.
- Avoid leaving linear logical volume when thin pool creation fails.
- Don't leak alloc_handle on raid target error path.
- Properly validate raid leg names.
- Archive metadata before starting their modification in raid target.
- Add missing vg_revert() in suspend_lv() raid and snapshot error path.
- Add missing backup of lvm2 metadata after some raid modifications.
- Use vg memory pool for extent allocation.
- Add allocation/physical_extent_size config option for default PE size of VGs.
- Demote an error to a warning when devices known to lvmetad are filtered out.
- Re-order filter evaluation, making component filters global.
- Fix logic that checks for full scan before iterating through devices.
- Introduce common code to modify metadata and reload updated LV.
- Fix rename of active snapshot volume in cluster.
- Make sure shared libraries are built with RELRO option.
- Update cache creation and dm_config_node to pass policy.
- Allow activation of any thin-pool if transaction_id supplied is 0.
- Don't print uninitialized stack bytes when non-root uses dm_check_version().
- Fix selection criteria to not match reserved values when using >, <, >=, <.
- Add DM_LIST_HEAD_INIT macro to libdevmapper.h.
- Fix dm_is_dm_major to not issue error about missing /proc lines for dm module.
* Mon Sep 01 2014 Peter Rajnoha <prajnoha@redhat.com> - 2.02.111-1 * Mon Sep 01 2014 Peter Rajnoha <prajnoha@redhat.com> - 2.02.111-1
- Pass properly sized char buffers for sscanf when initializing clvmd. - Pass properly sized char buffers for sscanf when initializing clvmd.
- Reinstate nosync logic when extending mirror. (2.02.110) - Reinstate nosync logic when extending mirror. (2.02.110)

View File

@ -1 +1 @@
02487ab2a9e02d1ee76fe217183df28a LVM2.2.02.111.tgz 1f4033b750f68b68e9bd66d3661a2c3f LVM2.2.02.112.tgz

View File

@ -1 +1 @@
LVM2.2.02.111.tgz LVM2.2.02.112.tgz