summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* lib: move towards v2 version of VDO format2018-12-18-stableZdenek Kabelac2019-01-0311-80/+105
| | | | | | | | | | | | | | | Drop very old original format of VDO target and focus on V2 version. So some variables were renamed or replaced. There is no compatibility preserved (with assumption so far this is experimental feature and there is no real user). Note - version currently VDO calls this version 6.2. (cherry picked from commit 3320ab8334794684b4d324bb78d0b293a27287a6) Conflicts: WHATS_NEW device_mapper/libdm-deptree.c
* dmeventd: resolve compilation of vdo status parsingZdenek Kabelac2019-01-032-3/+23
| | | | | | | | | | | | | | | A bit of chicken & egg problem - dmeventd needs to use old libdm library. VDO is only part of new device_mapper internal library. So include directly source file for parsing status - this fixes usability problem of VDO plugin introduced with previous Makefile reshaping patchset. NOTE: source file needs to be keep then compilable in both environments. Also add missing copyright header. (cherry picked from commit 9785e40b8d52fd87d7c451ed838f450aee41ba8d)
* lvmlockd: Fix arguments when built without sanlockMarian Csontos2018-12-181-2/+2
|
* post-releaseMarian Csontos2018-12-184-2/+8
|
* pre-releasev2_03_02Marian Csontos2018-12-184-8/+9
|
* build: make generateMarian Csontos2018-12-188-177/+86
|
* build: Remove badly placed `@`Marian Csontos2018-12-181-2/+2
|
* build: Remove reference to undefined @BUILD_LVMETAD@Marian Csontos2018-12-181-4/+1
|
* tests: Remove unsupported mirrored mirrorlogMarian Csontos2018-12-188-148/+2
|
* makefiles: also fix build of unit testZdenek Kabelac2018-12-171-1/+1
| | | | (cherry picked from commit 2076dda0b8e6a33eec92a8e6b4616f8ab5a9b495)
* makefile: fixes build for older systemZdenek Kabelac2018-12-171-1/+1
| | | | | | | | | With older gcc - we need to resolve symbols linked with devmapper-event that is now using -ldevmapper. Also add forgotten systemd library needed for dbus notification. (cherry picked from commit 5db56b36f168bddc4364fbffab1fcee07eb1d664)
* makefiles: correcting login of makefileZdenek Kabelac2018-12-178-71/+58
| | | | | | | | Fixing some ordering issue with inclusion of common make.tmpl. Correcting dependency calculation Simplifying inclusive makefile (cherry picked from commit 94237354ddbf2abc0f04e7f06ee3c1263dfc6b6e)
* makefiles: dm-tools improve MakefileZdenek Kabelac2018-12-171-48/+39
| | | | (cherry picked from commit 0dc7abe013729b3b3560b67fcc37f3cc619f323d)
* makefiles: allow to set LIBS in MakefilesZdenek Kabelac2018-12-171-2/+1
| | | | | | | | Avoid doing hard set of LIBS var, so if the LIBS is set before 'include make.tmpl' it's not lost. This gives better control over order of linked libraries. (cherry picked from commit b5366b1d8d9edf8a21de4e256ff89774c6b87f16)
* makefiles: no longer used defineZdenek Kabelac2018-12-172-4/+0
| | | | | | Not used anymore -D_BUILDING_LVM (cherry picked from commit 143c8dcd7f20f6ac07eeb859c5fa8d7fad9a5a44)
* makefiles: missing cleaningZdenek Kabelac2018-12-171-0/+1
| | | | (cherry picked from commit a66520645395eb2ee19a8a9bc924a5a618330379)
* makefiles: quite installZdenek Kabelac2018-12-172-6/+8
| | | | (cherry picked from commit f619cac598e9236dd16c7fd8d3465b981c4a4648)
* makefiles: drop unneeded LIBS addZdenek Kabelac2018-12-171-2/+0
| | | | (cherry picked from commit a63015442e8bf3893e8531b209057a44158e438b)
* makefiles: sortZdenek Kabelac2018-12-175-12/+12
| | | | (cherry picked from commit d76b4afb8ed9531c1609804b684900a0ea96815c)
* cmirror: link with libdmZdenek Kabelac2018-12-172-4/+4
| | | | | | | | | Since there is very little change there will be any new devel going to happing with cmirror - avoid eating extra disk space and link with already installed libdm which implements all use basic function of dm list (cherry picked from commit a8cdd9e16a04ca837401cbcaa4677b2af50007b7)
* lvm: drop usage of dl libraryZdenek Kabelac2018-12-176-137/+4
| | | | | | | | | | | Since lvm no longer supports any dlopen-able plugins (which in practice was never really usable) drop linking with -ldl. (cherry picked from commit 701ecff0ff2c1a3d194a6d94b16b9ce6f0a2ba22) Conflicts: lib/commands/toolcontext.c
* dmeventd: do not link internal libraries to pluginsZdenek Kabelac2018-12-176-12/+6
| | | | | | | Avoid linking internal device-mapper and link dynamically libdevmapper. This considerably reduced size of installed binaries. (cherry picked from commit 8bf445b2deed25f101e2861656ee19151ea7e335)
* dmeventd: fix linking with libdevmapperZdenek Kabelac2018-12-174-13/+13
| | | | | | | | | | | | | | | | | | | | Since dmeventd is 'libdm' based project, it needs to link libdm library instead of its internal version An external users may provide plugins loadeable by dmeventd. So external user of libdevmapper-event library has no other option then to link with released libdevmapper library. The complexity comes with lvm2 plugins. The lvm2 plugin itself uses internal version of device_mapper, but libdevmapper-event usage is libdm based - so there needs to be avoided any breakage on compatibility of internal i.e. dm_task_run structures. TODO: most likely dmeventd itself should be moved into libdm/dm-tools dir, and only lvm2 plugins should be created as part of lvm project, but those still need to link with libdevmapper. (cherry picked from commit 035a7b9a4bf77798d9d7ecdb7cfa8dfd77a92729)
* dmfilemapd: avoid linking with DL_LIBSZdenek Kabelac2018-12-171-2/+2
| | | | | | | Dmfilemapd is not using dlopen so doesn't need to be linked with DL_LIBS. (cherry picked from commit c666e8d25e724802a85489c548adc763949fdfa9)
* lvconvert: ensure proper init of pv_listZdenek Kabelac2018-12-171-1/+1
| | | | (cherry picked from commit f514e379786689a47518bf67d71a388977cc7369)
* lvmdbusd: Update table lookup for state lv_attrTony Asleson2018-12-171-2/+8
| | | | (cherry picked from commit 2e01af0f78fb63c084998f728668553d8cce2b64)
* lvmdbusd: Update table lookup for health lv_attrTony Asleson2018-12-171-3/+11
| | | | (cherry picked from commit a6cba2d0a08e77a7e5178a2fac605863848a8e2e)
* lvmdbusd: Handle missing lv_attr table lookupsTony Asleson2018-12-171-11/+24
| | | | | | | | | If we don't know the meaning we will return the key with default text instead of raising an exception and taking the daemon out in the process. Resolves: rhbz1657950 (cherry picked from commit 51f08efaa700550740254093bacea270325f2ccf)
* lvmdbusd: Dump blackbox newest firstTony Asleson2018-12-171-1/+1
| | | | | | | | When we get bug reports we may not get the entire log, so lets dump the fight recorder from newest to oldest as the one we are interested in was likely to be the last command run. (cherry picked from commit f1684bf8e89b87d7f04e0a963def66f76634766d)
* lvmanip: uninitialized members in struct pv_list (#10)Ming-Hung Tsai2018-12-172-1/+2
| | | | | | | | | | | Scenario: Given an existed LV `lvol0`, I want to create another LV on the PVs used by `lvol0`. I use `build_parallel_areas_from_lv()` to obtain the `pv_list` of each segments. However, the returned `pv_list` is not properly initialized, which causes segfault in subsequent operations. (cherry picked from commit 859feb81e5b61ac2109b1d7850844ccf1ce3e5bf)
* debug: drop extra tracingZdenek Kabelac2018-12-171-1/+1
| | | | | | Stack tracing after log_error() is not needed. (cherry picked from commit db6d9e04af7277a5e2883743e0a9a1502d97249f)
* cleanup: some local headers firstZdenek Kabelac2018-12-173-7/+6
| | | | (cherry picked from commit cc5cfb88d70ef7982e66e5ddf8a5fbd69d485fec)
* makefiles: some leftovers from lvmetadZdenek Kabelac2018-12-172-4/+2
| | | | (cherry picked from commit 73bef5e3ddc962e462b3068fd0b1c7cbccad5176)
* makefiles: local headers firstZdenek Kabelac2018-12-171-1/+1
| | | | (cherry picked from commit 4801919b01de26df9c1940a997a54c47ca5fee5d)
* makefiles: drop unneeded include pathZdenek Kabelac2018-12-171-2/+0
| | | | (cherry picked from commit 454024f9576e83dde7c2c2df9a201c3e680bd864)
* makefiles: correct libdm dependencyZdenek Kabelac2018-12-171-3/+3
| | | | | | Correcting dependency tracking for libdm internal files. (cherry picked from commit 0f5bdd4d316c0651f170ba73eca244caf71d8e70)
* headers: use full path header instead of -I directiveZdenek Kabelac2018-12-1710-11/+6
| | | | | | | Replace Makefile -I with full path to headers like we use now everywhere else. (cherry picked from commit 63b0f0dab8b9a86b5cae6592f8cbea2eac0b70a3)
* headers: use configure.h as 1st. headerZdenek Kabelac2018-12-1727-53/+40
| | | | | | | | | | | | | | | | Ensure configure.h is always 1st. included header. Maybe we could eventually introduce gcc -include option, but for now this better uses dependency tracking. Also move _REENTRANT and _GNU_SOURCE into configure.h so it doesn't need to be present in various source files. This ensures consistent compilation of headers like stdio.h since it may produce different declaration. (cherry picked from commit 0b19387dae782b33bb341e58ab3c7ff804ca4f14) Conflicts: include/configure.h.in
* libdm: use libdm headerZdenek Kabelac2018-12-172-1/+2
| | | | | | User libdm header file. (cherry picked from commit 3c377643339be97940554323909d51b12c933f9e)
* libdm: print params only for ioctls using themZdenek Kabelac2018-12-173-16/+59
| | | | | | | | When preparing ioctl buffer and flatting all parameters, add table parameters only to ioctl that do process them. Note: list of ioctl should be kept in sync with kernel code. (cherry picked from commit 43f8da76997a22be123e97b6d0f357d6ec2d0c7c)
* libdm: add DM_DEVICE_ARM_POLLZdenek Kabelac2018-12-175-3/+14
| | | | | | Expose DM_DEVICE_ARM_POLL via standard API enum. (cherry picked from commit 1ae5bf2b833a5d55cf97de1619cc820d4e8c394f)
* libdm: do not add params for resume and removeZdenek Kabelac2018-12-173-0/+5
| | | | | | | | | | | | | | | | | | | | | DM_DEVICE_CREATE with table is doing several ioctl operations, however only some of then takes parameters. Since _create_and_load_v4() reused already existing dm task from DM_DEVICE_RELOAD it has also kept passing its table parameters to DM_DEVICE_RESUME ioctl - but this ioctl is supposed to not take any argument and thus there is no wiping of passed data - and since kernel returns buffer and shortens dmi->data_size accordingly, anything past returned data size remained uncleared in zfree() function. This has problem if the user used dm_task_secure_data (i.e. cryptsetup), as in this case binary expact secured data are erased from main memory after use, but they may have been left in place. This patch is also closing the possible hole for error path, which also reuse same dm task structure for DM_DEVICE_REMOVE. (cherry picked from commit 10e191fd124e89d40518a7cba5d61c47be5a0969)
* configure: updateMarian Csontos2018-12-142-31/+2
|
* Revert "configure: update"Marian Csontos2018-12-141-2/+21
| | | | This reverts commit 855f5b5e72cc569423c174b348e0cd1f8ac977f5.
* post-releaseMarian Csontos2018-12-143-2/+5
|
* build: Upse PYTHON_CONFIG env.variable when setMarian Csontos2018-12-122-2/+0
| | | | This adds up to Commit 6462e8dffc7ed53973ce796cec18fecc0fb89d77.
* udev: 69-dm-lvm-metad.rules is still neededMarian Csontos2018-12-122-4/+2
|
* man: document 's' RAID attribute bitHeinz Mauelshagen2018-12-122-0/+4
|
* raid: fix (de)activation of RaidLVs with visible SubLVsHeinz Mauelshagen2018-12-128-165/+213
| | | | | | | | | | | | | | | | | | | | There's a small window during creation of a new RaidLV when rmeta SubLVs are made visible to wipe them in order to prevent erroneous discovery of stale RAID metadata. In case a crash prevents the SubLVs from being committed hidden after such wiping, the RaidLV can still be activated with the SubLVs visible. During deactivation though, a deadlock occurs because the visible SubLVs are deactivated before the RaidLV. The patch adds _check_raid_sublvs to the raid validation in merge.c, an activation check to activate.c (paranoid, because the merge.c check will prevent activation in case of visible SubLVs) and shares the existing wiping function _clear_lvs in raid_manip.c moved to lv_manip.c and renamed to activate_and_wipe_lvlist to remove code duplication. Whilst on it, introduce activate_and_wipe_lv to share with (lvconvert|lvchange).c. Resolves: rhbz1633167
* WHATS_NEWHeinz Mauelshagen2018-12-121-0/+5
|