| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|
|
|
| |
1s could be too short
|
| |
|
| |
|
|
|
|
| |
TODO: more functions need to be unit tested.
|
|
|
|
|
|
|
| |
make devices invisible to lvm, but the behaviour of those is slightly different
than of actual missing devices. Running vgscan after re-enabling the device
triggers a metadata repair which is not done by vgremove -ff. This is not a
regression, merely an odd behaviour that has been around even before lvmetad.
|
| |
|
|
|
|
| |
lvm.conf *and* lvmetad is running.
|
| |
|
|
|
|
| |
If the merge was faster then query - deal with it and pass the test.
|
|
|
|
| |
live VERBOSE output, not just the post-mortem dumps.
|
|
|
|
|
|
| |
Replace asserts with test for failing memory allocation.
Add at least stack traces.
Index counter starts from 1 (0 reserved for error), so replacing fingerprint.
|
|
|
|
| |
Use @TESTING@ check in this case.
|
|
|
|
| |
Add libraries properly in LDLIBS.
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
Failure to do so results in "Performing unsafe table load while X device(s) are
known to be suspended" errors. While fixing the problem in this way works and
is consistent with the way the mirror segment type does it, it would be nice
to find a solution that uses the generic suspend/resume calls.
Also included in this check-in are additions to the test suite that perform
conversions on RAID LVs under a snapshot. These tests are disabled for the
time being due to a kernel bug that is yet to be tracked down.
|
| |
|
|
|
|
| |
Use thin-pool instead of thin_pool type.
|
| |
|
|
|
|
|
| |
Add some declaration and cast to cleanup gcc warnings.
Add missing dm_config_destroy() to cleanup pool leak report.
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
standard include path).
|
|
|
|
| |
build directory, not the source one -> fix test/shell/000-basic.sh.
|
|
|
|
|
| |
Seems like testing machine could be busy - so 10s might not be enough
for rechecking status.
|
|
|
|
|
|
| |
Cleanup generated files from coverage testing.
Do not skip standard .o compilation for lib/not and lib/harness.
Make a bit longer string in harness to fit new shell/ in.
|
|
|
|
|
| |
Swap condtion so the make line does not return 'false'.
Remove cleanup of lvm2api.sh since it is not created anymore.
|
|
|
|
|
| |
Older systems are not able to get this library from lvm2api library and need
this library to be passed to the linker (i.e. Debian Lenny).
|
|
|
|
|
|
| |
Simplify /api makefile and use SUBDIRS target for test dir.
Properly cleanup Makefiles with distclean in /test.
Use symbolic links for shell scripts for non-srcdir compilation.
|
|
|
|
|
|
|
| |
bitset_t.c:39: warning: 'last' may be used uninitialized in this function
Compiler is not smart enough to see the code path which avoid using
unitialized 'last'.
|
|
|
|
|
| |
Things like gcov needs the compilation flags for linker as well.
TODO: cleanup compilation flags usage
|
|
|
|
| |
would grow with subsequent snapshot extensions (RHBZ 754198).
|
| |
|
| |
|
|
|
|
|
|
|
| |
- test/lib -- infrastructure and helper code
- test/api -- liblvm2app API tests
- test/unit -- C-based unit tests
- test/shell -- shell-based functional tests
|
| |
|
|
|
|
|
|
|
| |
tests from unit-tests/*/*_t.c (now under test/unit). The valgrind/pool test is
missing, since it's not really a unit test and probably not too valuable
either. Available via "make unit" (and if --enable-testing was passed to
configure, also executed by make check).
|
|
|
|
|
|
|
|
|
|
|
| |
Removal of an inactive origin removes also all related snapshots.
When we now support 'old' external snapshots with thin volumes,
removal of pool will not only drop all thin volumes, but as
a consequence also all snapshots - which might be seen a bit
unexpected for the user - so add a query to confirm such action.
lvremove -f will skip the prompt.
|
|
|
|
|
| |
Start creating snapshots for real.
Update test suite to check it happens.
|
| |
|
|
|
|
|
|
|
| |
So the test script may use a simple line like i.e.:
aux target_at_least dm-thin-pool 1 0 0 || skip
aux target_at_least snapshot-origin 1 6 || skip
|
| |
|
|
|
|
| |
Since fixed within unreleased version so no WHATS_NEW
|
|
|
|
|
|
|
|
|
|
|
| |
grep need -F to check what we really want to test.
Add better test for existing device.
Currently this test DOES NOT work with real /dev handle via udev
since our tool does not see such device listet through udev.
FIXME: We might be able to see it at least through dmsetup table and
use for lvm.
|
|
|
|
|
| |
Udev is tricky here - since with udev the node does not exists until
it resume happens. So we need to resume devices via its name.
|
|
|
|
| |
Skip trying to make link when real /dev dir is used for test.
|
|
|
|
|
| |
As udev is for now incapable to create such devices
turn this test error into warning.
|
|
|
|
| |
not work yet with singlenode clvmd in clustered VGs.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Example:
~> lvconvert --type raid1 vg/mirror_lv
Steps to convert "mirror" to "raid1"
1) Allocate a RAID metadata LV for each mirror image from the same PVs
on which they are located.
2) Clear the metadata LVs. This involves writing LVM metadata, so we don't
change any aspects of the mirror LV before this so that the user can easily
remove LVs from the failed convert attempt while retaining the original
mirror.
3) Remove the mirror log, if it exists.
4) Add metadata LVs to mirror LV
5) Rename mirror sub-lvs (s/mimage/rimage/)
6) Change flags and segtype from mirror to raid1
|