]> sourceware.org Git - lvm2.git/log
lvm2.git
6 years agolvmlockd: use new sanlock sector/align interface
David Teigland [Mon, 22 Oct 2018 20:45:23 +0000 (15:45 -0500)]
lvmlockd: use new sanlock sector/align interface

The choice about sector size and lease align size is
now made by the sanlock user, in this case lvmlockd.
This will allow lvmlockd to use other lease sizes in
the future.  This also prevents breakage if hosts
report different sector sizes, or the sector size
reported by a device changes.

6 years agodmsetup: fix stats report command output
Bryn M. Reeves [Thu, 1 Nov 2018 16:49:05 +0000 (16:49 +0000)]
dmsetup: fix stats report command output

Since the stats handle is neither bound nor listed before the
attempt to call dm_stats_get_nr_regions(), it will always return
zero: this prevents reporting of any dmstats regions on any
device.

Remove the dm_stats_get_nr_regions() check and instead rely on
the correct return status from dm_stats_populate() which only
returns 0 in the case that there are regions to inspect (and
which logs a specific error for all other cases).

Reported-by: Bryan Gurney <bgurney@redhat.com>
6 years agolibdm-stats: move no regions warning after dm_stats_list()
Bryn M. Reeves [Thu, 1 Nov 2018 16:47:56 +0000 (16:47 +0000)]
libdm-stats: move no regions warning after dm_stats_list()

It doesn't make sense to test or warn about the region count until
the stats handle has been listed: at this point it may or may not
contain valid information (but is guaranteed to be correct after
the list).

6 years agopost-release
Marian Csontos [Wed, 31 Oct 2018 14:41:22 +0000 (15:41 +0100)]
post-release

6 years agopre-release v2_03_01
Marian Csontos [Wed, 31 Oct 2018 14:39:50 +0000 (15:39 +0100)]
pre-release

6 years agobuild: Fix CLDFLAGS default
Marian Csontos [Mon, 22 Oct 2018 10:56:34 +0000 (12:56 +0200)]
build: Fix CLDFLAGS default

6 years agometadata: prevent writing beyond metadata area
David Teigland [Mon, 29 Oct 2018 21:53:17 +0000 (16:53 -0500)]
metadata: prevent writing beyond metadata area

lvm uses a bcache block size of 128K.  A bcache block
at the end of the metadata area will overlap the PEs
from which LVs are allocated.  How much depends on
alignments.  When lvm reads and writes one of these
bcache blocks to update VG metadata, it can also be
reading and writing PEs that belong to an LV.

If these overlapping PEs are being written to by the
LV user (e.g. filesystem) at the same time that lvm
is modifying VG metadata in the overlapping bcache
block, then the user's updates to the PEs can be lost.

This patch is a quick hack to prevent lvm from writing
past the end of the metadata area.

6 years agoRevert "raid: fix left behind SubLVs"
Heinz Mauelshagen [Thu, 25 Oct 2018 12:30:32 +0000 (14:30 +0200)]
Revert "raid: fix left behind SubLVs"

This reverts commit 16ae968d24b4fe3264dc9b46063345ff2846957b.

We need to come up with a better fix, because we fall short
wiping all known signatures when not using the wipe_lv API.

6 years agoraid: fix left behind SubLVs
Heinz Mauelshagen [Wed, 24 Oct 2018 13:26:19 +0000 (15:26 +0200)]
raid: fix left behind SubLVs

lvm metadata writes, commits and activations are performed
for (newly) allocated RAID metadata SubLVs to wipe any preexisiting
data thus avoid false raid superblock positives on RaidLV activation.

This process can be interrupted by command or system crashs
thus leaving stale SubLVs in the lvm metadata as a problem.

Because we hold an exclusive lock in this metadata SubLV wiping
process, we can address this problem by avoiding aforementioned
commits/writes/activations altogether wiping the respective first
sector of the first physical extent allocated to any metadata SubLV
directly via the existing dev_set() API.

Succeeds all LVM RAID tests.

Related: rhbz1633167

6 years agospec: lvmdbusd requires python3 setuptools
Marian Csontos [Mon, 22 Oct 2018 10:51:51 +0000 (12:51 +0200)]
spec: lvmdbusd requires python3 setuptools

