]> sourceware.org Git - lvm2.git/log
lvm2.git
6 years agolvmlockd: enable mirror split and merge with dlm lock_type
David Teigland [Thu, 24 May 2018 20:02:35 +0000 (15:02 -0500)]
lvmlockd: enable mirror split and merge with dlm lock_type

6 years agoconfig: revert to normal locking when no cluster
David Teigland [Wed, 23 May 2018 15:15:39 +0000 (10:15 -0500)]
config: revert to normal locking when no cluster

and suggest lvmlockd

6 years agolvmlockd: do not use an LV lock for some lvchange options
David Teigland [Thu, 24 May 2018 16:41:14 +0000 (11:41 -0500)]
lvmlockd: do not use an LV lock for some lvchange options

Some lvchange options can be used even if the LV is active.

6 years agotests: separate lvmlockd tests with or without lvmetad
David Teigland [Wed, 23 May 2018 18:56:49 +0000 (13:56 -0500)]
tests: separate lvmlockd tests with or without lvmetad

6 years agolvmlockd: accept repeated global lock requests
David Teigland [Wed, 23 May 2018 18:16:48 +0000 (13:16 -0500)]
lvmlockd: accept repeated global lock requests

It's not an error if a command requests the global lock
when it has already acquired it.  It shouldn't happen,
but there could be cases we've not found.

6 years agotests: some missed skip with lvmlockd
David Teigland [Wed, 23 May 2018 18:04:47 +0000 (13:04 -0500)]
tests: some missed skip with lvmlockd

6 years agotests: fix skipping logic for lvmpolld and lvmlockd
David Teigland [Wed, 23 May 2018 17:56:33 +0000 (12:56 -0500)]
tests: fix skipping logic for lvmpolld and lvmlockd

6 years agoscan: removed failed paths for devices
David Teigland [Tue, 29 May 2018 22:02:27 +0000 (17:02 -0500)]
scan: removed failed paths for devices

Drop a device path when the scan fails to open it.

6 years agoradix-tree: fix some bugs in remove_prefix and iterate
Joe Thornber [Wed, 30 May 2018 13:14:59 +0000 (14:14 +0100)]
radix-tree: fix some bugs in remove_prefix and iterate

These weren't working if the prefix key was part of a prefix_chain.

6 years agoradix-tree: radix_tree_iterate()
Joe Thornber [Tue, 29 May 2018 16:58:58 +0000 (17:58 +0100)]
radix-tree: radix_tree_iterate()

6 years agoradix-tree: radix_tree_remove_prefix()
Joe Thornber [Tue, 29 May 2018 12:25:59 +0000 (13:25 +0100)]
radix-tree: radix_tree_remove_prefix()

6 years agoradix-tree: call the value dtr when removing an entry.
Joe Thornber [Tue, 29 May 2018 10:23:36 +0000 (11:23 +0100)]
radix-tree: call the value dtr when removing an entry.

6 years agoMerge branch '2018-05-29-radix-tree-iterate' into 2018-05-23-radix-tree-remove
Joe Thornber [Tue, 29 May 2018 10:04:32 +0000 (11:04 +0100)]
Merge branch '2018-05-29-radix-tree-iterate' into 2018-05-23-radix-tree-remove

6 years agodata-struct/radix-tree: pass the value dtr into create.
Joe Thornber [Tue, 29 May 2018 10:03:10 +0000 (11:03 +0100)]
data-struct/radix-tree: pass the value dtr into create.

Rather than having to pass it into every method that removes items.

6 years agoscan: refresh paths and retry open
David Teigland [Fri, 25 May 2018 16:14:12 +0000 (11:14 -0500)]
scan: refresh paths and retry open

If scanning fails to open any devices, refresh the
device paths in dev cache, and retry the opens.

6 years agoformat_text: Use versionsort to sort archive files
Alasdair G Kergon [Fri, 9 Feb 2018 01:08:55 +0000 (01:08 +0000)]
format_text: Use versionsort to sort archive files

Ensure that vg_100000-* follows vg_99999-* so that the expiry logic
doesn't stop too early.

   https://bugzilla.redhat.com/1481085

