Zdenek Kabelac
6df716332c
tests: detect nc or socat
...
Since shell is not in -o pipefail mode here,
we need to generate separate failure ahead of tee.
2014-03-02 21:48:28 +01:00
Zdenek Kabelac
6c377f5b3c
tests: restore usage of reading kmsg
...
Basically reverts commit af8580d756
.
"test: Use klogctl in the harness instead of reading /var/log/messages."
Problem is - this interface clears dmesg buffer
(just like call of dmesg -c)
Thus after running lvm2 test suitedmesg is empty - while all the
messages are usually logged in the journal/message, it's still not nice to
clear dmesg buffer.
It's not a pure revert, but switch to use /proc/kmsg directly instead of
reading /var/log/messages.
2014-03-02 21:30:26 +01:00
Zdenek Kabelac
33d69162e4
tests: split raid test
...
Use separate test file for raid456
Change test for broken kernel which has broken raid456 support.
2014-03-02 21:27:26 +01:00
Zdenek Kabelac
3ff10f5e61
tests: disable test which leaks node
...
This test is not detected as fault but leak device node
on a real /dev.
Added FIXME.
2014-03-02 21:27:26 +01:00
Zdenek Kabelac
75b5855ca1
tests: report selinux mode
2014-03-02 21:27:26 +01:00
Zdenek Kabelac
a2af5855c5
tests: use longer sleep
...
Eplore why 30sec is not enough for hydra and try higher value.
2014-03-02 21:27:25 +01:00
Petr Rockai
fade191aed
test: Test that we cope with stray device nodes.
2014-03-02 20:53:43 +01:00
Petr Rockai
3b958984f1
test: Properly synchronize direct dmsetup calls.
2014-03-02 20:53:43 +01:00
Zdenek Kabelac
72ecf8e591
tests: detect reiserfs support
...
Since reiserfs is not commonly available detect its presence in kernel.
Stop reporting skipped test as WARNING.
2014-03-01 14:08:59 +01:00
Zdenek Kabelac
090e81281f
lvmetad: more reuse precommit buffer
...
This patch moves more allocation to vg_write
(as started in 8c878438f5
)
TODO: relocate also communication.
(in-release update)
2014-03-01 14:08:58 +01:00
Zdenek Kabelac
bda98c4b8d
lvmetad: move memalloc/free out of lock
...
Small code move to lower locking time and make memory
allocation and free outside of lock.
Drop duplicate test of NULL pointer before calling dm_free.
2014-03-01 14:08:58 +01:00
Zdenek Kabelac
d8513da9be
lvmetad: fix memleak when pv changes it device
...
Test vgimportclone invokes mem leak of pvid which
would be otherwise lost when device_old_pvid
is removed from hash table.
2014-03-01 14:00:15 +01:00
Petr Rockai
c8e868f6e0
lvmetad: Fix an invalid memory read that could cause a deadlock.
2014-03-01 00:42:09 +01:00
Petr Rockai
301ac8a07c
NIX: Cope with existence of multiple primary.xml files.
...
This can happen temporarily while a mirror is syncing (parsing repomd.xml
would be a better fix, but slightly tricky since it's xml).
2014-02-28 23:56:04 +01:00
Petr Rockai
daa897fe90
test: Fix stat calls in lvmetad-pvscan-filter.
2014-02-28 23:33:30 +01:00
Petr Rockai
1bb29bb402
test: Downgrade lvmetad-lvm1 failure to a warning.
2014-02-28 23:33:17 +01:00
Petr Rockai
6733ac86d7
test: Fix the failing branch in aux lvmetad_talk.
2014-02-28 23:30:17 +01:00
Petr Rockai
fb003cdfd5
format-text: Fix a warning.
2014-02-28 16:23:16 +01:00
Petr Rockai
3e5bec37e9
format-text: Fix _raw_read_mda_header (missing close, open r/o).
2014-02-28 16:21:09 +01:00
Petr Rockai
c69d37d126
spec: udev rules don't live under %{_prefix} on fc16/rhel6
2014-02-28 14:18:15 +01:00
Petr Rockai
f3b9fe6024
test: Add lvmetad_talk and lvmetad_dump to aux.
2014-02-28 11:23:53 +01:00
Petr Rockai
8e814eb899
test: Fix notify_lvmetad for symlinked devices.
2014-02-28 11:23:53 +01:00
Petr Rockai
bf29eabdba
lvmetad: Keep the cache consistent when a PV moves around.
...
In cases where PV appears on a new device without disappearing from an old one
first, the device->pvid pointers could become ambiguous. This could cause the
ambiguous PV to be lost from the cache when a different PV comes up on one of
the ambiguous devices.
2014-02-28 11:23:52 +01:00
Petr Rockai
a368698672
lvmetad: Hide corrupt MDAs from the cache.
...
This is probably not optimal, but makes the lvmetad case mimic non-lvmetad code
more closely. It also fixes vgremove of a partially corrupt VG with lvmetad, as
_vg_write_raw (and consequently, entire vg_write) currently panics when it
encounters a corrupt MDA. Ideally, we'd be able to explicitly control when it is
safe to ignore them.
2014-02-28 11:23:52 +01:00
Petr Rockai
6b43db5804
NIX: Change the URL for the lcov RPM to a more canonic location.
2014-02-28 11:23:52 +01:00
Petr Rockai
ea5ec4ad51
NIX: Update the release.nix path in build.sh.
2014-02-28 11:23:52 +01:00
Petr Rockai
b86489843e
NIX: Add a short README (to be expanded).
2014-02-28 11:23:52 +01:00
Petr Rockai
421ca4cd14
spec: Add a copyright header and an explanatory notice.
2014-02-28 11:23:52 +01:00
Petr Rockai
658f8976a3
NIX: Move nix-related bits under nix/.
2014-02-28 11:23:52 +01:00
Petr Rockai
244b80d948
spec: Package the new clvmd/cmirrord systemd units.
2014-02-28 11:23:52 +01:00
Petr Rockai
9770c03ce0
NIX: On RHEL<=6 and FC<=16, udevd is /sbin/udevd.
2014-02-28 11:23:52 +01:00
Petr Rockai
2c99601267
NIX: Add a local nix-build.sh script.
2014-02-28 11:23:52 +01:00
Petr Rockai
fb2c6fffe1
NIX: Add CentOS 6.5 builds.
2014-02-28 11:23:52 +01:00
Petr Rockai
31e8fa883d
NIX: Retire the CentOS 6.3 builds.
2014-02-28 11:23:52 +01:00
Petr Rockai
55964cedcb
NIX: Use vault.centos.org to get older revisions.
2014-02-28 11:23:52 +01:00
Petr Rockai
cc6ed8fa66
spec: We do want thin support on RHEL 6.
2014-02-28 11:23:52 +01:00
Petr Rockai
4d081f072f
spec: Do not treat --with-?=none as having the thing.
2014-02-28 11:23:51 +01:00
Petr Rockai
581eeaf950
spec: Explicitly disable thin when we don't want it.
2014-02-28 11:23:51 +01:00
Petr Rockai
9c8db4e33f
NIX: Run system-wide tests separately, with RPMs installed.
2014-02-28 11:23:51 +01:00
Petr Rockai
d567d0d307
spec: Make it possible for %check_commands to prevent %clean-ing.
2014-02-28 11:23:51 +01:00
Petr Rockai
00dee59702
NIX: Revert to calling make check inside the RPM build.
2014-02-28 11:23:51 +01:00
Petr Rockai
13d5c78a8d
spec: Add lvm2-pvscan@.service to filelist.
2014-02-28 11:23:51 +01:00
Petr Rockai
49ea253aaf
spec: Add thin-performance.profile to the filelist.
2014-02-28 11:23:51 +01:00
Petr Rockai
8a0cf9cb0a
NIX: Update URL for lcov RPM.
2014-02-28 11:23:51 +01:00
Petr Rockai
7cb3e7d016
NIX: Skip autoconf, as we include ./configure in git.
2014-02-28 11:23:51 +01:00
Petr Rockai
2b953df0f9
NIX: Try harder to set dmesg levels.
2014-02-28 11:23:51 +01:00
Petr Rockai
fe4d473c5b
NIX: Give the VMs more RAM (768M instead of 512M).
2014-02-28 11:23:51 +01:00
Petr Rockai
7fea3f4469
NIX: Fix a centos64 failure due to old dmesg.
2014-02-28 11:23:51 +01:00
Petr Rockai
4eaaad0caa
NIX: Do not insmod 9p/virtfs on centos64 as it BUGs out right away.
2014-02-28 11:23:51 +01:00
Petr Rockai
9434611924
NIX: Restore CIFS modules, as 9p is broken on many kernels.
2014-02-28 11:23:51 +01:00