From 1e186b35f4ef2838049f7b82b3d3da6fcf2905ce Mon Sep 17 00:00:00 2001 From: Peter Rajnoha Date: Nov 11 2014 15:40:11 +0000 Subject: Update to latest lvm2 upstream release v2.02.112. --- diff --git a/.gitignore b/.gitignore index 082abe1..a3ad18a 100644 --- a/.gitignore +++ b/.gitignore @@ -18,3 +18,4 @@ /LVM2.2.02.109.tgz /LVM2.2.02.110.tgz /LVM2.2.02.111.tgz +/LVM2.2.02.112.tgz diff --git a/LVM2.2.02.111.tgz.asc b/LVM2.2.02.111.tgz.asc deleted file mode 100644 index c5c0736..0000000 --- a/LVM2.2.02.111.tgz.asc +++ /dev/null @@ -1,7 +0,0 @@ ------BEGIN PGP SIGNATURE----- -Version: GnuPG v2.0.14 (GNU/Linux) - -iEYEABECAAYFAlQDxEEACgkQIoGRwVZ+LBdgbACfRZSdijneiht0fIZCLz3BhpGn -BXIAoIshSUrdKDUuNd94SIeAtZVbmVpi -=w0Qo ------END PGP SIGNATURE----- diff --git a/LVM2.2.02.112.tgz.asc b/LVM2.2.02.112.tgz.asc new file mode 100644 index 0000000..9cf5dd0 --- /dev/null +++ b/LVM2.2.02.112.tgz.asc @@ -0,0 +1,7 @@ +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v2.0.14 (GNU/Linux) + +iEYEABECAAYFAlRiGnEACgkQIoGRwVZ+LBfMXgCgtxm90T/GSuddGXQAjH4nAZzG +tzEAoKbX2qXTrFv++Xx36jji506VdqTU +=Oo8f +-----END PGP SIGNATURE----- diff --git a/lvm2-enable-lvmetad-by-default.patch b/lvm2-enable-lvmetad-by-default.patch index cc49f30..7f16b92 100644 --- a/lvm2-enable-lvmetad-by-default.patch +++ b/lvm2-enable-lvmetad-by-default.patch @@ -1,19 +1,27 @@ ---- LVM2.2.02.108/conf/example.conf.in 2014-07-23 16:21:02.000000000 +0100 -+++ LVM2.2.02.108-new/conf/example.conf.in 2014-07-23 23:11:03.000000000 +0100 -@@ -695,7 +695,7 @@ - # supported in clustered environment. If use_lvmetad=1 and locking_type=3 + conf/example.conf.in | 2 +- + lib/config/config_settings.h | 2 +- + 2 files changed, 2 insertions(+), 2 deletions(-) + +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 - # and then it automatically disables lvmetad use. + # and then it automatically disables use_lvmetad. + - use_lvmetad = 0 + use_lvmetad = 1 # Full path of the utility called to check that a thin metadata device # 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 -+++ LVM2.2.02.108-new/lib/config/config_settings.h 2014-07-23 23:11:03.000000000 +0100 -@@ -175,7 +175,7 @@ - cfg(global_mirror_segtype_default_CFG, "mirror_segtype_default", global_CFG_SECTION, 0, CFG_TYPE_STRING, DEFAULT_MIRROR_SEGTYPE, vsn(2, 2, 87), NULL) +diff --git a/lib/config/config_settings.h b/lib/config/config_settings.h +index e944b81..7b5beff 100644 +--- a/lib/config/config_settings.h ++++ 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_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_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) diff --git a/lvm2.spec b/lvm2.spec index 32807c0..8e9c8e1 100644 --- a/lvm2.spec +++ b/lvm2.spec @@ -1,4 +1,4 @@ -%define device_mapper_version 1.02.90 +%define device_mapper_version 1.02.91 %define enable_cache 1 %define enable_cluster 1 @@ -39,7 +39,7 @@ Summary: Userland logical volume management tools Name: lvm2 -Version: 2.02.111 +Version: 2.02.112 Release: 1%{?dist} License: GPLv2 Group: System Environment/Base @@ -638,6 +638,106 @@ the device-mapper event library. %{_libdir}/pkgconfig/devmapper-event.pc %changelog +* Mon Sep 01 2014 Peter Rajnoha - 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 - 2.02.111-1 - Pass properly sized char buffers for sscanf when initializing clvmd. - Reinstate nosync logic when extending mirror. (2.02.110) diff --git a/sources b/sources index e4ae67b..a80f7fa 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -02487ab2a9e02d1ee76fe217183df28a LVM2.2.02.111.tgz +1f4033b750f68b68e9bd66d3661a2c3f LVM2.2.02.112.tgz diff --git a/upstream b/upstream index 7009649..f5459e4 100644 --- a/upstream +++ b/upstream @@ -1 +1 @@ -LVM2.2.02.111.tgz +LVM2.2.02.112.tgz