1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00
Commit Graph

8806 Commits

Author SHA1 Message Date
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
Petr Rockai
5f60d53fcc NIX: Add %with thin_dump to the specfile. 2014-02-28 11:23:51 +01:00
Petr Rockai
bf67c0b393 NIX: Add %with thin_repair to the specfile. 2014-02-28 11:23:50 +01:00
Petr Rockai
adf262e079 NIX: Fedora 19 is now stable. Add builds that include updates. 2014-02-28 11:23:50 +01:00
Petr Rockai
39d00da752 NIX: Use the new "check_full" target for comprehensive testing. 2014-02-28 11:23:50 +01:00
Petr Rockai
765337dcc1 nix: Look a bit harder for udevd. 2014-02-28 11:23:50 +01:00
Petr Rockai
2df5eb250d nix: Set kernel console log level to debug. 2014-02-28 11:23:50 +01:00
Petr Rockai
4fc075e040 nix: Run udevd in foreground. 2014-02-28 11:23:50 +01:00
Petr Rockai
4757ef824c NIX: Run tests with /dev and (on recent Fedora) with udevd running. 2014-02-28 11:23:50 +01:00
Petr Rockai
9c927f7b27 NIX: Fix chrooted builds, passing down package lists explicitly. 2014-02-28 11:23:50 +01:00
Petr Rockai
a0d3a7d569 NIX: The mergeUsr attribute was renamed to unifiedSystemDir. 2014-02-28 11:23:50 +01:00
Petr Rockai
cad28a49ab NIX: Add default.profile to the spec file. 2014-02-28 11:23:50 +01:00
Petr Rockai
28143505f8 NIX: Add an fc18 build that includes fedora updates. 2014-02-28 11:23:50 +01:00
Petr Rockai
c5fbccab21 NIX: Adapt to use of 9P in VM builds. 2014-02-28 11:23:50 +01:00
Petr Rockai
9716af8c14 NIX: Make it possible to only run a subset of tests (via T). 2014-02-28 11:23:50 +01:00
Petr Rockai
39c8cd3d05 NIX: Fix a couple typos in build product handling. 2014-02-28 11:23:50 +01:00
Petr Rockai
4fdcb27b3e NIX: Copy collected test results into the output. 2014-02-28 11:23:49 +01:00
Petr Rockai
f6350b4568 NIX: Grab specfile from lvm2Nix (at least for now). 2014-02-28 11:23:49 +01:00
Petr Rockai
2f16d2ce27 NIX: Fix build-dependencies for FC 18. 2014-02-28 11:23:49 +01:00
Petr Rockai
2fbc94f974 nix: Import the modular specfile we use for nix-driven builds. 2014-02-28 11:23:49 +01:00
Jonathan Brassow
38ab4c31a6 test: warn rather than fail when %FREE isn't working right
%FREE allocation has been broken for RAID.  At 100%FREE, there is
still an extent left for certain tests.  For now, change the test
to warn rather than completely fail.
2014-02-27 22:47:30 -06:00
Zdenek Kabelac
a7dc422bde tests: remove extra vgremove
These vgremove calls were not correct.
2014-02-27 14:53:33 +01:00
Zdenek Kabelac
c23cd12023 tests: quote dev 2014-02-27 14:49:49 +01:00
Zdenek Kabelac
f4afd07700 tests: drop remove
Generates waaaaay too much log from lvmetad test.

TODO: once we will be able to remove more LVs with a single
write - we may restore....
2014-02-27 14:48:32 +01:00
Zdenek Kabelac
07ba047116 cleanup: relocate segment flags
Move flags for segments to segtype header where it seems more closely
related as the features are related to segtype and not activation.

Use unsigned #define - since it's more common in lvm2 source code
for bit flags.
2014-02-27 14:46:11 +01:00
Zdenek Kabelac
47b15b805e tests: updates
Add some vgremove calls.
Remove uneeded test for some unused commands.
Add tests for missing commands.
2014-02-27 13:01:04 +01:00
Zdenek Kabelac
d00fc1de78 snapshot: correct previous snapshot commit
Condition was swapped - however since it's been based on 'random'
memory content it's been missed as attribute has not been set.

So now we have quite a few possible results when testing.

We have old status without separate metadata and
we have kernels with fixed snapshot leak bug.

(in-release update)
2014-02-27 13:00:49 +01:00
Petr Rockai
1769eddde7 lvmetad: Make token_mismatch handling more robust in the clients. 2014-02-26 15:11:00 +01:00
Petr Rockai
4143b284f8 lvmetad: Make "reason" in a token_mismatch reply more informative. 2014-02-26 15:10:21 +01:00
Zdenek Kabelac
40e6176d25 snapshots: fix incorrect calculation of cow size
Code uses target driver version for better estimation of
max size of COW device for snapshot.

