summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* log: Empty LVM_LOG_FILE_EPOCH handlingdev-mcsontos-fixesMarian Csontos2015-07-101-1/+4
| | | | | | | | When env.variable is set to empty getenv returns pointer to empty string. In tests it is expected this will produce undecorated debug.log instead of debug.log__*
* test: Fix syntax error in prepare_devsMarian Csontos2015-07-101-1/+1
|
* test: lvmlockd will be primarily used in clustersMarian Csontos2015-07-102-2/+2
|
* debug: Make the debug message less scary.Marian Csontos2015-07-101-1/+1
|
* test: Print stacks for all threadsMarian Csontos2015-07-101-0/+2
| | | | May be useful in case of deadlocks...
* lvmpolld: Fix segfault on 32 bit architecturesMarian Csontos2015-07-102-4/+4
| | | | | Explicit conversions are needed to align writes and reads on the stack. int64_t is popped from stack while int was pushed.
* coverity: missing return value checksPeter Rajnoha2015-07-099-28/+64
|
* coverity: missing return value for dm_split_lvm_name pass proper DM name ↵Peter Rajnoha2015-07-091-1/+4
| | | | instead of NULL value
* coverity: fix possible invalid dereferencesPeter Rajnoha2015-07-094-8/+6
| | | | | | | lib/format1/import-export.c:167: var_deref_op: Dereferencing null pointer "vg->lvm1_system_id" lib/cache/lvmetad.c:1023: var_deref_op: Dereferencing null pointer "this" daemons/lvmlockd/lvmlockd-core.c:2659: check_after_deref: Null-checking "act" suggests that it may be null, but it has already been dereferenced on all paths leading to the check /daemons/lvmetad/lvmetad-core.c:1024: check_after_deref: Null-checking "pvmeta" suggests that it may be null, but it has already been dereferenced on all paths leading to the check
* lvmconf: fix ignored --startstopservices in lvmconf ... --mirrorservice on ↵Peter Rajnoha2015-07-092-2/+3
| | | | | | | | | | systemd If running lvmconf ... --startstopservice --mirrorservice in systemd environment, handle lvm2-cmirrord accordingly. A typo in the script caused the lvm2-cmirrord to not start/stop immediately, it was only enabled/disabled (so the --startstopservice was ignored in this case).
* vgchange: don't disable VG lock in lock_stopDavid Teigland2015-07-081-2/+0
| | | | | | It was an optimization to avoid a pointless unlock call. It affects all VGs, but was only intended to affect the VG being stopped.
* lvmlockd: remove log_error instances for normal conditionsDavid Teigland2015-07-081-10/+14
| | | | | There are a number of log_error instances that are replaced by log_debug because they are not errors.
* man: add lvmlocal.conf to config cascadeAndy Grover2015-07-081-1/+1
| | | | | see BZ 1241182, lvmlocal is searched before lvm.conf but after lvm_<tag>.conf.
* lvmlockd: fix unreachable codeDavid Teigland2015-07-081-2/+2
|
* lvmlockctl: fix uninitialized namesDavid Teigland2015-07-081-10/+13
| | | | | When formatting and printing info from lvmlockd. Also fix some new line problems.
* toollib: skip processing the sanlock LV unless named or allDavid Teigland2015-07-081-1/+14
| | | | | | This prevents 'lvremove vgname' from attempting to remove the hidden sanlock LV. Only vgremove should remove the hidden sanlock LV holding the sanlock locks.
* tests: follow symlinksZdenek Kabelac2015-07-081-2/+2
| | | | | If the srcdir itself is a symlink the find would not return expected value. So support also this config and use -L.
* coverity: fix regresions from 16e9b32c2f1Zdenek Kabelac2015-07-081-2/+3
| | | | | | 16e9b32c2f1a2d7e0f05a88981824ef0e7607965 incorrectly moved free of opened descriptor out of if{} - resulted of closing random file handle.
* coverity: fix NULL check in lv->lvid.sPeter Rajnoha2015-07-081-1/+1
| | | | | | | tools/polldaemon.c:457: array_null: Comparing an array to null is not useful: "lv->lvid.s" The lv->lvid.s is never NULL. The check was supposed to be *lv->lvid.s to check if the string is not empty.
* coverity: fix missing initializationPeter Rajnoha2015-07-0811-14/+15
| | | | | | | | | | | ... Using uninitialized value "lockd_state" when calling "lockd_vg" (even though lockd_vg assigns 0 to the lockd_state, but it looks at previous state of lockd_state just before that so we need to have that properly initialized!) libdm/libdm-report.c:2934: uninit_use_in_call: Using uninitialized value "tm". Field "tm.tm_gmtoff" is uninitialized when calling "_get_final_time". daemons/lvmlockd/lvmlockctl.c:273: uninit_use_in_call: Using uninitialized element of array "r_name" when calling "format_info_r_action". (just added FIXME as this looks unfinished?)
* coverity: previous commit - not "break" but "fall through"Peter Rajnoha2015-07-081-1/+1
|
* coverity: missing break in switch expressionPeter Rajnoha2015-07-081-0/+1
| | | | lib/lvmpolld/lvmpolld-client.c:109: fallthrough: The above case falls through to this one
* coverity: fix uninitialized values and other reported problemsPeter Rajnoha2015-07-081-13/+15
| | | | | | daemons/lvmlockd/lvmlockd-core.c:5709: error[uninitStructMember]: Uninitialized struct member: ds..... daemons/lvmlockd/lvmlockd-core.c:799: error[uninitstring]: Dangerous usage of 'version' (strncpy doesn't always null-terminate it) daemons/lvmlockd/lvmlockd-core.c:646: error[memleakOnRealloc]: Common realloc mistake: 'pollfd' nulled but not freed upon failure
* coverity: fix resource leaksPeter Rajnoha2015-07-083-14/+20
| | | | | | | | | lib/log/log.c:115: leaked_storage: Variable "st" going out of scope leaks the storage it points to daemons/lvmpolld/lvmpolld-core.c:573: leaked_storage: Variable "cmdargv" going out of scope leaks the storage it points to daemons/lvmlockd/lvmlockd-core.c:5341: leaked_handle: Handle variable "fd" going out of scope leaks the handle daemons/lvmlockd/lvmlockctl.c:575: overwrite_var: Overwriting "able_vg_name" in "able_vg_name = strdup(optarg)" leaks the storage that "able_vg_name" points to daemons/lvmlockd/lvmlockctl.c:571: overwrite_var: Overwriting "able_vg_name" in "able_vg_name = strdup(optarg)" leaks the storage that "able_vg_name" points to daemons/lvmlockd/lvmlockctl.c:385: leaked_handle: Handle variable "s" going out of scope leaks the handle
* config: replace find_config_tree_node with find_config_tree_array where ↵Peter Rajnoha2015-07-0814-71/+44
| | | | appropriate
* config: add find_config_tree_arrayPeter Rajnoha2015-07-083-5/+57
| | | | | | | | | | | | | | | | | | | | Before, we used general find_config_tree_node function to retrieve array values. This had a downside where if the node was not found, we had to insert default values directly in-situ after the find_config_tree_node call. This way, we had two copies of default values - one in config_settings.h and the other one directly in the code where we found out that find_config_tree_node returned NULL and hence we needed to fall back to defaults. With separate find_config_tree_array used for array config values, we keep all the defaults centrally in config_settings.h because the new find_config_tree_array automatically returns these defaults if it can't find any value set in the configuration. This patch just makes the behaviour exactly the same for arrays as for any other non-array type where we call find_config_tree_<type> already, hence making the internal interface for handling array values consistent with the rest of the config types.
* spec: Move lvm2-lockd into separate packageMarian Csontos2015-07-071-12/+40
|
* spec: Update to use enable_lockd_*Marian Csontos2015-07-072-2/+25
|
* post-releaseAlasdair G Kergon2015-07-074-2/+8
|
* pre-releasev2_02_125Alasdair G Kergon2015-07-074-4/+5
|
* lvmpolld: fix possible memory corruption with mem debugOndrej Kozina2015-07-071-1/+3
| | | | | | | | | if lvm2 is built with debug memory options dm_free() is not mapped directly to std library's free(). This may cause memory corruption as a line buffer may get reallocated in getline with realloc. This is a temporary hotfix. Other debug memory failure needs to be investigated and explained.
* conf: regeneratePeter Rajnoha2015-07-071-1/+1
|
* WHATS_NEW: Update. Fix renamed config setting vsn.Alasdair G Kergon2015-07-072-1/+3
|
* conf: regeneratePeter Rajnoha2015-07-072-0/+35
|
* tests: use old snapshot for huge volumesZdenek Kabelac2015-07-071-1/+1
| | | | Avoid stacking thins over thins.
* cache: support clear-needs-checkZdenek Kabelac2015-07-077-4/+84
| | | | | | | Support newer cache tool which support new option --clear-needs-check-flag. Code does same as for thin_check.
* lvmetactl: program to interact with lvmetadDavid Teigland2015-07-062-1/+188
| | | | | This is not installed; it's only a developer utility at this point.
* man lvmlockd: minor updatesDavid Teigland2015-07-061-11/+25
|
* configure: Separate sanlock and dlm lock config.Alasdair G Kergon2015-07-064-249/+292
|
* config: remove read_only_lock_modesDavid Teigland2015-07-062-19/+0
| | | | | It had been added as part of lvmlockd code, but it does not seem particularly useful.
* lockd: remove unused code for overriding lock modesDavid Teigland2015-07-063-127/+1
| | | | | | | | | | including the allow_override_lock_modes setting. It was not possible to override default lock modes any longer, since the command line options had already been removed. A mechanism will probably be required later that puts part of this back.
* config: rename lock_retries lvmlockd_lock_retriesDavid Teigland2015-07-064-9/+9
| | | | | Because it only applies to lvmlockd requests, but sounded too general.
* include: Standardise around new tool.h.Alasdair G Kergon2015-07-0637-137/+139
|
* configure: enable building lvmlockd without sanlock or dlmDavid Teigland2015-07-063-50/+275
|
* clean-up: typos s/bellow/below/Jonathan Brassow2015-07-064-4/+4
|
* macros: Wrap PRI with FMT.Alasdair G Kergon2015-07-0623-37/+68
| | | | | Create a set of wrappers with embedded % such as #define FMTu64 "%" PRIu64
* lockd: Clean up specMarian Csontos2015-07-042-5/+1
|
* Build lockd only for Fedora >= 22 and RHEL >= 7Marian Csontos2015-07-041-0/+2
|
* post-releaseAlasdair G Kergon2015-07-034-2/+8
|
* pre-releasev2_02_124Alasdair G Kergon2015-07-0312-21/+28
|