6 years agoMerge remote-tracking branch 'origin/master'
Marian Csontos [Thu, 24 May 2018 15:32:42 +0000 (17:32 +0200)]
Merge remote-tracking branch 'origin/master'

6 years agotests: improve usability on older systems
Zdenek Kabelac [Thu, 24 May 2018 13:20:22 +0000 (15:20 +0200)]
tests: improve usability on older systems

6 years agoman: another missed typo for thin plugin
Zdenek Kabelac [Thu, 24 May 2018 13:01:52 +0000 (15:01 +0200)]
man: another missed typo for thin plugin

6 years agopost-release
Marian Csontos [Thu, 24 May 2018 13:23:08 +0000 (15:23 +0200)]
post-release

6 years agopre-release v2_02_178-rc1
Marian Csontos [Thu, 24 May 2018 13:13:10 +0000 (15:13 +0200)]
pre-release

6 years agorelease note: typos
Joe Thornber [Thu, 24 May 2018 11:32:16 +0000 (12:32 +0100)]
release note: typos

6 years agorelease note: typo
Joe Thornber [Thu, 24 May 2018 11:26:34 +0000 (12:26 +0100)]
release note: typo

6 years agorelease note: 2.02.178
Joe Thornber [Thu, 24 May 2018 11:18:03 +0000 (12:18 +0100)]
release note: 2.02.178

6 years agotests: checking scanning correctness
Zdenek Kabelac [Thu, 24 May 2018 09:21:49 +0000 (11:21 +0200)]
tests: checking scanning correctness

6 years agotests: passthrough args with extend_filter_LVMTEST
Zdenek Kabelac [Thu, 24 May 2018 09:12:17 +0000 (11:12 +0200)]
tests: passthrough args with extend_filter_LVMTEST

Don't rebuild config twice.

6 years agotests: correcting symlink manipulation
Zdenek Kabelac [Thu, 24 May 2018 09:04:38 +0000 (11:04 +0200)]
tests: correcting symlink manipulation

Fix symlink and add 'verbose' pvs for a while for checking
scanning correctness.

6 years agotests: aux improve for mdadm support
Zdenek Kabelac [Thu, 24 May 2018 09:03:47 +0000 (11:03 +0200)]
tests: aux improve for mdadm support

Correcting some symlink handling.

6 years agoman: make generate
Zdenek Kabelac [Wed, 23 May 2018 17:46:47 +0000 (19:46 +0200)]
man: make generate

6 years agoman: fix cut and paste bug
Zdenek Kabelac [Wed, 23 May 2018 17:45:53 +0000 (19:45 +0200)]
man: fix cut and paste bug

Fixing missing 'META' in DMEVENTD_THIN_POOL_METADATA.

6 years agogitignore
Zdenek Kabelac [Tue, 22 May 2018 11:45:21 +0000 (13:45 +0200)]
gitignore

6 years agoradix_tree_t: knock out some debug
Joe Thornber [Wed, 23 May 2018 11:54:02 +0000 (12:54 +0100)]
radix_tree_t: knock out some debug

6 years agoradix_tree: add remove method
Joe Thornber [Wed, 23 May 2018 11:48:06 +0000 (12:48 +0100)]
radix_tree: add remove method

6 years agoMerge branch 'master' of git+ssh://sourceware.org/git/lvm2
Joe Thornber [Wed, 23 May 2018 08:14:29 +0000 (09:14 +0100)]
Merge branch 'master' of git+ssh://sourceware.org/git/lvm2

6 years agofilters: clarify some parts of md filter
David Teigland [Tue, 22 May 2018 19:07:13 +0000 (14:07 -0500)]
filters: clarify some parts of md filter

Rename some functions to be consistent with the return values,
and add some comments about how it works.

6 years agoWHATS_NEW: typo
Joe Thornber [Tue, 22 May 2018 08:46:59 +0000 (09:46 +0100)]
WHATS_NEW: typo

6 years agoscan: move warnings about duplicate devices
David Teigland [Mon, 21 May 2018 19:20:19 +0000 (14:20 -0500)]
scan: move warnings about duplicate devices

We have been warning about duplicate devices (and disabling lvmetad)
immediately when the dup was detected (during label_scan).  Move the
warnings (and the disabling) to happen later, after label_scan is
finished.

