Gitweb: http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=26889b3bb636b565…
Commit: 26889b3bb636b5655620f25c38db2c6759bf708d
Parent: e9ee2cb6b6cf20893ab753d7129f759ba8faa931
Author: Zdenek Kabelac <zkabelac(a)redhat.com>
AuthorDate: Fri May 27 13:49:30 2016 +0200
Committer: Zdenek Kabelac <zkabelac(a)redhat.com>
CommitterDate: Fri May 27 15:47:24 2016 +0200
snapshot: check merging_cow is cow
Check first the LV is cow before even checking it's a merging COW.
Note: previosly merging_cow was also merging origin, so without
this explicit check it used to return '1' also when passed
LV has been merging origin.
---
WHATS_NEW | 1 +
lib/metadata/snapshot_manip.c | 7 ++++++-
2 files changed, 7 insertions(+), 1 deletions(-)
diff --git a/WHATS_NEW b/WHATS_NEW
index 2b6e0fb..aa352a2 100644
--- a/WHATS_NEW
+++ b/WHATS_NEW
@@ -1,5 +1,6 @@
Version 2.02.155 -
================================
+ When checking LV is a merging COW, validate its a COW LV first.
Correcting value in copy_percent() for 100%.
Update vgreduce to use process_each_vg.
Update lvconvert to use process_each_lv.
diff --git a/lib/metadata/snapshot_manip.c b/lib/metadata/snapshot_manip.c
index 29b851f..2f13ac9 100644
--- a/lib/metadata/snapshot_manip.c
+++ b/lib/metadata/snapshot_manip.c
@@ -139,7 +139,12 @@ int lv_is_visible(const struct logical_volume *lv)
int lv_is_merging_cow(const struct logical_volume *cow)
{
- struct lv_segment *snap_seg = find_snapshot(cow);
+ struct lv_segment *snap_seg;
+
+ if (!lv_is_cow(cow))
+ return 0;
+
+ snap_seg = find_snapshot(cow);
/* checks lv_segment's status to see if snapshot is merging */
return (snap_seg && (snap_seg->status & MERGING)) ? 1 : 0;
Gitweb: http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=e9ee2cb6b6cf2089…
Commit: e9ee2cb6b6cf20893ab753d7129f759ba8faa931
Parent: 780424639afe3e9a91e85bf3f88142606833f310
Author: Zdenek Kabelac <zkabelac(a)redhat.com>
AuthorDate: Fri May 27 13:48:30 2016 +0200
Committer: Zdenek Kabelac <zkabelac(a)redhat.com>
CommitterDate: Fri May 27 15:47:24 2016 +0200
report: fix report copy_percent value
When mirror/raid called copy_percent function to return,
when 100% was supposed to be returned, wrong float 100.0 value
could have been reported back instead of dm_percent_t DM_PERCENT_100.
There is broken API somewhere, since the function here rely on
actively being modifid VG content even when doing 'lvs' operation.
(extents_copies)
---
WHATS_NEW | 1 +
lib/metadata/lv_manip.c | 2 +-
2 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/WHATS_NEW b/WHATS_NEW
index fa13ac8..2b6e0fb 100644
--- a/WHATS_NEW
+++ b/WHATS_NEW
@@ -1,5 +1,6 @@
Version 2.02.155 -
================================
+ Correcting value in copy_percent() for 100%.
Update vgreduce to use process_each_vg.
Update lvconvert to use process_each_lv.
Update pvscan to use process_each_vg for autoactivation.
diff --git a/lib/metadata/lv_manip.c b/lib/metadata/lv_manip.c
index 6c2d4e5..b941979 100644
--- a/lib/metadata/lv_manip.c
+++ b/lib/metadata/lv_manip.c
@@ -872,7 +872,7 @@ dm_percent_t copy_percent(const struct logical_volume *lv)
numerator += seg->area_len;
}
- return denominator ? dm_make_percent(numerator, denominator) : 100.0;
+ return denominator ? dm_make_percent(numerator, denominator) : DM_PERCENT_100;
}
/* Round up extents to next stripe boundary for number of stripes */
Gitweb: http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=780424639afe3e9a…
Commit: 780424639afe3e9a91e85bf3f88142606833f310
Parent: b762c37555dec3c2e99df05a721787d2223807b6
Author: Alasdair G Kergon <agk(a)redhat.com>
AuthorDate: Fri May 27 14:35:11 2016 +0100
Committer: Alasdair G Kergon <agk(a)redhat.com>
CommitterDate: Fri May 27 14:35:11 2016 +0100
Revert "libdm: trace missing settings"
This reverts commit 8fd886f735125de4b3e32fc0a188af0192a0d173.
This was a deliberate omission because logging token-by-token metadata
parsing greatly increases the amount of logging for hardly any benefit.
In general, only LVM config file settings need to be logged, and in
places where it's considered important to log particular elements of
metadata that should be done using specific log_* lines.
This area can be revisited.
---
WHATS_NEW_DM | 1 -
libdm/libdm-config.c | 15 +++------------
2 files changed, 3 insertions(+), 13 deletions(-)
diff --git a/WHATS_NEW_DM b/WHATS_NEW_DM
index 165cb90..d446997 100644
--- a/WHATS_NEW_DM
+++ b/WHATS_NEW_DM
@@ -12,7 +12,6 @@ Version 1.02.124 - 30th April 2016
Version 1.02.123 - 23rd April 2016
==================================
- Trace more settings in very verbose mode for libdm-config.
Do not strip LVM- when debug reporting not found uuid.
Version 1.02.122 - 9th April 2016
diff --git a/libdm/libdm-config.c b/libdm/libdm-config.c
index 86955c5..dcb7c3f 100644
--- a/libdm/libdm-config.c
+++ b/libdm/libdm-config.c
@@ -1154,11 +1154,8 @@ int dm_config_get_uint32(const struct dm_config_node *cn, const char *path,
if (!n || !n->v || n->v->type != DM_CFG_INT)
return 0;
- if (result) {
- log_very_verbose("Setting %s to %u", path, (uint32_t) n->v->v.i);
+ if (result)
*result = n->v->v.i;
- }
-
return 1;
}
@@ -1172,11 +1169,8 @@ int dm_config_get_uint64(const struct dm_config_node *cn, const char *path,
if (!n || !n->v || n->v->type != DM_CFG_INT)
return 0;
- if (result) {
- log_very_verbose("Setting %s to " FMTu64 , path, (uint64_t) n->v->v.i);
+ if (result)
*result = (uint64_t) n->v->v.i;
- }
-
return 1;
}
@@ -1190,11 +1184,8 @@ int dm_config_get_str(const struct dm_config_node *cn, const char *path,
if (!n || !n->v || n->v->type != DM_CFG_STRING)
return 0;
- if (result) {
- log_very_verbose("Setting %s to %s", path, n->v->v.str);
+ if (result)
*result = n->v->v.str;
- }
-
return 1;
}
Gitweb: http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=b762c37555dec3c2…
Commit: b762c37555dec3c2e99df05a721787d2223807b6
Parent: 5dc2ed0c71eab9081ef6245150f5efad2a7c77b9
Author: David Teigland <teigland(a)redhat.com>
AuthorDate: Thu May 26 09:13:30 2016 -0500
Committer: David Teigland <teigland(a)redhat.com>
CommitterDate: Thu May 26 09:13:30 2016 -0500
WHATS_NEW: include recent changes
---
WHATS_NEW | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/WHATS_NEW b/WHATS_NEW
index eac3477..fa13ac8 100644
--- a/WHATS_NEW
+++ b/WHATS_NEW
@@ -1,5 +1,8 @@
Version 2.02.155 -
================================
+ Update vgreduce to use process_each_vg.
+ Update lvconvert to use process_each_lv.
+ Update pvscan to use process_each_vg for autoactivation.
Add basic support for --type raid0 using md.
Add support for lvchange --cachemode for cached LV.
Fix liblvm2app error handling when setting up context.