Joe Thornber
8b05f1f230
radix-tree: Fix bug in remove_prefix()
...
Accidental decrement of the nr entries when a n256 didn't have the
entry in the first place.
2018-08-20 15:23:40 +01:00
Zdenek Kabelac
54668feaab
tests: check policy mq can be used with format2
2018-08-07 17:59:50 +02:00
Zdenek Kabelac
d131024255
tests: splitmirror for mirror type
2018-08-07 17:59:50 +02:00
Marian Csontos
9cd05d1f1e
test: Check flavour is used and exists
2018-07-26 15:01:50 +02:00
Marian Csontos
7f49d463d6
test: Remove excessive comma resulting in empty flavour
2018-07-26 14:56:08 +02:00
Heinz Mauelshagen
a004bb07f1
lvconvert: reject conversions on raid1 split trackchanges LVs
...
Prohibit, because the tracking can't continue and
further conversions may fail with bogus error messages.
Resolves: rhbz1579072
2018-07-26 02:05:54 +02:00
Heinz Mauelshagen
8b0729af0f
lvconvert: reject conversions on raid1 split trackchanges SubLVs
...
Prohibit conversions of raid1 split trackchanges SubLVs
because they will fail to get merged back into the RaidLV.
Resolves: rhbz1579438
2018-07-26 02:05:49 +02:00
Heinz Mauelshagen
2f43f0393e
test: new lvcreate-raid1-error-read.sh
...
Test for MD RAID kernel bug in read_balance() preventing
reads of failed sectors to get rescheduled to another leg.
2018-07-24 20:41:26 +02:00
David Teigland
63ec42f428
tests: remove lvmetad tests
2018-07-11 11:27:54 -05:00
David Teigland
edf3f86184
tests: fix mkdir pvs_online
2018-07-10 14:19:46 -05:00
David Teigland
06439a2562
tests: autoactivation tests for use without lvmetad
...
Adjust a few lvmetad pvscan/autoactivation tests to be
used without lvmetad, and add a test to cover some cases
that have not been tested before.
2018-07-10 10:49:34 -05:00
Zdenek Kabelac
c47655f231
tests: initial vdo tests
...
Basic functionality of lvcreate, lvchange.
2018-07-09 15:29:16 +02:00
Zdenek Kabelac
b98846998b
build: not yet merged
...
status.c will get linked with VDO support.
2018-07-09 10:37:39 +02:00
Zdenek Kabelac
5f3eff8eae
tests: update vdo unit test to dm prefix
...
Update prefix and reindent.
2018-07-09 10:30:34 +02:00
Zdenek Kabelac
4a64bb9573
build: unit test Makefile update
...
Update makefile to link with more libs since now whole liblvm-internal.a
is linked-in and this library has futher dependencies.
Avoid including deps for run-unit-test.
Drop linking separate status.c as it's already linked via internal libs.
2018-07-09 10:30:34 +02:00
Zdenek Kabelac
333eb8667e
tests: check how thin-pool allocation works
...
Check allocation of thin-pool works on 2PVs, when one is so full,
that even metadata do not fit there (as they need at least 2M,
while 99% of 63MB fills >62MB)
2018-07-09 00:23:35 +02:00
Zdenek Kabelac
c96400b6c7
vdo: enhance status parser
...
Add support for using mempool for allocations inside status parser.
Convert some string pointers to arrays.
Reindent tabs.
2018-07-02 10:25:35 +02:00
Zdenek Kabelac
52b07672f8
build: avoid rebuild deps for top-level makefiles
2018-07-02 10:21:42 +02:00
Zdenek Kabelac
19b92ae3f3
tests: update with --yes
...
vgcfgrestore needs to confirm restore while LVs from VG are present.
2018-06-25 15:07:55 +02:00
Zdenek Kabelac
8215e3503d
tests: fix rules for mke2fs.conf install
2018-06-22 23:36:54 +02:00
Zdenek Kabelac
c728d88e11
build: include configure.h
...
It's important to consistenly include configure.h as the 1st. header.
It containts #defines influencing behavior of other included header
files.
2018-06-22 23:11:44 +02:00
Joe Thornber
40c1f7889f
radix-tree: More debugging of remove
...
There's now a pretty printer called radix_tree_dump()
n4, n16, and n48 weren't UNSETting the last entry after
sliding values down.
2018-06-21 09:49:43 +01:00
Joe Thornber
c8cfbfa605
radix_tree: add new test case
...
Check that value destructors are called by radix_tree_destroy()
2018-06-21 09:49:25 +01:00
Joe Thornber
20b9746c5d
radix-tree: FIx various bugs to do with removal
...
Add radix_tree_is_well_formed() which does some sanity checking
of the tree.
Call the above a lot in the unit tests.
Fix revealed bugs.
2018-06-21 09:49:08 +01:00
David Teigland
3fd75d1bcd
scan: use full md filter when md 1.0 devices are present
...
The md filter can operate in two native modes:
- normal: reads only the start of each device
- full: reads both the start and end of each device
md 1.0 devices place the superblock at the end of the device,
so components of this version will only be identified and
excluded when lvm uses the full md filter.
Previously, the full md filter was only used in commands
that could write to the device. Now, the full md filter
is also applied when there is an md 1.0 device present
on the system. This means the 'pvs' command can avoid
displaying md 1.0 components (at the cost of doubling
the i/o to every device on the system.)
(The md filter can operate in a third mode, using udev,
but this is disabled by default because there have been
problems with reliability of the info returned from udev.)
2018-06-15 12:21:25 -05:00
Zdenek Kabelac
2a7f2a3a24
tests: more tolerable makefile
2018-06-15 00:46:54 +02:00
Zdenek Kabelac
faf3cc8f71
tests: drop some clvmd refs
...
Do not try to link clvmd binary.
Ensure lib is created new and does not refer old binaries.
2018-06-14 23:22:42 +02:00
Zdenek Kabelac
b1729dbcdd
tests: bigger lv
...
Although throttling slows down things considerable, it still could
reach the end before next test so use bigger LV.
2018-06-14 22:02:01 +02:00
Zdenek Kabelac
5b515db71b
build: better srcdir builddir support
...
With the move to top-level makefile - there are some issues
with subdir recursive makefile.
Make the building more tolerant for now until fully resolved.
2018-06-14 22:02:01 +02:00
David Teigland
a163d5341a
tests: remove vgconvert usage
2018-06-13 14:16:28 -05:00
David Teigland
d067263f51
tests: remove metadata-dirs
...
metadata dirs are removed
2018-06-13 14:14:23 -05:00
David Teigland
885e57cb27
tests: lvmetad-pvscan-cache expect command to fail
2018-06-12 12:44:23 -05:00
David Teigland
7824bb710d
tests: lvconvert-repair remove cluster test
2018-06-12 11:35:45 -05:00
David Teigland
4ce9579099
tests: remove vgsplit-usage cluster test
2018-06-08 14:01:05 -05:00
David Teigland
8266b7e951
tests: remove use of vgcreate -c option
2018-06-08 10:51:07 -05:00
David Teigland
ae961a192a
Remove python bindings for liblvm2app
2018-06-08 10:33:47 -05:00
David Teigland
dbc3e62cc0
tests: don't look for liblvm
2018-06-08 09:36:03 -05:00
Joe Thornber
7c4b19c335
Merge branch '2018-06-04-data-structs'
2018-06-08 14:21:07 +01:00
Zdenek Kabelac
0e2a358da9
tests: check pvresize with metadata size
...
Test new size of a PV can keep also metadata.
2018-06-08 14:37:31 +02:00
Zdenek Kabelac
59dc9b445d
tests: updates test for raid scanning
2018-06-08 14:37:31 +02:00
Zdenek Kabelac
f20e828ec2
tests: drop unit subdir
...
Until we resolve top-level making, drop inclusion of subdir Makefile
written for top-level usage so at least integrational tests are running.
2018-06-08 14:37:31 +02:00
Zdenek Kabelac
bb7c064b23
tests: initial testing code for lvs while pvmove runs
2018-06-08 14:37:31 +02:00
Zdenek Kabelac
c93e0932e8
tests: check proper support of fmt2 with cleaner policy
2018-06-08 14:37:31 +02:00
Joe Thornber
286c1ba336
device_mapper: rename libdevmapper.h -> all.h
...
I'm paranoid a file will include the global one in /usr/include
by accident.
2018-06-08 12:31:45 +01:00
Joe Thornber
9573ff3a3b
test/unit: Rename Makefile.in -> Makefile
...
There's nothing being expanded.
2018-06-08 09:50:40 +01:00
Joe Thornber
0d22b58172
liblvm: remove lvmapi
...
This has been deprecated for a while.
2018-06-08 09:38:05 +01:00
Joe Thornber
60db97ae1d
test/unit: activation generator unit tests
2018-06-07 16:24:42 +01:00
David Teigland
e966752b86
tests: system_id remove clustered vg test
2018-06-07 16:17:04 +01:00
David Teigland
229582c97c
tests: remove -cn option from some commands
2018-06-07 16:17:04 +01:00
Joe Thornber
bd8c6cf862
scripts/lvm2_activation_generator_systemd_red_hat: rewrite to use lvmconfig
...
Unit tested the new code, but not run functional tests (assuming they exist).
2018-06-07 16:15:04 +01:00