6 years agotests: add new test for lvm on md devices
David Teigland [Thu, 18 Oct 2018 18:06:42 +0000 (13:06 -0500)]
tests: add new test for lvm on md devices

6 years agotests: missed char in list
Zdenek Kabelac [Wed, 17 Oct 2018 08:41:25 +0000 (10:41 +0200)]
tests: missed char in list

'=' also doesn't belong to property name.

6 years agotests: better support for /var/run
Zdenek Kabelac [Tue, 16 Oct 2018 21:46:50 +0000 (23:46 +0200)]
tests: better support for /var/run

6 years agotests: add raid target presence check
Zdenek Kabelac [Tue, 16 Oct 2018 21:44:15 +0000 (23:44 +0200)]
tests: add raid target presence check

6 years agotests: fix conf generation with older shells
Zdenek Kabelac [Tue, 16 Oct 2018 21:44:45 +0000 (23:44 +0200)]
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'.

6 years agotests: properly enforce v1
Zdenek Kabelac [Tue, 16 Oct 2018 19:32:28 +0000 (21:32 +0200)]
tests: properly enforce v1

Since with smq policy we can still pick format v2 - enforce
format v1 explicitely.

6 years agotests: timing without /usr/bin/time
Zdenek Kabelac [Tue, 16 Oct 2018 18:03:21 +0000 (20:03 +0200)]
tests: timing without /usr/bin/time

Use just 'date' so the 'time' package doesn't need to be installed
just for this purpose.

6 years agotests: fix tested targeted
Zdenek Kabelac [Tue, 16 Oct 2018 17:05:19 +0000 (19:05 +0200)]
tests: fix tested targeted

Fix cut&paste bug.

6 years agocov: shutdown warning
Zdenek Kabelac [Tue, 16 Oct 2018 19:46:44 +0000 (21:46 +0200)]
cov: shutdown warning

Since previous patch reverted coverity patch as this case is intentional,
provide override this coverity warning.

6 years agorevert "cov: dm stats missed terminating null"
Zdenek Kabelac [Tue, 16 Oct 2018 17:13:34 +0000 (19:13 +0200)]
revert "cov: dm stats missed terminating null"

This reverts commit 20971f7034cbd329f873e08869bfb7acf3f1ac0e
as the parsing of 'dmstatus' started to fail on present \0 char.

6 years agofix: cov: missed return value test
David Teigland [Mon, 15 Oct 2018 16:35:33 +0000 (11:35 -0500)]
fix: cov: missed return value test

use the existing error paths

6 years agocov: avoid selfrecursive inclusion of toolcontext.h
Zdenek Kabelac [Mon, 15 Oct 2018 14:50:25 +0000 (16:50 +0200)]
cov: avoid selfrecursive inclusion of  toolcontext.h

6 years agocov: drop uneeded header files
Zdenek Kabelac [Mon, 15 Oct 2018 13:08:09 +0000 (15:08 +0200)]
cov: drop uneeded header files

6 years agocov: pvscan ensure sigle_devs list is always initialized
Zdenek Kabelac [Mon, 15 Oct 2018 14:57:32 +0000 (16:57 +0200)]
cov: pvscan ensure sigle_devs list is always initialized

6 years agocov: ignore error of vsnprintf
Zdenek Kabelac [Mon, 15 Oct 2018 15:37:30 +0000 (17:37 +0200)]
cov: ignore error of vsnprintf

6 years agocov: add missing error path check for label_scan_open
Zdenek Kabelac [Mon, 15 Oct 2018 14:39:28 +0000 (16:39 +0200)]
cov: add missing error path check for label_scan_open

6 years agocov: make sure label scans valid lvinfo
Zdenek Kabelac [Mon, 15 Oct 2018 14:29:09 +0000 (16:29 +0200)]
cov: make sure label scans valid lvinfo

6 years agocov: log failing unlink
Zdenek Kabelac [Mon, 15 Oct 2018 14:21:01 +0000 (16:21 +0200)]
cov: log failing unlink

6 years agocov: check closedir result
Zdenek Kabelac [Mon, 15 Oct 2018 14:19:49 +0000 (16:19 +0200)]
cov: check closedir result

Log problems around failing closedir().

6 years agocov: check dm_strncpy result
Zdenek Kabelac [Mon, 15 Oct 2018 14:16:14 +0000 (16:16 +0200)]
cov: check dm_strncpy result

