1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-22 17:35:59 +03:00
Commit Graph

2482 Commits

Author SHA1 Message Date
Zdenek Kabelac
7d14327dd2 makefiles: correcting login of makefile
Fixing some ordering issue with inclusion of common make.tmpl.
Correcting dependency calculation
Simplifying inclusive makefile

(cherry picked from commit 94237354dd)
2018-12-17 16:14:52 +01:00
Zdenek Kabelac
d327a2e280 makefiles: sort
(cherry picked from commit d76b4afb8e)
2018-12-17 16:14:46 +01:00
Zdenek Kabelac
1a0bf79b72 lvm: drop usage of dl library
Since lvm no longer supports any dlopen-able plugins
(which in practice was never really usable) drop linking
with -ldl.

(cherry picked from commit 701ecff0ff)

Conflicts:
	lib/commands/toolcontext.c
2018-12-17 16:14:35 +01:00
Zdenek Kabelac
8fad471c6e headers: use configure.h as 1st. header
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 0b19387dae)

Conflicts:
	include/configure.h.in
2018-12-17 16:10:56 +01:00
Zdenek Kabelac
76624d1a8c makefiles: ensure test dir can run unit-test 2018-12-04 14:33:38 -06:00
Zdenek Kabelac
8b13867548 tests: extend sleep 2018-12-04 14:33:38 -06:00
Zdenek Kabelac
cc7169df30 makefiles: clean unit-test 2018-12-04 14:33:38 -06:00
Zdenek Kabelac
1781344b6b tests: drop use_lvmetad from unit test 2018-12-04 14:33:38 -06:00
Zdenek Kabelac
e5ae9b0d2f tests: reduce memory footprint 2018-12-04 14:33:38 -06:00
Zdenek Kabelac
bb8e22d9cc tests: updates 2018-12-04 14:33:38 -06:00
Zdenek Kabelac
9a9cf22aa0 tests: requires at least 2 iterations 2018-12-04 14:33:38 -06:00
Zdenek Kabelac
0172a76622 tests: use select with dmsetup
Use 'dmsetup -S' to greatly simplify such loops.
2018-12-04 14:33:38 -06:00
Zdenek Kabelac
b252c20eb9 tests: add mising udev_wait
mdadm does not handle udev waiting so it may exit earlier,
while devices are still 'running'.
2018-12-04 14:33:38 -06:00
Zdenek Kabelac
224bdce3eb makefiles: improving cleaning rules 2018-12-04 14:33:37 -06:00
Zdenek Kabelac
ae9cadd535 makefiles: avoid dependency calcs for base dir
For some targets we do not want to generate dependencies.
Also add note about usage of such Makefile - it might be
possibly better to rename it to different filename to avoid
any confusion.
2018-12-04 14:33:37 -06:00
Zdenek Kabelac
325d09a60e makefiles: updates for less verbosity 2018-12-04 14:33:37 -06:00
Zdenek Kabelac
a4d72c9cb2 tests: update required raid target
For embeded reshaping operation require higher driver version.
(otherwise we get:

Converting vg/LV1 from raid6 (same as raid6_zr) is directly possible to the following layouts:
 raid6_nc
 raid6_nr
 raid6_la_6
 raid6_ls_6
 raid6_ra_6
 raid6_rs_6
 raid6_n_6
2018-12-04 14:33:37 -06:00
Zdenek Kabelac
b43c8a81cb tests: missing copyright 2018-12-04 14:33:37 -06:00
Zdenek Kabelac
5a057cb85b tests: generate slightly less volumes 2018-12-04 14:33:37 -06:00
Zdenek Kabelac
674eaa13ff tests: speed-up testing full of lvm2 metadata
Generate faster full metadata condition.

FIXME: vgremove is extremaly slow with larger set of LVs.
2018-12-04 14:33:37 -06:00
Zdenek Kabelac
63b4b38b8b tests: update parm for new kernel 2018-12-04 14:33:37 -06:00
Zdenek Kabelac
8955c1b4e5 tests: skip part of test
On kernel 4.8 this test piece oopses machine (fc23).
2018-12-04 14:33:37 -06:00
Zdenek Kabelac
d379754b44 tests: create whole path with mkdir
Create also 'lvm' upper this if such one is missing in /run dir
and use '-p' with mkdir.
2018-12-04 14:33:37 -06:00
Zdenek Kabelac
9a6bcbe195 tests: skip portion of test for lvmpolld
lvmpolld ATM is not desingned to preserve interval checking
in the same way the 'lvconvert' tool is doing - so the passed
'-i 40' is not respected and lvmpolld autonomously checks
state of conversion and updates lvm2 metadata and dm tables
when needed.

So skip portion of test that relayed on this and preserve this logic
only for command line invocation and forking of polling process
where the interval of checking is under full control.
2018-12-04 14:33:37 -06:00
Zdenek Kabelac
30d8077f7a tests: skip when gcore from gdb package is missing
gcore is needed for gathering all userspace mappings.
2018-12-04 14:33:37 -06:00
Zdenek Kabelac
ca6bb353c9 tests: prefer internal header
Although we primarily want to check externally used libdevmapper
library,   out internal  all.h is still keeping all symbols
as the original library has - so for simpler compilation keep
using this private copy for defining needed symbols.
2018-12-04 14:33:37 -06:00
Zdenek Kabelac
8f0364ccd2 tests: correcting header file enclosure
Use "" for internal header file.
2018-12-04 14:33:37 -06:00
Zdenek Kabelac
e52b5f9ab2 tests: still more libs needs 2018-12-04 14:33:37 -06:00
Zdenek Kabelac
b2c52f1731 tests: makefile fixes
New tests needs more options and libs.
2018-12-04 14:33:37 -06:00
Zdenek Kabelac
74d77bfaaa tests: drop unwanted backup 2018-12-04 14:33:37 -06:00
Zdenek Kabelac
3931441190 tests: raise minsize of xfs
mkfs.xfs now needs at least ~1600...
2018-12-04 14:33:37 -06:00
Zdenek Kabelac
977d33c1cb tests: extend 2018-12-04 14:33:37 -06:00
Zdenek Kabelac
60c4802bc3 tests: secure data erase 2018-12-04 14:33:37 -06:00
Zdenek Kabelac
3ac106df6e tests: add wait loop
Add a little wait loop - since lvconvert started background process
and we need to wait till this bg task initiate its work -
adding ~1s loop should give reasonable enough time to start mirroring.
2018-12-04 14:33:36 -06:00
Zdenek Kabelac
499923f0f6 tests: keep results configurable 2018-12-04 14:33:36 -06:00
Zdenek Kabelac
29c6f2874b tests: fix shell quoting 2018-12-04 14:33:36 -06:00
Zdenek Kabelac
9aca3a1d67 tests: add wait for udev
Since the test is currently directly working with live directory,
which can be getting updates from system's udev - add wait
for settling so removal of all known PVs happens after that.
But still this has major influce on behavior of running system,
so the test should never be executed on a user used box.
2018-12-04 14:33:36 -06:00
David Teigland
7498f83833 tests: add new test for lvm on md devices 2018-10-18 13:06:42 -05:00
Zdenek Kabelac
9e1ee07d69 tests: missed char in list
'=' also doesn't belong to property name.
2018-10-17 10:41:25 +02:00
Zdenek Kabelac
015231b11f tests: better support for /var/run 2018-10-16 23:49:35 +02:00
Zdenek Kabelac
32f1afbe36 tests: add raid target presence check 2018-10-16 23:49:35 +02:00
Zdenek Kabelac
69bebfd958 tests: fix conf generation with older shells
For shells without array support, fix selecting bug,
and require keyword to end with some 'space' char,
so  'scan' is not matched with  'scan_var'.
2018-10-16 23:49:35 +02:00
Zdenek Kabelac
f1ac72c848 tests: properly enforce v1
Since with smq policy we can still pick format v2 - enforce
format v1 explicitely.
2018-10-16 21:56:00 +02:00
Zdenek Kabelac
4db228b907 tests: timing without /usr/bin/time
Use just 'date' so the 'time' package doesn't need to be installed
just for this purpose.
2018-10-16 21:56:00 +02:00
Zdenek Kabelac
c15ac326cc tests: fix tested targeted
Fix cut&paste bug.
2018-10-16 21:56:00 +02:00
Zdenek Kabelac
5c36ad06a1 tests: check activation of many thin-pool
Artifitical testing of monitoring of many thin-pools with low number
of resources in use (need only few pools to actually hit the race).
2018-10-10 09:54:08 +02:00
Joe Thornber
8424655af9 Merge branch '2018-09-13-radix-tree-bug' 2018-09-20 14:43:51 +01:00
Joe Thornber
ba6d8a3195 [unit-test/radix-tree] Add a huge test case
Derived from the logs that dct gave me.
2018-09-20 14:38:34 +01:00
Heinz Mauelshagen
945d13541e tests: fix lvconvert-raid-reshape-linear_to_striped-single-type.sh
Add errouneously removed VG creation back in.
2018-09-19 14:53:41 +02:00
David Teigland
17bd91e33e tests: add metadata-full 2018-09-11 12:05:46 -05:00