v2_02_116 annotated tag has been created
by Alasdair Kergon
Gitweb: http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=af2fce769088ba...
Commit: af2fce769088baa24a1bda71b65180de510d3a5f
Parent: 0000000000000000000000000000000000000000
Author: Alasdair G Kergon <agk(a)redhat.com>
AuthorDate: 2015-01-30 16:17 +0000
Committer: Alasdair G Kergon <agk(a)redhat.com>
CommitterDate: 2015-01-30 16:17 +0000
annotated tag: v2_02_116 has been created
at af2fce769088baa24a1bda71b65180de510d3a5f (tag)
tagging d0837dcceba4d75ed722c300fdf00c52b9892da5 (commit)
replaces v2_02_115
Release 2.02.116.
41 files changed, 995 insertions(+), 138 deletions(-)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.14 (GNU/Linux)
iEYEABECAAYFAlTLrsAACgkQIoGRwVZ+LBfQnwCeKaROES12Zz5c7wW8dhQfDzR7
d58AniYS6SmRodBOwlwzS01y7Y5v1fnA
=Nwa2
-----END PGP SIGNATURE-----
Alasdair G Kergon (4):
post-release
devices: Do not support unpartitioned DASD.
devices: DASD doesn't need to be stackable.
pre-release
David Teigland (3):
lvmthin: update data space exhaustion
lvmthin: update monitor and autoextend
lvm.conf: update error_when_full description
Peter Rajnoha (16):
config: improve config validation to check if setting with string value can be empty.
coverity: missing return value check
lvm2app: fix lvm_lv_get_attr regression causing unknown values
properties: also recognize LVSINFO, LVSSTATUS and LVSINFOSTATUS as subtypes of LVS
WHATS_NEW: previous commit
device: add infrastructure to support external device info
filter-composite: add external device info hooks
conf: add devices/external_device_info_source to lvm.conf
filter-md: use new 'udev' external device info source to get MD component status
filter-mpath: use new 'udev' external device info source to get mpath component status
filter-usable: move check for pv_min_size from filter-partitioned to filter-usable and use new 'udev' external device info source for this check
filter-partitioned: use new 'udev' device status source to get partition status
filters: add firmware RAID filter
cleanup: add dev-ext-udev-constants.h with constants/names of the properties/values used from udev db
WHATS_NEW
cleanup: conf: auxiliary_device_status_source -> external_device_info_source
Zdenek Kabelac (17):
raid: fix tree preload for splitting raid images
raid: fix raid image splitting
raid: lock holder will skip visible raid LVs
cleanup: use macro lv_is_visible()
thin: preserve chunksize with lvconvert
cache: add pool deps for preload
raid: preload splitted LV only when active
cache: use writethrough cache_mode for older metadata
lv_manip: add for_each_sub_lv_except_pools()
cleanup: indent tabs
tests: test stacked raid
revert "cache: add pool deps for preload"
raid: check lock holding LV
thin: report proper status for thin pool
thin: fix upgrade regression
WHATS_NEW
tests: add --force to sfdisk
8 years, 8 months
master - post-release
by Alasdair Kergon
Gitweb: http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=99c443facce33d...
Commit: 99c443facce33d2c666b0e043d9e8a6bd1cb40a2
Parent: d0837dcceba4d75ed722c300fdf00c52b9892da5
Author: Alasdair G Kergon <agk(a)redhat.com>
AuthorDate: Fri Jan 30 16:18:43 2015 +0000
Committer: Alasdair G Kergon <agk(a)redhat.com>
CommitterDate: Fri Jan 30 16:18:43 2015 +0000
post-release
---
VERSION | 2 +-
VERSION_DM | 2 +-
WHATS_NEW | 3 +++
WHATS_NEW_DM | 3 +++
4 files changed, 8 insertions(+), 2 deletions(-)
diff --git a/VERSION b/VERSION
index 648e0da..071f5f4 100644
--- a/VERSION
+++ b/VERSION
@@ -1 +1 @@
-2.02.116(2)-git (2015-01-30)
+2.02.117(2)-git (2015-01-30)
diff --git a/VERSION_DM b/VERSION_DM
index 31e782b..dc719d2 100644
--- a/VERSION_DM
+++ b/VERSION_DM
@@ -1 +1 @@
-1.02.93-git (2015-01-30)
+1.02.94-git (2015-01-30)
diff --git a/WHATS_NEW b/WHATS_NEW
index a9d3c25..3555063 100644
--- a/WHATS_NEW
+++ b/WHATS_NEW
@@ -1,3 +1,6 @@
+Version 2.02.117 -
+====================================
+
Version 2.02.116 - 30th January 2015
====================================
Deactivate unused thin pools activated with lvm2 pre-2.02.112 versions.
diff --git a/WHATS_NEW_DM b/WHATS_NEW_DM
index 169831c..3fb69cb 100644
--- a/WHATS_NEW_DM
+++ b/WHATS_NEW_DM
@@ -1,3 +1,6 @@
+Version 1.02.94 -
+===================================
+
Version 1.02.93 - 21st January 2015
===================================
Reduce severity of ioctl error message when dmeventd waitevent is interrupted.
8 years, 8 months
master - pre-release
by Alasdair Kergon
Gitweb: http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=d0837dcceba4d7...
Commit: d0837dcceba4d75ed722c300fdf00c52b9892da5
Parent: 71e88f761d4d3517dbc810e28c807fb84b49ac20
Author: Alasdair G Kergon <agk(a)redhat.com>
AuthorDate: Fri Jan 30 16:16:51 2015 +0000
Committer: Alasdair G Kergon <agk(a)redhat.com>
CommitterDate: Fri Jan 30 16:16:51 2015 +0000
pre-release
---
VERSION | 2 +-
VERSION_DM | 2 +-
WHATS_NEW | 6 +++---
WHATS_NEW_DM | 3 ---
4 files changed, 5 insertions(+), 8 deletions(-)
diff --git a/VERSION b/VERSION
index bc3587c..648e0da 100644
--- a/VERSION
+++ b/VERSION
@@ -1 +1 @@
-2.02.116(2)-git (2015-01-21)
+2.02.116(2)-git (2015-01-30)
diff --git a/VERSION_DM b/VERSION_DM
index de76fb3..31e782b 100644
--- a/VERSION_DM
+++ b/VERSION_DM
@@ -1 +1 @@
-1.02.94-git (2015-01-21)
+1.02.93-git (2015-01-30)
diff --git a/WHATS_NEW b/WHATS_NEW
index b99ce31..a9d3c25 100644
--- a/WHATS_NEW
+++ b/WHATS_NEW
@@ -1,8 +1,8 @@
-Version 2.02.116 -
+Version 2.02.116 - 30th January 2015
====================================
- Deactivate unused thin pools activated with lvm2 pre 2.02.112 version.
+ Deactivate unused thin pools activated with lvm2 pre-2.02.112 versions.
Check lock holding LV when lvconverting stacked raid LV in cluster.
- Support "udev" ext. dev. info for filters: PV min size, mpath, md, partition.
+ Support udev external dev info for filters: PV min size, mpath, md, partition.
Add fw_raid_component_detection lvm.conf option to enable FW raid detection.
Add devices/external_device_info_source lvm.conf option ("none" by default).
Scan pools in for_each_sub_lv() and add for_each_sub_lv_except_pools().
diff --git a/WHATS_NEW_DM b/WHATS_NEW_DM
index 3fb69cb..169831c 100644
--- a/WHATS_NEW_DM
+++ b/WHATS_NEW_DM
@@ -1,6 +1,3 @@
-Version 1.02.94 -
-===================================
-
Version 1.02.93 - 21st January 2015
===================================
Reduce severity of ioctl error message when dmeventd waitevent is interrupted.
8 years, 8 months
master - tests: add --force to sfdisk
by Zdenek Kabelac
Gitweb: http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=71e88f761d4d35...
Commit: 71e88f761d4d3517dbc810e28c807fb84b49ac20
Parent: 04b60e927464454c376ac97d7285affbde186e2f
Author: Zdenek Kabelac <zkabelac(a)redhat.com>
AuthorDate: Fri Jan 30 16:46:06 2015 +0100
Committer: Zdenek Kabelac <zkabelac(a)redhat.com>
CommitterDate: Fri Jan 30 16:46:06 2015 +0100
tests: add --force to sfdisk
Avoid udev sync troubles for now.
---
test/shell/test-partition.sh | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/test/shell/test-partition.sh b/test/shell/test-partition.sh
index e79216e..f68d572 100644
--- a/test/shell/test-partition.sh
+++ b/test/shell/test-partition.sh
@@ -26,7 +26,7 @@ aux prepare_pvs 1 30
pvs "$dev1"
# create small partition table
-echo "1 2" | sfdisk "$dev1"
+echo "1 2" | sfdisk --force "$dev1"
aux notify_lvmetad "$dev1"
not pvs "$dev1"
8 years, 8 months
master - WHATS_NEW
by Zdenek Kabelac
Gitweb: http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=04b60e92746445...
Commit: 04b60e927464454c376ac97d7285affbde186e2f
Parent: 40102ae01401741e007066373e8013f16c694f89
Author: Zdenek Kabelac <zkabelac(a)redhat.com>
AuthorDate: Fri Jan 30 16:34:19 2015 +0100
Committer: Zdenek Kabelac <zkabelac(a)redhat.com>
CommitterDate: Fri Jan 30 16:34:19 2015 +0100
WHATS_NEW
For thin fix.
---
WHATS_NEW | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/WHATS_NEW b/WHATS_NEW
index 45e01fb..b99ce31 100644
--- a/WHATS_NEW
+++ b/WHATS_NEW
@@ -1,5 +1,6 @@
Version 2.02.116 -
====================================
+ Deactivate unused thin pools activated with lvm2 pre 2.02.112 version.
Check lock holding LV when lvconverting stacked raid LV in cluster.
Support "udev" ext. dev. info for filters: PV min size, mpath, md, partition.
Add fw_raid_component_detection lvm.conf option to enable FW raid detection.
8 years, 8 months
master - thin: fix upgrade regression
by Zdenek Kabelac
Gitweb: http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=40102ae0140174...
Commit: 40102ae01401741e007066373e8013f16c694f89
Parent: a29a3ed3c37f72fc517ff6045b6105611abc1383
Author: Zdenek Kabelac <zkabelac(a)redhat.com>
AuthorDate: Fri Jan 30 16:22:11 2015 +0100
Committer: Zdenek Kabelac <zkabelac(a)redhat.com>
CommitterDate: Fri Jan 30 16:22:11 2015 +0100
thin: fix upgrade regression
Older lvm2 tools where always providing linear mapping for thin pool.
Recent lvm2 version however support external usage of thin pool and
empty/unused pools are loaded without such external linear mapping.
So this patch covers 'upgrade' problem, where older tool has activated
thin-pool with 'linear' layer mapping, and newer tools didn't expected
such mapping to exist and were not able to deactivate such table.
So before checking for new layout in dm-table, check if there is not
an old one already there.
---
lib/activate/activate.c | 9 +++++++--
1 files changed, 7 insertions(+), 2 deletions(-)
diff --git a/lib/activate/activate.c b/lib/activate/activate.c
index dbfb427..c054531 100644
--- a/lib/activate/activate.c
+++ b/lib/activate/activate.c
@@ -655,8 +655,13 @@ static int _lv_info(struct cmd_context *cmd, const struct logical_volume *lv,
}
/* New thin-pool has no layer, but -tpool suffix needs to be queried */
- if (!use_layer && lv_is_new_thin_pool(lv))
- use_layer = 1;
+ if (!use_layer && lv_is_new_thin_pool(lv)) {
+ /* Check if there isn't existing old thin pool mapping in the table */
+ if (!dev_manager_info(cmd->mem, lv, NULL, 0, 0, &dminfo, NULL, NULL))
+ return_0;
+ if (!dminfo.exists)
+ use_layer = 1;
+ }
if (seg_status)
seg_status->seg = seg;
8 years, 8 months
master - thin: report proper status for thin pool
by Zdenek Kabelac
Gitweb: http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=a29a3ed3c37f72...
Commit: a29a3ed3c37f72fc517ff6045b6105611abc1383
Parent: e8aab3a7fdb22655493ace8bac75e655b5b0cffe
Author: Zdenek Kabelac <zkabelac(a)redhat.com>
AuthorDate: Fri Jan 30 15:29:39 2015 +0100
Committer: Zdenek Kabelac <zkabelac(a)redhat.com>
CommitterDate: Fri Jan 30 15:58:12 2015 +0100
thin: report proper status for thin pool
After commit 158e9988768be344c0c97acdf52d1c020ab8c83e where we may
start to readlv_attr with a 'shared' ioctl call for a single lvs line
we where obtaing single status for thin pools.
However this is not properly reflecting lvm2 reality.
Correcting this by reading lv status from layered thin pool, but lv info
from non-layered (linear) mapped device which is maintained for proper
cluster locking.
---
tools/reporter.c | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/tools/reporter.c b/tools/reporter.c
index 29d326c..7c481be 100644
--- a/tools/reporter.c
+++ b/tools/reporter.c
@@ -65,10 +65,14 @@ static int _do_info_and_status(struct cmd_context *cmd,
return_0;
if (!lv_seg)
_choose_lv_segment_for_status_report(lv, &lv_seg);
- if (do_info)
+ if (do_info) {
/* both info and status */
status->info_ok = lv_info_with_seg_status(cmd, lv, lv_seg, use_layer, status, 1, 1);
- else
+ /* for inactive thin-pools reset lv info struct */
+ if (use_layer && status->info_ok &&
+ !lv_info(cmd, lv, 0, NULL, 0, 0))
+ memset(&status->info, 0, sizeof(status->info));
+ } else
/* status only */
status->info_ok = lv_status(cmd, lv_seg, use_layer, &status->seg_status);
} else if (do_info)
8 years, 8 months
master - cleanup: conf: auxiliary_device_status_source -> external_device_info_source
by Peter Rajnoha
Gitweb: http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=e8aab3a7fdb226...
Commit: e8aab3a7fdb22655493ace8bac75e655b5b0cffe
Parent: 434031719e37524606d198b2d78795962970a1b8
Author: Peter Rajnoha <prajnoha(a)redhat.com>
AuthorDate: Fri Jan 30 15:39:59 2015 +0100
Committer: Peter Rajnoha <prajnoha(a)redhat.com>
CommitterDate: Fri Jan 30 15:41:42 2015 +0100
cleanup: conf: auxiliary_device_status_source -> external_device_info_source
auxiliary_device_status_source was name used during development
of this feature, renamed later.
---
conf/example.conf.in | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/conf/example.conf.in b/conf/example.conf.in
index d9f10bf..f7b9da0 100644
--- a/conf/example.conf.in
+++ b/conf/example.conf.in
@@ -181,8 +181,8 @@ devices {
# By default, LVM2 will not ignore devices used as components of
# firmware RAID devices. Set to 1 to enable this detection.
# N.B. LVM2 itself is not detecting firmware RAID - an
- # auxiliary_device_status_source other than "native" must
- # be used for this detection to be successful.
+ # external_device_info_source other than "none" must
+ # be used for this detection to execute.
# 1 enables; 0 disables
fw_raid_component_detection = 0
8 years, 8 months
master - raid: check lock holding LV
by Zdenek Kabelac
Gitweb: http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=434031719e3752...
Commit: 434031719e37524606d198b2d78795962970a1b8
Parent: c99cb207153b5c103889a1ac67f799f6af4687d2
Author: Zdenek Kabelac <zkabelac(a)redhat.com>
AuthorDate: Fri Jan 30 14:13:25 2015 +0100
Committer: Zdenek Kabelac <zkabelac(a)redhat.com>
CommitterDate: Fri Jan 30 14:16:27 2015 +0100
raid: check lock holding LV
Since raid could be used as stacked LV - check lock holding LV
for proper locking type for clustered usage.
---
WHATS_NEW | 1 +
lib/metadata/raid_manip.c | 4 ++--
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/WHATS_NEW b/WHATS_NEW
index c7e257b..45e01fb 100644
--- a/WHATS_NEW
+++ b/WHATS_NEW
@@ -1,5 +1,6 @@
Version 2.02.116 -
====================================
+ Check lock holding LV when lvconverting stacked raid LV in cluster.
Support "udev" ext. dev. info for filters: PV min size, mpath, md, partition.
Add fw_raid_component_detection lvm.conf option to enable FW raid detection.
Add devices/external_device_info_source lvm.conf option ("none" by default).
diff --git a/lib/metadata/raid_manip.c b/lib/metadata/raid_manip.c
index 4ce84a0..c786e89 100644
--- a/lib/metadata/raid_manip.c
+++ b/lib/metadata/raid_manip.c
@@ -1040,8 +1040,8 @@ int lv_raid_change_image_count(struct logical_volume *lv,
/*
* LV must be either in-active or exclusively active
*/
- if (lv_is_active(lv) && vg_is_clustered(lv->vg) &&
- !lv_is_active_exclusive_locally(lv)) {
+ if (lv_is_active(lv_lock_holder(lv)) && vg_is_clustered(lv->vg) &&
+ !lv_is_active_exclusive_locally(lv_lock_holder(lv))) {
log_error("%s/%s must be active exclusive locally to"
" perform this operation.", lv->vg->name, lv->name);
return 0;
8 years, 8 months
master - WHATS_NEW
by Peter Rajnoha
Gitweb: http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=c99cb207153b5c...
Commit: c99cb207153b5c103889a1ac67f799f6af4687d2
Parent: 28ba0450e93db30ee4dd815cbe85478b3c6a719a
Author: Peter Rajnoha <prajnoha(a)redhat.com>
AuthorDate: Fri Jan 30 13:29:51 2015 +0100
Committer: Peter Rajnoha <prajnoha(a)redhat.com>
CommitterDate: Fri Jan 30 13:29:51 2015 +0100
WHATS_NEW
---
WHATS_NEW | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/WHATS_NEW b/WHATS_NEW
index 401c8b9..c7e257b 100644
--- a/WHATS_NEW
+++ b/WHATS_NEW
@@ -1,5 +1,8 @@
Version 2.02.116 -
====================================
+ Support "udev" ext. dev. info for filters: PV min size, mpath, md, partition.
+ Add fw_raid_component_detection lvm.conf option to enable FW raid detection.
+ Add devices/external_device_info_source lvm.conf option ("none" by default).
Scan pools in for_each_sub_lv() and add for_each_sub_lv_except_pools().
Fix lvm2app lvm_lv_get_property return value for fields with info/status ioctl.
Fix lvm2app regression in lvm_lv_get_attr causing unknown values (2.02.115).
8 years, 8 months