6 years agocov: check dev_close_immediate
Zdenek Kabelac [Mon, 15 Oct 2018 14:06:35 +0000 (16:06 +0200)]
cov: check dev_close_immediate

Function can report log_error() on fail path.

6 years agocov: ensure vars are set
Zdenek Kabelac [Mon, 15 Oct 2018 13:27:45 +0000 (15:27 +0200)]
cov: ensure vars are set

Make sure, tmp_begin and tmp_end are always set, even for blind
coverity.

6 years agocov: dm node message fix missing initilization
Zdenek Kabelac [Mon, 15 Oct 2018 13:24:51 +0000 (15:24 +0200)]
cov: dm node message fix missing initilization

In 2 teoretical error path the 'r' value has not been set to
proper value before possible use in error path.

6 years agocov: fix error path
Zdenek Kabelac [Mon, 15 Oct 2018 13:20:45 +0000 (15:20 +0200)]
cov: fix error path

Avoid calling 'bad:' section since we have not set 'fd' yet
and instead directly return failing 0 value.

6 years agocov: fix failing filter initialization
Zdenek Kabelac [Mon, 15 Oct 2018 13:17:07 +0000 (15:17 +0200)]
cov: fix failing filter initialization

When persistent_filter_create() fails, the existing passed filter
should be preserved, so it could be properly deleted on
error path - so new pfilter is assigned instead.

6 years agocov: fix typo
Zdenek Kabelac [Mon, 15 Oct 2018 13:11:34 +0000 (15:11 +0200)]
cov: fix typo

Avoid double assing same value.

6 years agocov: add check for positive value
Zdenek Kabelac [Mon, 15 Oct 2018 13:02:09 +0000 (15:02 +0200)]
cov: add check for positive value

As pgsize parameter for _init_free_list() can't be negative,
report problem in case for any reason we would get negative number.

6 years agocov: dmstats check for failing malloc
Zdenek Kabelac [Mon, 15 Oct 2018 12:58:24 +0000 (14:58 +0200)]
cov: dmstats check for failing malloc

Add missing check for allocation success.

6 years agocov: add at least ASSERT
Zdenek Kabelac [Mon, 15 Oct 2018 12:53:36 +0000 (14:53 +0200)]
cov: add at least ASSERT

Seems lot of code here can't handle failing allocation.
Meanwhile before bigger fix put in asserts in place.

6 years agocov: fix missing null allocation check
Zdenek Kabelac [Mon, 15 Oct 2018 12:52:49 +0000 (14:52 +0200)]
cov: fix missing null allocation check

6 years agocov: dm stats missed terminating null
Zdenek Kabelac [Mon, 15 Oct 2018 12:45:16 +0000 (14:45 +0200)]
cov: dm stats missed terminating null

Coverity noticed allocating insufficient memory
for the terminating null of the string.

6 years agocov: index off by one
Zdenek Kabelac [Mon, 15 Oct 2018 12:43:25 +0000 (14:43 +0200)]
cov: index off by one

Basically apply stable patch fdb6ef8a85e9adc4805202b3200b17bd3b351982 to internal libdm version.

6 years agocov: fix leaking openned file descriptors
Zdenek Kabelac [Mon, 15 Oct 2018 12:34:31 +0000 (14:34 +0200)]
cov: fix leaking openned file descriptors

Once the FD is no longer needed, close it.

6 years agocov: fix memleak on bcache io error path
Zdenek Kabelac [Mon, 15 Oct 2018 12:29:52 +0000 (14:29 +0200)]
cov: fix memleak on bcache io error path

Drop allocated IO.

merge free bache

6 years agocov: dmeventd plugin fix memleak
Zdenek Kabelac [Mon, 15 Oct 2018 12:21:55 +0000 (14:21 +0200)]
cov: dmeventd plugin fix memleak

Fix memory leak when policy command fails too frequently and
plugin decided to skip it.

6 years agocov: drop check for pointer
Zdenek Kabelac [Mon, 15 Oct 2018 12:19:22 +0000 (14:19 +0200)]
cov: drop check for pointer

Pointer must be always set and it's been already dereferenced.

6 years agocov: warn about failing sigaction
Zdenek Kabelac [Mon, 15 Oct 2018 12:15:58 +0000 (14:15 +0200)]
cov: warn about failing sigaction

