Gitweb: http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=af2fce769088baa2…
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
Gitweb: http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=40102ae01401741e…
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;
Gitweb: http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=a29a3ed3c37f72fc…
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)
Gitweb: http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=e8aab3a7fdb22655…
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