The bug can be tested with this script:
VG=vg1
lvremove -f $VG/origin
set -e
lvcreate -L 2143289344b -n origin $VG
lvcreate -n snap -c 8k -L 2304M -s $VG/origin
dd if=/dev/zero of=/dev/$VG/snap bs=1M count=2044 oflag=direct

The bug happens when these two conditions are met
* origin size is divisible by (chunk_size/16) - so that the last
  metadata area is filled completely
* the miscalculated snapshot metadata size is divisible by extent size -
  so that there is no padding to extent boundary which would otherwise
  save us

Signed-off-by:Mikulas Patocka <mpatocka@redhat.com>
2014-02-26 14:25:09 +01:00
Zhiqing Zhang
014ba37cb1 lvresize: fix stripe size validation
While stripe size is twice the physical extent size,
the original code will not reduce stripe size to maximum
(physical extent size).

Signed-off-by: Zhiqing Zhang <zhangzq.fnst@cn.fujitsu.com>
2014-02-26 13:25:50 +01:00
Zdenek Kabelac
b5e03c88b8 tests: support for older snapshot target version
TODO: unsure about 1.10...
2014-02-26 11:17:39 +01:00
Zdenek Kabelac
aef6016011 tests: improve read-only test for snapshot
Switch to use ext2 to make it usable on older systems.
Previous test has not been able to catching problem.

Multiple tests are now put in.

FIXME: validate what is doing kernel target when
the header is undeleted and same chunk size is used.

It seems snapshot target successfully resumes and
just complains COW is not big enough:

kernel: dm-8: rw=0, want=40, limit=24
kernel: attempt to access beyond end of device

When chunk size is different it fails instantly.

For checking this with lvm2 and this test case use this patch:

--- a/tools/lvcreate.c
+++ b/tools/lvcreate.c
@@ -769,7 +769,7 @@ static int _read_activation_params(struct
lvcreate_params *lp,
        lp->permission = arg_uint_value(cmd, permission_ARG,
                                        LVM_READ | LVM_WRITE);

-       if (lp->snapshot) {
+       if (0 && lp->snapshot) {
                /* Snapshot has to zero COW header */
                lp->zero = 1;
                lp->wipe_signatures = 0;

---
and switch to use  -c 4 for both snapshots
2014-02-26 10:19:46 +01:00
Zdenek Kabelac
2b044452e3 snapshot: zero cow header for read-only snapshot
When read-only snapshot was created, tool was skipping header
initialization of cow device.  If it happened device has been
already containing header from some previous snapshot, it's
been 'reused' for a newly created snapshot instead of being cleared.
2014-02-26 00:22:46 +01:00
Jonathan Brassow
3bb9eda97c man: Enhancements to various man pages for cache[-pool] segtypes
Better formatting.  More consistent naming.  Better clarity.
2014-02-25 12:17:03 -06:00
Peter Rajnoha
f8bf4d7dfb dumpconfig: add a comment to each config with variable name, use '<name>' to denote that for config paths
Just to make the dumpconfig output (the comments) more readable
when we hit configuration lines that have variable names (e.g. tags).
2014-02-25 11:32:54 +01:00
Peter Rajnoha
558c932444 dumpconfig: comment out config lines without default values defined
To make "lvm dumpconfig --type default" output to be usable like any
other config, we need to comment out lines that have no default value
defined. Otherwise, we'd have the output with config options
with blank or zero values which is not the same as when the value
is not defined! And such configuration can't be feed into lvm again
without further edits. So let's fix this.

Currently this covers these configuration options exactly:

  devices/loopfiles
  devices/preferred_names
  devices/filter
  devices/global_filter
  devices/types
  allocation/cling_tag_list
  global/format_libraries
  global/segment_libraries
  activation/volume_list
  activation/auto_activation_volume_list
  activation/read_only_volume_list
  activation/mlock_filter
  metadata/dirs
  metadata/disk_areas
  metadata/disk_areas/<disk_area>
  metadata/disk_areas/<disk_area>/start_sector
  metadata/disk_areas/<disk_area>/size
  metadata/disk_areas/<disk_area>/id
  tags/<tag>
  tags/<tag>/host_list
2014-02-25 11:32:54 +01:00
Peter Rajnoha
d0b5e51d29 config: use DMEVENTD_PATH for default dmeventd executable config 2014-02-25 11:32:29 +01:00