6 years agocov: missed return value test
Zdenek Kabelac [Mon, 15 Oct 2018 12:12:18 +0000 (14:12 +0200)]
cov: missed return value test

Check validity of read.

6 years agobuild: make genrate config file
Marian Csontos [Thu, 11 Oct 2018 08:44:09 +0000 (10:44 +0200)]
build: make genrate config file

6 years agoconfig: Fix version for VDO
Marian Csontos [Thu, 11 Oct 2018 08:53:28 +0000 (10:53 +0200)]
config: Fix version for VDO

6 years agobuild: Use PYTHON env. variable when provided
Marian Csontos [Wed, 10 Oct 2018 10:40:09 +0000 (12:40 +0200)]
build: Use PYTHON env. variable when provided

6 years agopost-release
Marian Csontos [Wed, 10 Oct 2018 11:03:18 +0000 (13:03 +0200)]
post-release

6 years agopre-release v2_03_00
Marian Csontos [Tue, 21 Aug 2018 15:18:20 +0000 (17:18 +0200)]
pre-release

6 years agobuild: gcc can be fussy about order of libs
Marian Csontos [Wed, 10 Oct 2018 09:10:42 +0000 (11:10 +0200)]
build: gcc can be fussy about order of libs

6 years agobuild: make generate
Marian Csontos [Wed, 10 Oct 2018 06:31:55 +0000 (08:31 +0200)]
build: make generate

6 years agotests: check activation of many thin-pool
Zdenek Kabelac [Wed, 5 Sep 2018 12:36:16 +0000 (14:36 +0200)]
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).

6 years agodmeventd: lvm2 plugin uses envvar registry
Zdenek Kabelac [Mon, 27 Aug 2018 08:18:26 +0000 (10:18 +0200)]
dmeventd: lvm2 plugin uses envvar registry

Thin plugin started to use configuble setting to allow to configure
usage of external scripts - however to read this value it needed to
execute internal command as dmeventd itself has no access to lvm.conf
and the API for dmeventd plugin has been kept stable.

The call of command itself was not normally 'a big issue' until users
started to use higher number of monitored LVs and execution of command
got stuck because other monitored resource already started to execute
some other lvm2 command and become blocked waiting on VG lock.

This scenario revealed necesity to somehow avoid calling lvm2 command
during resource registration - but this requires bigger changes - so
meanwhile this patch tries to minimize the possibility to hit this race
by obtaining any configurable setting just once - such patch is small
and covers majority of problem - yet better solution needs to be
introduced likely with bigger rework of dmeventd.

TODO: avoid blocking registration of resource with execution of lvm2
commands since those can get stuck waiting on mutexes.

6 years agospec: No %ghost for dirs at tmpfiles.d
Marian Csontos [Tue, 2 Oct 2018 15:02:37 +0000 (17:02 +0200)]
spec: No %ghost for dirs at tmpfiles.d

%ghost should not be used for directories created by systemd-tmpfiles.

This may prevent package from working right after installation without
invoking systemd-tmpfiles.

See: https://pagure.io/packaging-committee/issue/439

6 years agometadata: clarify comments about max size
David Teigland [Mon, 24 Sep 2018 20:27:03 +0000 (15:27 -0500)]
metadata: clarify comments about max size

Since there is now a direct limit of half the space.

6 years agometadata: add direct size limit
David Teigland [Mon, 24 Sep 2018 19:41:58 +0000 (14:41 -0500)]
metadata: add direct size limit

Previously the size was limited by checking if the
old and new copies of the metadata overlapped.
This generally limited the size to about half of
the total space, but it could be larger given the
size differences between old and new.  Now add a
direct check to limit the size to half the space.

6 years agometadata: remove incorrect comment about alignment
David Teigland [Thu, 20 Sep 2018 20:37:06 +0000 (15:37 -0500)]
metadata: remove incorrect comment about alignment

6 years agometadata: add comment about negative impact of rounding
David Teigland [Thu, 20 Sep 2018 19:15:49 +0000 (14:15 -0500)]
metadata: add comment about negative impact of rounding

6 years agometadata: remove an unused and incorrect overflow check
David Teigland [Thu, 20 Sep 2018 18:53:50 +0000 (13:53 -0500)]
metadata: remove an unused and incorrect overflow check