This lets us avoid an unwanted warning message about duplicates
in the special case were md components are eliminated during the
duplicate device resolution.

6 years agoman vgexport: expand description
David Teigland [Mon, 21 May 2018 21:26:49 +0000 (16:26 -0500)]
man vgexport: expand description

6 years agotests: disable symlink test
Zdenek Kabelac [Sat, 19 May 2018 10:08:23 +0000 (12:08 +0200)]
tests: disable symlink test

It's quite unclear what the test is meant to do - disable it just like
within python test.

6 years agotests: use 4K extent size
Zdenek Kabelac [Mon, 21 May 2018 09:56:45 +0000 (11:56 +0200)]
tests: use 4K extent size

To work with for 4k backend devices.

6 years agolvmlockd: suppress error messages related to lvmetad
David Teigland [Fri, 18 May 2018 21:00:54 +0000 (16:00 -0500)]
lvmlockd: suppress error messages related to lvmetad

Log lvmetad related messages as debug, not as errors,
when using lvmlockd without lvmetad.

6 years agofullreport: fix with lvmetad and only orphan PVs are visible
David Teigland [Fri, 18 May 2018 19:26:32 +0000 (14:26 -0500)]
fullreport: fix with lvmetad and only orphan PVs are visible

The report uses process_each_vg() which populates lvmcache
based on a VG list from lvmetad.  If there are no VGs,
but only orphan PVs, the orphans are not shown.  Add an
explicit call to populate lvmcache with PV info from lvmetad.

6 years agofix id_write_format on non-uuid string
David Teigland [Fri, 18 May 2018 18:41:20 +0000 (13:41 -0500)]
fix id_write_format on non-uuid string

orphan vgs using the vgname "#orphans" as the vgid,
and valgrind complains about calling id_write_format
on that invalid uuid.

6 years agopython: use // for integer division
Zdenek Kabelac [Fri, 18 May 2018 14:23:10 +0000 (16:23 +0200)]
python: use // for integer division

6 years agotests: pick either python2 or python3 .so
Zdenek Kabelac [Fri, 18 May 2018 14:16:40 +0000 (16:16 +0200)]
tests: pick either python2 or python3 .so

Use matching PYTHON library implementation.

6 years agotests; make sure python_lvm_unit.py is executable
Zdenek Kabelac [Fri, 18 May 2018 14:16:09 +0000 (16:16 +0200)]
tests; make sure python_lvm_unit.py is executable

6 years agopython: use python3 paths directly
Zdenek Kabelac [Thu, 17 May 2018 21:03:36 +0000 (23:03 +0200)]
python: use python3 paths directly

Do not use /usr/bin/env for path of python3 as this is seen
as 'unwanted' and should be avoided.

6 years agobuild: set clean vars earlier
Zdenek Kabelac [Fri, 18 May 2018 14:15:25 +0000 (16:15 +0200)]
build: set clean vars earlier

For better cleaning of test dirs.

6 years agoliblvm2app: add a couple tests
David Teigland [Thu, 17 May 2018 20:55:44 +0000 (15:55 -0500)]
liblvm2app: add a couple tests

trivial sanity-check programs using liblvm2app

6 years agoliblvm2app: fix valgrind memory warning
David Teigland [Thu, 17 May 2018 20:18:11 +0000 (15:18 -0500)]
liblvm2app: fix valgrind memory warning

6 years agotests: fix kernal_at_least argument in aux.sh
Heinz Mauelshagen [Thu, 17 May 2018 12:40:17 +0000 (14:40 +0200)]
tests: fix kernal_at_least argument in aux.sh

6 years agobcache: Don't call sysconf for every io
Joe Thornber [Thu, 17 May 2018 09:05:10 +0000 (10:05 +0100)]
bcache: Don't call sysconf for every io

6 years agoMerge branch 'master' of git://sourceware.org/git/lvm2
Joe Thornber [Thu, 17 May 2018 08:52:57 +0000 (09:52 +0100)]
Merge branch 'master' of git://sourceware.org/git/lvm2

6 years agoscripts/code-stats.rb: count files better, handle bad utf8
Joe Thornber [Thu, 17 May 2018 08:52:13 +0000 (09:52 +0100)]
scripts/code-stats.rb: count files better, handle bad utf8

