summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Revert "tests: avoid clobering dmesg"dev-mcsontos-test-dmesgMarian Csontos2015-06-221-10/+18
| | | | | | This reverts commit abcab54cca4b4f9ff157a5f51718c69ffdf34c7a. Dmesg is not uploaded on machines except on F19.
* post-releaseAlasdair G Kergon2015-06-204-2/+8
|
* pre-releasev2_02_122Alasdair G Kergon2015-06-204-8/+11
|
* tests: external origin updatesZdenek Kabelac2015-06-192-3/+9
| | | | | Update test for recent updates to support unalligned sizes and extension of reduced volume.
* log: flush stdout before print to stderrZdenek Kabelac2015-06-191-0/+2
| | | | Keep logging readable and fflush stdout before printing to stderr.
* lvm: move hyphen mangling codeZdenek Kabelac2015-06-193-25/+25
| | | | | | | Relocate hyphen code from lvm main into lvm_run_command() so all command and library user will have it. Update WHATS_NEW with missing changes.
* display: drop allocation from display_lvnameZdenek Kabelac2015-06-183-2/+20
| | | | | | | | | | | | | Use of display_lvname() in plain log_debug() may accumulate memory in command context mempool. Use instead small ringbuffer which allows to store cuple (10 ATM) names so upto 10 full names can be used at one. We are not keeping full VG/LV names as it may eventually consume larger amount of RAM resouces if vgname is longer and lots of LVs are in use. Note: if there would be ever needed for displaing more names at once, the limit should be raised (e.g. log_debug() would need to print more then 10 LVs on a single line).
* thin: support unaligned size of external origin and thin poolZdenek Kabelac2015-06-184-8/+102
| | | | | | | | | With thin-pool kernel target module 1.13 it's now support usage of external origin with sizes which are not 'alligned' with chunk size of thin-pool. Enable lvm2 support for this and also fix reporting of data_percent usage for case sizes are not alligned.
* thin: drop limitation for extension of reduced thin volumeZdenek Kabelac2015-06-182-10/+1
| | | | | | Drop check which has prevented resize of reduce thin volume with external origin. User is supposed to use 'zeroing' to get 'clean' chunks.
* libdm: add dm_tree_node_set_thin_pool_read_onlyZdenek Kabelac2015-06-184-1/+22
| | | | | Support thin-pool tree node with activation in read-only mode. (Native kernel API).
* libdaemon: move compare_config to libDavid Teigland2015-06-173-57/+59
| | | | so it can be used elsewhere.
* cleanup: missing target_type check in device_is_usable filterPeter Rajnoha2015-06-171-1/+1
|
* cleanup: || instead of |Peter Rajnoha2015-06-171-2/+2
| | | | More efficient with same result here.
* filter: filter-usable: consider snapshot and origin LV as unusable if its ↵Peter Rajnoha2015-06-172-7/+90
| | | | | | | | | | | | | | | | | | | | | | | | | | component is suspended Note that this is just a quick fix and it needs more robust fix to encompass any combination, not just the (old) snapshot one! This started with this report: https://bugzilla.redhat.com/show_bug.cgi?id=1219222 If we have devices/ignore_suspended_devices=1 set based on which we filter out suspended devices as unusable (or if we ignore suspended devices by force, e.g. during lvconvert called from dmeventd) and when we have snapshot and snapshot origin devices in the play, we need to look at their components unerneath (*-real and *-cow) to check if they're not suspended. If they are, the snapshot/snapshot origin is not usable as well and hence it needs to be filtered out by filter-usable.c code which does suspended device filtering. Not going into much details here, more details are in the bugzilla mentioned above. However, this is a quick fix since snapshot and this exact situation is not the only one. So this is something that needs to be revisited and fixed properly with full dm tree and checking the whole stack to state whether the device at the very top is usable or not.
* config: fix some settings incorrectly marked as CFG_DEFAULT_COMMENTED ↵Peter Rajnoha2015-06-172-26/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | instead of CFG_DEFAULT_UNDEFINED and causing segfault This patch fixes segfault which was caused by incorrectly marking some settings CFG_DEFAULT_COMMENTED instead of CFG_DEFAULT_UNDEFINED - the ones which have NULL default value, hence they're really undefined. A regression caused by a98ceceb1d101f0b19a6115f406e23f13feab5ae. For example: $ lvmconfig log/file file="/a" Before this patch: $ lvmconfig --type diff Segmentation fault (core dumped) With this patch applied: $ lvmconfig --type diff log { file="/a" } The same applies for these settings: log/activate_file global/library_dir global/system_id_file <disk_area>/disk_area_id There were also other settings with NULL default value and marked as CFG_DEFAULT_COMMENTED instead of CFG_DEFAULT_UNDEFINED, but they were cfg_array config settings where the NULL value was not causing segfault (NULL == empty array).
* Add a global get_cmd_name()David Teigland2015-06-162-0/+6
| | | | Which returns the string set by set_cmd_name().
* lv_refresh: move the bulk of the function into libdev-dct-nextDavid Teigland2015-06-163-16/+26
| | | | So that it can be used from other lib code.
* man vgchange lvchange: mention activation option sDavid Teigland2015-06-162-18/+68
| | | | | and improve the existing text about existing activation options.
* man lvm: mention hyphens in option namesDavid Teigland2015-06-161-0/+4
|
* Add the 's' activation modeDavid Teigland2015-06-163-2/+11
| | | | | | | | | | | | | Just as 'e' means activation with an exclusive lock, add an 's' to mean activation with a shared lock. This allows the existing but implicit behavior of '-ay' of clvm LVs to be specified explicitly. For local VGs, asy simply means ay, just like aey means ay. For local VGs, ay == aey == asy For clvm VGs, ay == asy, aey == aey, asy == asy
* Ignore hyphens in long option namesDavid Teigland2015-06-162-1/+26
| | | | | | | | | | | | | | The hyphens are removed from long option names before being read. This means that: - Option name specifications in args.h must not include hyphens. (The hyphen in 'use-policies' is removed.) - A user can include hyphens anywhere in the option name. All the following are equivalent: --vgmetadatacopies, --vg-metadata-copies, --v-g-m-e-t-a-d-a-t-a-c-o-p-i-e-s-
* xlate: add new variantsDavid Teigland2015-06-161-19/+63
| | | | New variants use the clearer function names from the kernel.
* lvmcache: mention lvconvert --cachemodeDavid Teigland2015-06-151-0/+5
| | | | for changing the cache mode on an existing LV.
* debug: better tracing messagesZdenek Kabelac2015-06-152-2/+8
| | | | Enhance traced output.
* libdm: better debug messageZdenek Kabelac2015-06-152-3/+6
| | | | Print reason for failing ioctl if thin pool message fails.
* cleanup: drop double constZdenek Kabelac2015-06-151-1/+1
| | | | | Second const is unneeded. Also always create whole array with MAX elements.
* dmeventd: better debugZdenek Kabelac2015-06-151-45/+15
| | | | Avoid using 'static' variable within threaded environmnent for debuging.
* dmeventd: drop stackZdenek Kabelac2015-06-151-4/+2
|
* dmeventd: drop pthread_cancelZdenek Kabelac2015-06-151-2/+1
| | | | | Drop unused pthread canceling as well as DEBUG printing in signal handler.
* post-releaseAlasdair G Kergon2015-06-124-2/+8
|
* pre-releasev2_02_121Alasdair G Kergon2015-06-124-6/+11
|
* test: Ensure that outdated PVs are wiped just once.dev-mornfall-lvmetad-repairPetr Rockai2015-06-101-0/+6
|
* metadata: When outdated PVs are wiped, notify lvmetad about the fact.Petr Rockai2015-06-103-1/+22
|
* metadata: Reject lvmetad metadata extensions when reading from disk.Petr Rockai2015-06-105-9/+29
|
* lvmetad: Make it possible to clear the outdated PVs list for a VG.Petr Rockai2015-06-101-0/+18
|
* metadata: Explain the pvs_outdated field in struct volume_group.Petr Rockai2015-06-101-1/+12
|
* lvmetad, lvmpolld: remove DL_LIBS from MakefileDavid Teigland2015-06-082-4/+2
| | | | and rdynamic. They are not needed.
* lvmetad.c: internal err on modifying global handle with open connectionOndrej Kozina2015-06-081-0/+4
| | | | | | | | lvmetad_init() should not be called with open connection to the daemon. Doing so is considered to be an internall error within lvm2 code. Such coincidence can't occur within current code. Let's assure us it won't ever happen.
* lvmetad.h: rephrase API descriptionsOndrej Kozina2015-06-081-5/+7
| | | | | | | | Some of descritpions were misleading at least. Some were completely off the reality. lvmetad_init doesn't re-establish or initialise a connection lvmetad_active and lvmetad_connect_or_warn can do so.
* man: lvmthin chunk and metadata sizesDavid Teigland2015-05-271-24/+30
| | | | | Clear some stale information, and give a suggestion to use a metadata size of 1GiB.
* tests: check for idle only for raid typeZdenek Kabelac2015-05-271-2/+5
|
* lvmetad: missing wrapper for lvmetad less compilationZdenek Kabelac2015-05-271-0/+1
|
* tests: check for clmvd socketZdenek Kabelac2015-05-271-3/+3
| | | | | A bit hacky since it expects PID_DIR == DEFAULT_RUN_DIR for now, just to check whether it fixes startup clvmd sync problem.
* tests: better check for array in syncZdenek Kabelac2015-05-271-1/+1
| | | | | | Update check for raid array being in sync - getting somewhat complex. It's another way to fight with problems in: https://bugzilla.redhat.com/show_bug.cgi?id=1210637
* tests: drop debug printZdenek Kabelac2015-05-271-1/+0
|
* cleanup: gcc warn fix, don't hide pvs()Zdenek Kabelac2015-05-271-2/+2
|
* lvmpolld: terminate error message with a dot and LFOndrej Kozina2015-05-271-1/+1
|
* WHATS_NEW: various updatesOndrej Kozina2015-05-261-0/+2
| | | | | commit c069aff21b1450923b59e98ab709a5e667cdcda9 commit 8af5f54824f889c438104625dbe159f6e8dedbc4
* dmsetup: zero errno in before strtoul callOndrej Kozina2015-05-261-0/+1
| | | | | | Testing errno value without explicitly setting to zero in before the strtoul call may lead to unexpected failures.
* lvmpolld: zero errno in before strtoul callOndrej Kozina2015-05-261-0/+1
| | | | | | Testing errno value without explicitly setting to zero in before the strtoul call may lead to unexpected failures.