Remove another instance of an invalid check for metadata
overflow during read.  The previous instance was removed
in commit 5fb15b193.

This was checking for metadata that that overflowed the
circular disk metadata buffer during read, but such metadata
cannot be written, so it shouldn't be possible to find see.
Also, the check was incorrect and could trigger when there
was no overflow.

6 years agoMerge branch '2018-09-13-radix-tree-bug'
Joe Thornber [Thu, 20 Sep 2018 13:43:51 +0000 (14:43 +0100)]
Merge branch '2018-09-13-radix-tree-bug'

6 years ago[build] switch back to the adaptive radix tree
Joe Thornber [Thu, 20 Sep 2018 13:40:28 +0000 (14:40 +0100)]
[build] switch back to the adaptive radix tree

6 years ago[unit-test/radix-tree] Add a huge test case
Joe Thornber [Thu, 20 Sep 2018 13:35:45 +0000 (14:35 +0100)]
[unit-test/radix-tree] Add a huge test case

Derived from the logs that dct gave me.

6 years ago[radix-tree] tidy up _degrade_to_n48
Joe Thornber [Thu, 20 Sep 2018 13:28:47 +0000 (14:28 +0100)]
[radix-tree] tidy up _degrade_to_n48

Shouldn't be any functional changes.

6 years ago[radix-tree] Fix bug in _degrade_to_n16
Joe Thornber [Thu, 20 Sep 2018 13:20:16 +0000 (14:20 +0100)]
[radix-tree] Fix bug in _degrade_to_n16

Values were getting shuffled

6 years ago[radix-tree] Fix bug in _dump
Joe Thornber [Thu, 20 Sep 2018 13:18:57 +0000 (14:18 +0100)]
[radix-tree] Fix bug in _dump

Values in an n48 were not being printed in the correct order.

6 years ago[radix-tree] Add some extra checks to is_well_formed()
Joe Thornber [Thu, 20 Sep 2018 13:18:10 +0000 (14:18 +0100)]
[radix-tree] Add some extra checks to is_well_formed()

6 years agotests: fix lvconvert-raid-reshape-linear_to_striped-single-type.sh
Heinz Mauelshagen [Wed, 19 Sep 2018 12:53:38 +0000 (14:53 +0200)]
tests: fix lvconvert-raid-reshape-linear_to_striped-single-type.sh

Add errouneously removed VG creation back in.

6 years agoradix-tree: default to simple version
David Teigland [Mon, 17 Sep 2018 16:19:53 +0000 (11:19 -0500)]
radix-tree: default to simple version

Avoid problems with the advanced version.

6 years agolibdm: fix buffer overflow
Marian Csontos [Thu, 21 Jun 2018 08:20:09 +0000 (10:20 +0200)]
libdm: fix buffer overflow

(cherry picked from commit 8a0af1bec882de66677e1a0cdceff841c39f92b0)

6 years agobuild: Update configure
Marian Csontos [Fri, 14 Sep 2018 11:53:29 +0000 (13:53 +0200)]
build: Update configure

6 years agospec: Remove lvmconf refernces
Marian Csontos [Fri, 14 Sep 2018 11:49:51 +0000 (13:49 +0200)]
spec: Remove lvmconf refernces

Fixes: 81ca0cb1619b6ea22fa68f54783cd62dafbd2eaf
6 years agoMore cleanup needed for dropped scripts
David Teigland [Thu, 13 Sep 2018 16:02:53 +0000 (11:02 -0500)]
More cleanup needed for dropped scripts

and drop the lvm2 prefix from lvmlockd service

6 years agoadd lvmlocks service to start and stop lockspaces
David Teigland [Thu, 13 Sep 2018 15:50:50 +0000 (10:50 -0500)]
add lvmlocks service to start and stop lockspaces

6 years agoRemove init scripts related to clvm and lvmetad
David Teigland [Thu, 13 Sep 2018 15:08:03 +0000 (10:08 -0500)]
Remove init scripts related to clvm and lvmetad

6 years agolvmlockd: improve systemd service file
David Teigland [Thu, 13 Sep 2018 14:52:39 +0000 (09:52 -0500)]
lvmlockd: improve systemd service file

use notify type so the daemon is ready
immediately after start.