6 years agobcache: don't use PAGE_SIZE compile const
Alex Bennée [Wed, 16 May 2018 20:19:03 +0000 (21:19 +0100)]
bcache: don't use PAGE_SIZE compile const

PAGE_SIZE is not a compile time constant. Use sysconf instead like
elsewhere in the code.

Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
6 years agocleanup: fix grammar in output - less then -> less than
Rick Elrod [Wed, 16 May 2018 21:53:38 +0000 (17:53 -0400)]
cleanup: fix grammar in output - less then -> less than

This minor patch fixes grammar in a few messages which get
printed to users. It also fixes the same grammar mistake in
several comments.

Signed-off-by: Rick Elrod <relrod@redhat.com>
--

6 years agoscan: fix missing close in lib
David Teigland [Wed, 16 May 2018 18:24:00 +0000 (13:24 -0500)]
scan: fix missing close in lib

lib was using dev_test_excl which wasn't closing the device.
Switch code to new io layer with excl open.
Also use exclusive open in some other places.

6 years agoscripts: add a little scripts to show git history for the last 2 weeks.
Joe Thornber [Wed, 16 May 2018 14:27:52 +0000 (15:27 +0100)]
scripts: add a little scripts to show git history for the last 2 weeks.

6 years agounit-tests: remove a couple of debug printfs
Joe Thornber [Wed, 16 May 2018 09:25:30 +0000 (10:25 +0100)]
unit-tests: remove a couple of debug printfs

6 years agoMerge branch 'master' of git://sourceware.org/git/lvm2
Joe Thornber [Wed, 16 May 2018 09:11:58 +0000 (10:11 +0100)]
Merge branch 'master' of git://sourceware.org/git/lvm2

6 years agobcache: nr_ios_pending wasn't being incremented
Joe Thornber [Wed, 16 May 2018 09:09:17 +0000 (10:09 +0100)]
bcache: nr_ios_pending wasn't being incremented

... but it was being decremented on completion.  Which meant
it wrapped, and no prefetches were ever issued after the
first completion.

6 years agodoc: add some performance info
David Teigland [Tue, 15 May 2018 20:16:02 +0000 (15:16 -0500)]
doc: add some performance info

6 years agoscan: use up to 1024 max bcache blocks
David Teigland [Tue, 15 May 2018 17:16:58 +0000 (12:16 -0500)]
scan: use up to 1024 max bcache blocks

Create bcache with one block per device that
will be scanned up to 1024 max blocks.

6 years agolvmapp: do not unlock not locked VGs
Zdenek Kabelac [Tue, 15 May 2018 19:58:40 +0000 (21:58 +0200)]
lvmapp: do not unlock not locked VGs

After recent changes this seems to give some help, explore more...

6 years agotests: better check for python libpath
Zdenek Kabelac [Tue, 15 May 2018 19:57:29 +0000 (21:57 +0200)]
tests: better check for python libpath

Find also python3 lvm.so name.

And ATM just run a single test, otherwise we get too many cores.

6 years agopython: specify libdm path for linking
Zdenek Kabelac [Tue, 15 May 2018 19:54:58 +0000 (21:54 +0200)]
python: specify libdm path for linking

6 years agotests: aux fixes
Zdenek Kabelac [Tue, 15 May 2018 19:53:05 +0000 (21:53 +0200)]
tests: aux fixes

Properly check for kernel version.
Also detect sysfs throttling support.

6 years agotests: time limit waiting on lvmetad kill
Zdenek Kabelac [Tue, 15 May 2018 19:52:05 +0000 (21:52 +0200)]
tests: time limit waiting on lvmetad kill

6 years agotests: drop junk
Zdenek Kabelac [Tue, 15 May 2018 19:51:35 +0000 (21:51 +0200)]
tests: drop junk

6 years agotests: move into generated file
Zdenek Kabelac [Tue, 15 May 2018 19:40:32 +0000 (21:40 +0200)]
tests: move into generated file

Since python path is evaluated and we cannot use anymore /usr/bin/env
switch to generated file.

