Gitweb: http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=829384f46dedee86…
Commit: 829384f46dedee8646cc6b098ef98463658c51d6
Parent: e96041e18fa5f8f0ccb50d31ee0b1c9fb6c5db21
Author: David Teigland <teigland(a)redhat.com>
AuthorDate: Wed Aug 12 12:51:35 2015 -0500
Committer: David Teigland <teigland(a)redhat.com>
CommitterDate: Wed Aug 12 15:35:45 2015 -0500
config: description updates
Make the first line of every description a complete one
line sentence for the benefit of lvmconfig --withsummary.
---
lib/config/config_settings.h | 9 ++++-----
1 files changed, 4 insertions(+), 5 deletions(-)
diff --git a/lib/config/config_settings.h b/lib/config/config_settings.h
index 54a50ab..b687c57 100644
--- a/lib/config/config_settings.h
+++ b/lib/config/config_settings.h
@@ -122,8 +122,7 @@ cfg_section(devices_CFG_SECTION, "devices", root_CFG_SECTION, 0, vsn(1, 0, 0), 0
"How LVM uses block devices.\n")
cfg_section(allocation_CFG_SECTION, "allocation", root_CFG_SECTION, CFG_PROFILABLE, vsn(2, 2, 77), 0, NULL,
- "How LVM selects free space for Logical Volumes and default\n"
- "properties applied to new Logical Volumes of various types.\n")
+ "How LVM selects space and applies properties to LVs.\n")
cfg_section(log_CFG_SECTION, "log", root_CFG_SECTION, 0, vsn(1, 0, 0), 0, NULL,
"How LVM log information is reported.\n")
@@ -811,11 +810,11 @@ cfg(global_sparse_segtype_default_CFG, "sparse_segtype_default", global_CFG_SECT
"The '--type snapshot|thin' option overrides this setting.\n")
cfg(global_lvdisplay_shows_full_device_path_CFG, "lvdisplay_shows_full_device_path", global_CFG_SECTION, CFG_PROFILABLE | CFG_DEFAULT_COMMENTED, CFG_TYPE_BOOL, DEFAULT_LVDISPLAY_SHOWS_FULL_DEVICE_PATH, vsn(2, 2, 89), NULL, 0, NULL,
+ "Enable this to reinstate the previous lvdisplay name format.\n"
"The default format for displaying LV names in lvdisplay was changed\n"
"in version 2.02.89 to show the LV name and path separately.\n"
"Previously this was always shown as /dev/vgname/lvname even when that\n"
- "was never a valid path in the /dev filesystem.\n"
- "Enable this option to reinstate the previous format.\n")
+ "was never a valid path in the /dev filesystem.\n")
cfg(global_use_lvmetad_CFG, "use_lvmetad", global_CFG_SECTION, 0, CFG_TYPE_BOOL, DEFAULT_USE_LVMETAD, vsn(2, 2, 93), "@DEFAULT_USE_LVMETAD@", 0, NULL,
"Use lvmetad to cache metadata and reduce disk scanning.\n"
@@ -1264,7 +1263,7 @@ cfg(activation_monitoring_CFG, "monitoring", activation_CFG_SECTION, 0, CFG_TYPE
"The '--ignoremonitoring' option overrides this setting.\n")
cfg(activation_polling_interval_CFG, "polling_interval", activation_CFG_SECTION, 0, CFG_TYPE_INT, DEFAULT_INTERVAL, vsn(2, 2, 63), NULL, 0, NULL,
- "Check pvmove or lvconvert progress at this interval (seconds)\n"
+ "Check pvmove or lvconvert progress at this interval (seconds).\n"
"When pvmove or lvconvert must wait for the kernel to finish\n"
"synchronising or merging data, they check and report progress\n"
"at intervals of this number of seconds.\n"
Gitweb: http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=e96041e18fa5f8f0…
Commit: e96041e18fa5f8f0ccb50d31ee0b1c9fb6c5db21
Parent: 0f45aa7f313e60e10aec6779e86f2179b8ac8865
Author: Bryn M. Reeves <bmr(a)redhat.com>
AuthorDate: Wed Aug 12 19:16:05 2015 +0100
Committer: Bryn M. Reeves <bmr(a)redhat.com>
CommitterDate: Wed Aug 12 19:16:05 2015 +0100
dmsetup: only free resources once in the final interval
The _update_interval_times() function is called once per reported
object: when shutting down at the end of a run only the first call
should free timestamps. Clear the timestamp pointers after free
and use this to signal to other callers that the clock is already
shut down.
---
tools/dmsetup.c | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
diff --git a/tools/dmsetup.c b/tools/dmsetup.c
index 9876bd2..459639b 100644
--- a/tools/dmsetup.c
+++ b/tools/dmsetup.c
@@ -638,6 +638,12 @@ static int _update_interval_times(void)
int r = 0;
/*
+ * Clock shutdown for exit - nothing to do.
+ */
+ if (_timer_fd == TIMER_STOPPED && !_cycle_timestamp)
+ return 1;
+
+ /*
* Current timestamp. If _new_interval is set this is used as
* the new cycle start timestamp.
*/
@@ -717,6 +723,9 @@ out:
if (_cycle_timestamp)
dm_timestamp_destroy(_cycle_timestamp);
dm_timestamp_destroy(this_timestamp);
+
+ /* Clear timestamp pointers to signal shutdown. */
+ _cycle_timestamp = this_timestamp = NULL;
}
return r;
}