6 years agoremove unneded check to skip filter init
David Teigland [Wed, 12 Sep 2018 21:13:46 +0000 (16:13 -0500)]
remove unneded check to skip filter init

There's no more persistent filter so we don't need
to check for it.

6 years agofix readonly activation override options
David Teigland [Wed, 12 Sep 2018 20:59:47 +0000 (15:59 -0500)]
fix readonly activation override options

This fixes a problem in commit e6bb780d242, in which the
back compat handling for the old locking_type=4 was
incorrectly translated to mean the same thing as --readonly,
which prevented activation because activation uses an
exclusive vg lock.  Previously, locking_type=4 allowed
activation.

If we see locking_type 4 in an old config, translate it to
the new combination of --readonly and --sysinit, which we
now define to mean the --readonly behavior with an exception
to allow activation.

6 years agotests: add metadata-full
David Teigland [Tue, 11 Sep 2018 15:05:53 +0000 (10:05 -0500)]
tests: add metadata-full

6 years agometadata: improve write and commit code
David Teigland [Thu, 30 Aug 2018 15:44:53 +0000 (10:44 -0500)]
metadata: improve write and commit code

The vg_write/vg_commit code was imprecise, uncommented, and
hard to understand.  Rewrite it with clearer, cleaner code,
extensive comments, descriptions of how it works, and add
more info in debugging output.

The minor changes in behavior are to things that were
either incorrect or probably unintended:

- vg_write/vg_commit no longer check that the current vgname at
  the start of the text metadata matches the vgname being written.
  This has already been done at least twice by the time they are
  called, and repeating it again against the same cached data has
  no use.

- A fragment of old removed code had been left behind that checked
  if the old unused alignment policy would wrap.  It was still
  being checked to decide if the metadata area was full, which
  could possibly cause an incorrect full metadata failure.

- vg_remove now clears both the raw_locns in the mda_header that
  point to committed metadata (raw_locn slot 0) and precommitted
  metadata (raw_locn slot 1).  Previously it fully cleared the
  committed slot, and would only clear the offset field in the
  precommitted slot if it saw a problem with the metadata in the
  vg being removed.

- read_metadata_location_summary was wrongly comparing the number
  of wrapped bytes with an offset to report an error about the
  metadata being too large.  This wrong check is removed, it
  could have resulted in erroneous errors.

6 years agotests: bump dm-raid version to 1.14.0
Heinz Mauelshagen [Tue, 11 Sep 2018 13:58:43 +0000 (15:58 +0200)]
tests: bump dm-raid version to 1.14.0

Commit 989626926c98cd00f0236c4fcac883107d76899d
introduced 2 new tests
lvconvert-raid-takeover-linear_to_raid4.sh and
lvconvert-raid-takeover-raid4_to_linear.sh
which involve raid reshaping.

Bump the checked dm-raid target version to 1.14.0
which has reshape kernel fixes to avoid test suite
runs to hang.

6 years agotests: adjust target version to enable reshape tests
Heinz Mauelshagen [Tue, 11 Sep 2018 13:39:31 +0000 (15:39 +0200)]
tests: adjust target version to enable reshape tests

Bump target version to 1.14.0 which contains fixes
for reshape deadlock/corruption to allow tests to
run once the respective fixes show up in kernels.

Remove now superfluous multi-core checks.

Resolves: rhbz1501145
Related: rhbz1514539
Related: rhbz1586123
Related: rhbz1613039

6 years agoMerge branch 'master' of git://sourceware.org/git/lvm2
Joe Thornber [Tue, 11 Sep 2018 12:19:08 +0000 (13:19 +0100)]
Merge branch 'master' of git://sourceware.org/git/lvm2

6 years ago[bcache] Remove unused 'hash' field from blocks.
Joe Thornber [Tue, 11 Sep 2018 12:17:29 +0000 (13:17 +0100)]
[bcache] Remove unused 'hash' field from blocks.

We use a radix tree these days rather than a hash table.

6 years ago[radix-tree] alternative radix-tree implementation.
Joe Thornber [Tue, 11 Sep 2018 10:11:35 +0000 (11:11 +0100)]
[radix-tree] alternative radix-tree implementation.

Sacrifices performance for simplicity, meant only for verification of
the real adaptive implementation.