6 years agobuild: configure detect libaio
Zdenek Kabelac [Tue, 15 May 2018 19:43:03 +0000 (21:43 +0200)]
build: configure detect libaio

No point to start building lvm without this header file.

Although there could be 'some point' in supporting standalone build
of 'just' libdm  where the libaio might be avoided.

TODO: think about configure option for building libdm only.

6 years agoWHATS_NEW: updates
David Teigland [Tue, 15 May 2018 15:49:06 +0000 (10:49 -0500)]
WHATS_NEW: updates

6 years agoconf: update conf
Zdenek Kabelac [Tue, 15 May 2018 14:58:28 +0000 (16:58 +0200)]
conf: update conf

Matching patch 2eba7c77557655cfbd19f191ec5d1ad1025897b3

6 years agotests: fix size of COW
Zdenek Kabelac [Tue, 15 May 2018 14:49:53 +0000 (16:49 +0200)]
tests: fix size of COW

Needs to be changed to match 4K extent_size.

6 years agotests: dont try to use DAX based brd device
Zdenek Kabelac [Tue, 15 May 2018 14:07:13 +0000 (16:07 +0200)]
tests: dont try to use DAX based brd device

Unfortunatelly on kernels <4.16 lvm2 can't user brd ramdisks
for backend device as number of test is failing with this kernel
message:

device-mapper: ioctl: can't change device type after initial table load.

caused by DAX request-based handling, and lvm2 tries to replace device
with backend 'error' bio-based device and such table reload is being
rejected.

So ATM keep ramdisk only on most recent kernel to experiment a bit,
for older machines just stay safe and keep old slower loop backend.

6 years agoclean-up: example.conf.in typo
Jonathan Brassow [Mon, 14 May 2018 21:17:01 +0000 (16:17 -0500)]
clean-up: example.conf.in typo

6 years agolvmcache: fix loop freeing infos
David Teigland [Mon, 14 May 2018 18:45:55 +0000 (13:45 -0500)]
lvmcache: fix loop freeing infos

valgrind was concerned about loop through vginfo->infos,
so grab info from dev.

6 years agoscan: add some missing frees
David Teigland [Mon, 14 May 2018 18:38:16 +0000 (13:38 -0500)]
scan: add some missing frees

some objects had been moved out of mem pools.

6 years agotests: old systems do not have even throttling
Zdenek Kabelac [Sat, 12 May 2018 21:36:04 +0000 (23:36 +0200)]
tests: old systems do not have even throttling

When even throttling is not available, skip or use  should
with particular test piece.

6 years agotests: swith to mkstemp
Zdenek Kabelac [Sat, 12 May 2018 21:23:54 +0000 (23:23 +0200)]
tests: swith to mkstemp

As mkostemp is only on newer systems, switch to more old version
which effectively does exactly the same thing for given list of
open flags.

6 years agotests: start to use 4k mkfs
Zdenek Kabelac [Sat, 12 May 2018 21:22:20 +0000 (23:22 +0200)]
tests: start to use 4k mkfs

While newer system can detect need for 4K mkfs, on older test machines
running test suite over 4k is reporting problems.
Some more generic solution is needed thought.

6 years agotests: fix check sysfs
Zdenek Kabelac [Sat, 12 May 2018 21:01:52 +0000 (23:01 +0200)]
tests: fix check sysfs

Commit 810f856c2490eb1d5db858f26a26621c4a3477e0 missed to move
assign of P after setting maj & min.

6 years agotests: do not try to create 1K extents
Zdenek Kabelac [Sat, 12 May 2018 20:52:41 +0000 (22:52 +0200)]
tests: do not try to create 1K extents

6 years agotests: restore functionality
Zdenek Kabelac [Sat, 12 May 2018 20:51:43 +0000 (22:51 +0200)]
tests: restore functionality

Forgotten revert of tracing patch. Restoring previous functinality.

6 years agotests: aux detecs supported segments
Zdenek Kabelac [Sat, 12 May 2018 20:50:36 +0000 (22:50 +0200)]
tests: aux detecs supported segments

Replace previous compilation detection of present supported segtypes
with runtime check.

6 years agobuild: lcov reporting for unit tests
Zdenek Kabelac [Fri, 11 May 2018 22:47:53 +0000 (00:47 +0200)]
build: lcov reporting for unit tests