6 years agotests: remove lvmetad variation
David Teigland [Mon, 10 Sep 2018 19:26:57 +0000 (14:26 -0500)]
tests: remove lvmetad variation

6 years agotests: drop lvmetad parts of system_id test
David Teigland [Mon, 10 Sep 2018 19:08:27 +0000 (14:08 -0500)]
tests: drop lvmetad parts of system_id test

6 years agotests: drop lvmetad bits
David Teigland [Mon, 10 Sep 2018 16:10:55 +0000 (11:10 -0500)]
tests: drop lvmetad bits

6 years agolvconvert: allow raid4 -> linear conversion request
Heinz Mauelshagen [Mon, 10 Sep 2018 16:36:52 +0000 (18:36 +0200)]
lvconvert: allow raid4 -> linear conversion request

Allow "lvconvert --type linear RaidLV" on a raid4 LV
providing convenient interim steps to convert to linear.

Add respective new test
   lvconvert-raid-takeover-raid4_to_linear.sh
and
   lvconvert-raid-takeover-linear_to_raid4.sh
for linear to raid4 once on it.

6 years agolvconvert: fix interim segtype regression on raid6 conversions
Heinz Mauelshagen [Fri, 7 Sep 2018 11:48:13 +0000 (13:48 +0200)]
lvconvert: fix interim segtype regression on raid6 conversions

When converting from striped/raid0/raid0_meta
to raid6 with > 2 stripes, allow possible
direct conversion (to raid6_n_6).

In case of 2 stripes, first convert to raid5_n to restripe
to at least 3 data stripes (the raid6 minimum in lvm2) in
a second conversion before finally converting to raid6_n_6.

As before, raid6_n_6 then can be converted
to any other raid6 layout.

Enhance lvconvert-raid-takeover.sh to test the
2 stripes conversions to raid6.

Resolves: rhbz1624038

6 years agolvconvert: avoid superfluous interim raid type
Heinz Mauelshagen [Fri, 31 Aug 2018 17:03:52 +0000 (19:03 +0200)]
lvconvert: avoid superfluous interim raid type

When converting striped/raid0*/raid6_n_6 <-> raid4,
avoid superfluous interim raid5_n layout.

Related: rhbz1447809

6 years agotest: comment fixes
Heinz Mauelshagen [Fri, 31 Aug 2018 13:07:24 +0000 (15:07 +0200)]
test: comment fixes

Fix comments in

   test/shell/lvconvert-raid-reshape-stripes-load-fail.sh
   test/shell/lvconvert-raid-reshape-stripes-load-reload.sh
   test/shell/lvconvert-raid-reshape-stripes-load.sh

6 years agotests: add scan-lvs
David Teigland [Thu, 30 Aug 2018 14:54:02 +0000 (09:54 -0500)]
tests: add scan-lvs

6 years agofilter: add config setting to skip scanning LVs
David Teigland [Wed, 29 Aug 2018 18:14:18 +0000 (13:14 -0500)]
filter: add config setting to skip scanning LVs

devices/scan_lvs (default 1) determines whether lvm
will scan LVs for layered PVs.  The lvm behavior has
always been to scan LVs, but it's rare for LVs to have
layered PVs, and much more common for there to be many
LVs that substantially slow down scanning with no benefit.

This is implemented in the usable filter, and has the
same effect as listing all LVs in the global_filter.

6 years agoconfigure: fix LVMCONFIG_PATH assignment
Peter Rajnoha [Thu, 30 Aug 2018 10:59:59 +0000 (12:59 +0200)]
configure: fix LVMCONFIG_PATH assignment

6 years agoscripts: lvm2-activation-generator: also log possible execv error
Peter Rajnoha [Thu, 30 Aug 2018 10:48:50 +0000 (12:48 +0200)]
scripts: lvm2-activation-generator: also log possible execv error

6 years agoscripts: lvm2-activation-generator: add prefix for all kmsg messages
Peter Rajnoha [Thu, 30 Aug 2018 10:46:41 +0000 (12:46 +0200)]
scripts: lvm2-activation-generator: add prefix for all kmsg messages

Add "lvm2-activation-generator: " prefix for all kmsg messages written by
lvm2-activation-generator so we can identify the message in global system log.

This page took 0.07018 seconds and 5 git commands to generate.