List also lcov for processed unit tests.

6 years agobuild: install unit-test
Zdenek Kabelac [Fri, 11 May 2018 22:05:01 +0000 (00:05 +0200)]
build: install unit-test

6 years agotests: add unit-test
Zdenek Kabelac [Sat, 12 May 2018 15:28:50 +0000 (17:28 +0200)]
tests: add unit-test

Allow unit-test to be run as part of standard 'make check'.

6 years agotests: detect running bcache test on tmpfs
Zdenek Kabelac [Fri, 11 May 2018 21:02:10 +0000 (23:02 +0200)]
tests: detect running bcache test on tmpfs

When test happens to run in tmpfs, it cannot use O_DIRECT (unsupported
with tmpfs).

CHECKME: unsure if detection of tmpfs is 'valid' but kind of works and
is very simple.

6 years agobuild: rename device-mapper to device_mapper
Zdenek Kabelac [Fri, 11 May 2018 16:55:55 +0000 (18:55 +0200)]
build: rename device-mapper to device_mapper

As Makefiles already do use target with name 'device-mapper'
rename this new device-mapper dir to non-conflicting name.
We also seem to already use '_' in other dir names.

Also rename device_mapper/Makefile to source for generating Makefile.in
so we can use it for build in other source dirs properly.

6 years agobuild: fix build rules for srcdir
Zdenek Kabelac [Sat, 12 May 2018 16:14:53 +0000 (18:14 +0200)]
build: fix build rules for srcdir

It's very hard to use some 'non-recurive' Makefiles with
rest of system running 'recursively'.

So ATM drop inclusion of subdir makefile and add support
for 2 new top-level targets:

unit-test  (builds test/unit dir)
run-unit-test (build & run test/unit/unit-test run)

6 years agobcache: do not use libdm header files
Zdenek Kabelac [Fri, 11 May 2018 16:41:44 +0000 (18:41 +0200)]
bcache: do not use libdm header files

Logging for libdm differs from lvm logging - keep using consisten
logging function calls.

6 years agobuild: make generate
Zdenek Kabelac [Sat, 12 May 2018 15:02:34 +0000 (17:02 +0200)]
build: make generate

6 years agotests: drop cache checking
Zdenek Kabelac [Mon, 7 May 2018 09:53:41 +0000 (11:53 +0200)]
tests: drop cache checking

Just like 52656c89fd6e7655b0599e20f90cc9d70561f1fb
when now cache is compiled in 'unditionally'.

This patch is actually enforce by changes in
commit: 2bc896f2a3a0023a4f45f10da3d0a22295a633ee
where CACHE value is not set anymore.

6 years agotests: add support to run unit test
Zdenek Kabelac [Sat, 12 May 2018 16:09:44 +0000 (18:09 +0200)]
tests: add support to run unit test

6 years agobuild: properly track source file for lmvlockctl
Zdenek Kabelac [Fri, 11 May 2018 23:19:07 +0000 (01:19 +0200)]
build: properly track source file for lmvlockctl

Ensure the source file is tracked by various cleanup functions.

6 years agotests: inittest may run without root
Zdenek Kabelac [Fri, 11 May 2018 22:08:06 +0000 (00:08 +0200)]
tests: inittest may run without root

If the test does not need root, it can use 'SKIP_ROOT_DM_CHECK'.

For such test no actions needed root to initilize DM devices and
nodes will be take and test can check i.e. functional unit tests.

6 years agotests: inittest compare string
Zdenek Kabelac [Fri, 11 May 2018 22:06:44 +0000 (00:06 +0200)]
tests: inittest compare string

Avoid logging warning when compared string is empty with -eq.

6 years agotests: aux extra protection for rm -rf
Zdenek Kabelac [Fri, 11 May 2018 22:05:27 +0000 (00:05 +0200)]
tests: aux extra protection for rm -rf

6 years agotests: again disable this raid test
Zdenek Kabelac [Sat, 12 May 2018 10:02:01 +0000 (12:02 +0200)]
tests: again disable this raid test

Still kills testing machines even with 4.17-rc4 kernels
on reshaping.

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