]> sourceware.org Git - lvm2.git/log
lvm2.git
17 months agopost-release
Marian Csontos [Fri, 21 Apr 2023 08:36:06 +0000 (10:36 +0200)]
post-release

17 months agopre-release v2_03_21
Marian Csontos [Fri, 21 Apr 2023 08:35:10 +0000 (10:35 +0200)]
pre-release

17 months agolvmdbusd: Add a flag to activate LVs in shared mode to Lv.Activate
Vojtech Trefny [Thu, 20 Apr 2023 09:49:21 +0000 (11:49 +0200)]
lvmdbusd: Add a flag to activate LVs in shared mode to Lv.Activate

18 months agocache: fix snapshot of cache with cachevol
David Teigland [Mon, 10 Apr 2023 16:41:28 +0000 (11:41 -0500)]
cache: fix snapshot of cache with cachevol

Creating a snapshot of a cache LV with a cachevol would fail
because cache_check was not being skipped.

18 months agoremove extra change from support 16KB page size
David Teigland [Fri, 7 Apr 2023 20:57:28 +0000 (15:57 -0500)]
remove extra change from support 16KB page size

18 months agosupport 16KB page size
David Teigland [Fri, 7 Apr 2023 14:05:07 +0000 (09:05 -0500)]
support 16KB page size

18 months agoWHATS_NEW: update
Zdenek Kabelac [Thu, 6 Apr 2023 11:45:42 +0000 (13:45 +0200)]
WHATS_NEW: update

18 months agotests: use less demanding ext4
Zdenek Kabelac [Thu, 6 Apr 2023 11:40:16 +0000 (13:40 +0200)]
tests: use less demanding ext4

18 months agotests: lower demand for disk resources
Zdenek Kabelac [Tue, 4 Apr 2023 12:44:47 +0000 (14:44 +0200)]
tests: lower demand for disk resources

Convert test to use a single skeleton and only different pieces
keep in separate tests.

Lower raid disk usage to smaller size and switch to ext4
as way less demanding fileystem.

18 months agovdo: use fixed size vdopool wrapper
Zdenek Kabelac [Mon, 6 Mar 2023 13:52:59 +0000 (14:52 +0100)]
vdo: use fixed size vdopool wrapper

Instead of using size of 'empty header' in vdopool use fixed size 4K
for a 'wrappeing' vdo-pool device.

This fixes the issue when user tried to activate vdo-pool after
a conversion from vdo managed device with 'vgchange -ay' - where
this command activated all LVs with 'vdo-pool' wrapping device as well,
but this converted pool uses  0-length header.

This 4k size should usually prevent other tools like 'blkid' recognize
such device as anything - so it shouldn't cause any problems with
duplicate indentification of devices.

18 months agocleanup: rename function
Zdenek Kabelac [Mon, 6 Mar 2023 13:52:28 +0000 (14:52 +0100)]
cleanup: rename function

Rename _thin_lv_has_device_id and use common function naming
with _lv_has_thin_device_id().

18 months agocleanup: simplify
Zdenek Kabelac [Wed, 1 Mar 2023 20:05:47 +0000 (21:05 +0100)]
cleanup: simplify

18 months agoconfigure: update
Zdenek Kabelac [Wed, 1 Mar 2023 08:40:53 +0000 (09:40 +0100)]
configure: update

autoreconf

18 months agoconfigure.ac: print locking dir
Zdenek Kabelac [Tue, 28 Feb 2023 22:13:00 +0000 (23:13 +0100)]
configure.ac: print locking dir

Correcting output results from configure script when
printing locking dir.

Shuffle dmfilemapd close to dmeventd option and tracing.

Couple indent changes.

18 months agointegrity: hide creation of internal LVs
Zdenek Kabelac [Sat, 25 Feb 2023 19:29:05 +0000 (20:29 +0100)]
integrity: hide creation of internal LVs

Creation of 'hidden' local LVs should be visible only in
verbose mode (-v) when creating a raid LV with integrity.

18 months agoraidintegrity: allow writecache and cache
David Teigland [Fri, 17 Mar 2023 21:39:48 +0000 (16:39 -0500)]
raidintegrity: allow writecache and cache

Allow writecache|cache over raid+integrity LV.

18 months agotests: integrity fixes
David Teigland [Thu, 16 Mar 2023 18:59:56 +0000 (13:59 -0500)]
tests: integrity fixes

wait_recalc was mistakenly being called on raid without integrity
wait_recalc loop was exiting without error

18 months agolvmdbusd: Correct seg. fault on s390x ELN
Tony Asleson [Thu, 30 Mar 2023 15:10:23 +0000 (10:10 -0500)]
lvmdbusd: Correct seg. fault on s390x ELN

syscall 186 is specific to x86 64bit.  As this is different from arch
to arch and between same arch different arch size we will only grab
thread ID using built-in python support if it is supported.

Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=2166931

18 months agolvmdbusd: Correct locking for _common_log
Tony Asleson [Thu, 30 Mar 2023 15:07:13 +0000 (10:07 -0500)]
lvmdbusd: Correct locking for _common_log

Reduce the lock time and include the flush in the lock.

Reported by: Zbigniew JÄ™drzejewski-Szmek <zbyszek@in.waw.pl>

18 months agoFix import of utils from lvmdbusd.cfg
Adam Williamson [Tue, 21 Mar 2023 18:46:54 +0000 (11:46 -0700)]
Fix import of utils from lvmdbusd.cfg

Signed-off-by: Adam Williamson <awilliam@redhat.com>
18 months agopost-release
Marian Csontos [Tue, 21 Mar 2023 12:36:36 +0000 (13:36 +0100)]
post-release

18 months agopre-release v2_03_20
Marian Csontos [Tue, 21 Mar 2023 12:35:48 +0000 (13:35 +0100)]
pre-release

18 months agomake: generate
Marian Csontos [Tue, 21 Mar 2023 12:33:14 +0000 (13:33 +0100)]
make: generate

18 months agotests: nomda-restoremissing
David Teigland [Mon, 20 Mar 2023 17:42:50 +0000 (12:42 -0500)]
tests: nomda-restoremissing

This test was broken by commit 69ea2e3f9
"vg_read: keep MISSING_PV when device with no mda reappears"
Change the test to match the new behavior.

19 months agolvmdbusd: Add a new 'Shared' property to the Vg interface
Vojtech Trefny [Wed, 15 Mar 2023 11:31:14 +0000 (12:31 +0100)]
lvmdbusd: Add a new 'Shared' property to the Vg interface

Signed-off-by: Vojtech Trefny <vtrefny@redhat.com>
19 months agolvmdbustest: Correct env. logic
Tony Asleson [Tue, 14 Mar 2023 13:05:57 +0000 (08:05 -0500)]
lvmdbustest: Correct env. logic

Signed-off-by: Tony Asleson <tasleson@redhat.com>
19 months agolvmdbustest: Add notes on error injection testing
Tony Asleson [Fri, 10 Mar 2023 16:44:55 +0000 (10:44 -0600)]
lvmdbustest: Add notes on error injection testing

Not doing this by default for automated build testing as it generates a
lot of output and slows things down by another ~10%.

19 months agolvmdbustest: Add env. variable to skip signal testing
Tony Asleson [Fri, 10 Mar 2023 16:43:02 +0000 (10:43 -0600)]
lvmdbustest: Add env. variable to skip signal testing

This is currently need if we are collecting code coverage data as we don't
handle this unit test correctly.

19 months agolvmdbustest: Check for needed env. variables
Tony Asleson [Fri, 10 Mar 2023 16:41:50 +0000 (10:41 -0600)]
lvmdbustest: Check for needed env. variables

19 months agolvmdbustest: Don't use hard coded /tmp for error inject log
Tony Asleson [Fri, 10 Mar 2023 16:41:20 +0000 (10:41 -0600)]
lvmdbustest: Don't use hard coded /tmp for error inject log

19 months agolvmdbusd: Add a retries during initial load
Tony Asleson [Thu, 9 Mar 2023 17:29:58 +0000 (11:29 -0600)]
lvmdbusd: Add a retries during initial load

When the daemon is starting we do an initial fetch of lvm state.  If we
happened to get some type of failure with lvm during this time we would
exit.  During error injection testing this happened enough that
the unit tests were unable to finish.  Add retries to ensure we can get
started during error injection testing.

19 months agolvmdbustest: Shutdown cleanly with "exit"
Tony Asleson [Thu, 9 Mar 2023 17:27:19 +0000 (11:27 -0600)]
lvmdbustest: Shutdown cleanly with "exit"

Make the error injection wrapper handle the exit case, so that we can
clean up gracefully when instructed to do so.

19 months agolvmdbustest: Only inject 1 missing key error
Tony Asleson [Thu, 9 Mar 2023 17:25:58 +0000 (11:25 -0600)]
lvmdbustest: Only inject 1 missing key error

Previously we were injecting a missing key in the lv, vg, and pv.
Given the order of processing in lvmdbusd, this prevented us from
exercising all the error paths.  Change to returning just 1 instead.

19 months agolvmdbustest: Correctly set up env. for error injection
Tony Asleson [Thu, 9 Mar 2023 17:23:47 +0000 (11:23 -0600)]
lvmdbustest: Correctly set up env. for error injection

19 months agolvmdbustest: open log file with "a"
Tony Asleson [Thu, 9 Mar 2023 17:22:51 +0000 (11:22 -0600)]
lvmdbustest: open log file with "a"

So we retain the log across fork & exec and lvm shell testing.

19 months agolvmdbusd: Handle missing key in get_key
Tony Asleson [Thu, 9 Mar 2023 17:21:27 +0000 (11:21 -0600)]
lvmdbusd: Handle missing key in get_key

When we sort the LVs, we can stumble on a missing key, protect against
this as well.

Seen in error injection testing:
Traceback (most recent call last):
  File "/home/tasleson/projects/lvm2/daemons/lvmdbusd/fetch.py", line 198, in update_thread
    num_changes = load(*_load_args(queued_requests))
  File "/home/tasleson/projects/lvm2/daemons/lvmdbusd/fetch.py", line 83, in load
    rc = MThreadRunner(_main_thread_load, refresh, emit_signal).done()
  File "/home/tasleson/projects/lvm2/daemons/lvmdbusd/utils.py", line 726, in done
    raise self.exception
  File "/home/tasleson/projects/lvm2/daemons/lvmdbusd/utils.py", line 732, in _run
    self.rc = self.f(*self.args)
  File "/home/tasleson/projects/lvm2/daemons/lvmdbusd/fetch.py", line 40, in _main_thread_load
    (lv_changes, remove) = load_lvs(
  File "/home/tasleson/projects/lvm2/daemons/lvmdbusd/lv.py", line 148, in load_lvs
    return common(
  File "/home/tasleson/projects/lvm2/daemons/lvmdbusd/loader.py", line 37, in common
    objects = retrieve(search_keys, cache_refresh=False)
  File "/home/tasleson/projects/lvm2/daemons/lvmdbusd/lv.py", line 72, in lvs_state_retrieve
    lvs = sorted(cfg.db.fetch_lvs(selection), key=get_key)
  File "/home/tasleson/projects/lvm2/daemons/lvmdbusd/lv.py", line 35, in get_key
    pool = i['pool_lv']
KeyError: 'pool_lv'

19 months agolvmdbusd: Replace assert with exception
Tony Asleson [Thu, 9 Mar 2023 17:19:29 +0000 (11:19 -0600)]
lvmdbusd: Replace assert with exception

Instead of using an assert we will raise an LvmBug exception

19 months agotests: update missing-pv
David Teigland [Wed, 8 Feb 2023 23:17:30 +0000 (17:17 -0600)]
tests: update missing-pv

add more checks and expand comments explaining behavior

19 months agovg_read: keep MISSING_PV when device with no mda reappears
David Teigland [Wed, 8 Feb 2023 19:34:35 +0000 (13:34 -0600)]
vg_read: keep MISSING_PV when device with no mda reappears

Remove old code that became incorrect at some point.
It's probably a fragment of an old condition that was left
behind because it wasn't understood.  We don't want to drop
the MISSING_PV flag just because the PV has no mda in use.
The device that was missing may have stale data, so the user
needs to decide if the device should be removed or restored.

19 months agotests: vg-raid-takeover
David Teigland [Tue, 7 Feb 2023 21:25:46 +0000 (15:25 -0600)]
tests: vg-raid-takeover

Different sequences of steps that could be used to handle raid LVs
after VG takeover (what would happen in cluster failover) combined
with the loss of a disk.

19 months agovgchange: allow changing system ID with majority of PVs
David Teigland [Thu, 7 Jul 2022 21:06:01 +0000 (16:06 -0500)]
vgchange: allow changing system ID with majority of PVs

when used with --majoritypvs.  This allows the fail-over
of a VG between systems by changing the VG system ID when
a PV is missing.

19 months agolvmlockd: clean up get_local_nodeid
David Teigland [Wed, 8 Mar 2023 17:11:32 +0000 (11:11 -0600)]
lvmlockd: clean up get_local_nodeid

Hard to see if fclose calls were correct, and coverity couldn't figure
it out either, so make it clear.

19 months agotoollib: fix segfault if using -S|--select with log/report_command_log=1 setting
Peter Rajnoha [Tue, 7 Mar 2023 13:45:06 +0000 (14:45 +0100)]
toollib: fix segfault if using -S|--select with log/report_command_log=1 setting

When we are using -S|--select for non-reporting tools while using command log
reporting (log/report_command_log=1 setting), we need to create an internal
processing handle to handle the selection itself. In this case, the internal
processing handle to execute the selection (to process the -S|--select) has
a parent handle (that is processing the actual non-reporting command).

When this parent handle exists, we can't destroy the command log report
in destroy_processing_handle as there's still the parent processing to
finish. The parent processing may still generate logs which need to be
reported in the command log report. If the command log report was
destroyed prematurely together with destroying the internal processing
handle for -S|--select, then any subsequent log request from processing
the actual command (and hence an attermpt to access the command log report)
ended up with a segfault.

See also: https://bugzilla.redhat.com/show_bug.cgi?id=2175220

19 months agolvmdbusd: Add needed env. variables
Tony Asleson [Mon, 6 Mar 2023 16:26:44 +0000 (10:26 -0600)]
lvmdbusd: Add needed env. variables

When running lvmdb.py by itself for testing we need these.

19 months agolvmdbusd: Move cfg.lvmdebug data init
Tony Asleson [Mon, 6 Mar 2023 16:25:22 +0000 (10:25 -0600)]
lvmdbusd: Move cfg.lvmdebug data init

Move this to the cfg file itself, so that initialization runs when it
gets processed.

19 months agolvmdbustest: Test duplicate VG rename
Tony Asleson [Fri, 3 Mar 2023 17:17:30 +0000 (11:17 -0600)]
lvmdbustest: Test duplicate VG rename

19 months agolvmdbustest: Add more info on asserts
Tony Asleson [Thu, 2 Mar 2023 17:44:16 +0000 (11:44 -0600)]
lvmdbustest: Add more info on asserts

19 months agolvmdbustest: Don't hard code to /tmp
Tony Asleson [Wed, 1 Mar 2023 21:59:14 +0000 (15:59 -0600)]
lvmdbustest: Don't hard code to /tmp

During lvm testing they use an alternative tmp directory.

19 months agolvmdbustest: Add more output for test_log_file_option
Tony Asleson [Wed, 1 Mar 2023 21:52:23 +0000 (15:52 -0600)]
lvmdbustest: Add more output for test_log_file_option

19 months agolvmdbustest.py: Increase udev timeout
Tony Asleson [Wed, 1 Mar 2023 21:25:00 +0000 (15:25 -0600)]
lvmdbustest.py: Increase udev timeout

19 months agolvmdbusd: Remove unused import
Tony Asleson [Mon, 27 Feb 2023 15:57:18 +0000 (09:57 -0600)]
lvmdbusd: Remove unused import

19 months agolvmdbusd: Add lock to prevent concurrent lvm shell access
Tony Asleson [Mon, 27 Feb 2023 14:57:24 +0000 (08:57 -0600)]
lvmdbusd: Add lock to prevent concurrent lvm shell access

There is a window of time where the following can occur.

1. An API request is in process to the lvm shell, we have written some
   command to the lvm shell and we are blocked on that thread waiting
2. A signal arrives to the daemon which causes us to exit.  The signal
   handling code path goes directly to the lvm shell and writes
   "exit\n".  This causes the lvm shell to simply exit.
3. The thread that was waiting for a response gets an EIO as the child
   process has exited.  This bubbles up a failure.

This is addressed by placing a lock in the lvm shell to prevent
concurrent access to the shell.  We also gather additional debug data
when we get an error in the lvm shell read path.  This should help if
the lvm shell exits/crashes on its own.

19 months agolvmdbustest.py: Remove use of root_dir in glob
Tony Asleson [Thu, 23 Feb 2023 18:24:39 +0000 (12:24 -0600)]
lvmdbustest.py: Remove use of root_dir in glob

This feature has only been in python since 10/2021.

19 months agolvresize: fix check for mounted and renamed LV to handle spaces
David Teigland [Thu, 23 Feb 2023 22:32:37 +0000 (16:32 -0600)]
lvresize: fix check for mounted and renamed LV to handle spaces

Replace spaces with \040 in directory paths from getmntent (mtab).

The recent commit 5374a44c5712 compares mount point directory paths
from /etc/mtab and /proc/mounts, in order to detect when a mounted
LV has been renamed.  The directory path comparison does not work
correctly when the path contains spaces because getmntent uses
ascii space chars and proc replaces spaces with \040.

19 months agoconfigure: update
Zdenek Kabelac [Mon, 20 Feb 2023 20:04:58 +0000 (21:04 +0100)]
configure: update

19 months agoWHATS_NEW: updates
Zdenek Kabelac [Thu, 23 Feb 2023 15:42:45 +0000 (16:42 +0100)]
WHATS_NEW: updates

19 months agoconfigure.ac: use pkg-config to detect static libs
Robin H. Johnson [Sun, 9 May 2021 09:00:22 +0000 (11:00 +0200)]
configure.ac: use pkg-config to detect static libs

Add some Gentoo based patches for better support of static linking.
This are not tested nor supported by upstream developers.
Usage requires presence of several libraries in their static form
which is however not commonly available.

Selinux modified by zkabelac to still work on older sofrware which
did not provided libselinux.pc at a time - see keep the old check
present and use pkg-config only when possible.

19 months agoconfigure.ac: add STATIC_LDFLAGS
David Seifert [Wed, 22 Feb 2023 13:41:08 +0000 (14:41 +0100)]
configure.ac: add STATIC_LDFLAGS

Add support for specif STATIC_LDFLAGS when linking static binaries.

19 months agoconfigure.ac: misc
Zdenek Kabelac [Wed, 22 Feb 2023 13:11:50 +0000 (14:11 +0100)]
configure.ac: misc

19 months agoconfigure.ac: fail configure for missing libraries
Zdenek Kabelac [Mon, 20 Feb 2023 22:57:56 +0000 (23:57 +0100)]
configure.ac: fail configure for missing libraries

When user enables lockd libraris, code needs to fail, when then are
missing. Also when notify-dbus support if enabled, and libsystemd is
missing, abort configuration.

19 months agoconfigure.ac: update dlm check
Zdenek Kabelac [Mon, 20 Feb 2023 20:01:31 +0000 (21:01 +0100)]
configure.ac: update dlm check

Check for pkg-config --libs libdlm_lt  and test if the returned value
contains word 'pthread' - if so, it's likely a buggy result from
incorrect config file and use directly  -ldlm_lt for this case.

19 months agomakefiles: add pthread to libdevmapper pkgconfig
David Seifert [Wed, 22 Feb 2023 12:10:16 +0000 (13:10 +0100)]
makefiles: add pthread to libdevmapper pkgconfig

Add pthread to pkg_config file.

19 months agomakefiles: avoid grep
Zdenek Kabelac [Wed, 22 Feb 2023 20:53:41 +0000 (21:53 +0100)]
makefiles: avoid grep

Avoid getting annoyting grep warning and use just awk to get the
value.

19 months agoaux: lvmdbus checks for JSONDecodeError
Zdenek Kabelac [Thu, 23 Feb 2023 15:25:10 +0000 (16:25 +0100)]
aux: lvmdbus checks for JSONDecodeError

Skip lvmdbus testing with too old python.

19 months agotests: add missing quotes
Zdenek Kabelac [Thu, 23 Feb 2023 14:55:04 +0000 (15:55 +0100)]
tests: add missing quotes

Add quotes around paths and also add fixme for checking
system is actually usable for a test with all running
services.

19 months agotests: use aux mdadm wrapper
Zdenek Kabelac [Thu, 23 Feb 2023 14:37:39 +0000 (15:37 +0100)]
tests: use aux mdadm wrapper

Wrapper takes care of proper MD device name around its various
incarnations.

19 months agotests: remove option chunk for mdadm raid1
Zdenek Kabelac [Thu, 23 Feb 2023 14:30:50 +0000 (15:30 +0100)]
tests: remove option chunk for mdadm raid1

Not sure why, but --chunk specification for mdadm raid1 is no longer
'wanted' ???

19 months agotests: add fixme
Zdenek Kabelac [Thu, 23 Feb 2023 14:24:23 +0000 (15:24 +0100)]
tests: add fixme

19 months agotests: some skips with 6.2 kernel
Zdenek Kabelac [Thu, 23 Feb 2023 14:06:17 +0000 (15:06 +0100)]
tests: some skips with 6.2 kernel

Fix did not managed to get to final release so skip test on this kernel.

19 months agovgimport: invalidate hints
David Teigland [Wed, 22 Feb 2023 22:19:48 +0000 (16:19 -0600)]
vgimport: invalidate hints

There may be some unconventional methods of sharing disks with vgimport
where hints could cause confusion.  Hints should be disabled when
sharing disks, or pvscan --cache used to regenerate hints as needed,
but invalidating hints from vgimport might help reduce confusion.

19 months agopost-release
Marian Csontos [Tue, 21 Feb 2023 14:36:24 +0000 (15:36 +0100)]
post-release

19 months agopre-release v2_03_19
Marian Csontos [Tue, 21 Feb 2023 14:33:32 +0000 (15:33 +0100)]
pre-release

19 months agolvmdbustest: Check and remove lvm debug collection files
Tony Asleson [Mon, 20 Feb 2023 17:10:24 +0000 (11:10 -0600)]
lvmdbustest: Check and remove lvm debug collection files

In setup/teardown ensure we check for and remove any lvm debug
collection, to prevent FS from filling up.

19 months agolvmdbusd: Disable collecting lvm debug data by default
Tony Asleson [Thu, 16 Feb 2023 22:07:32 +0000 (16:07 -0600)]
lvmdbusd: Disable collecting lvm debug data by default

19 months agolvmdbusd: Fix grammar
Tony Asleson [Thu, 16 Feb 2023 16:24:06 +0000 (10:24 -0600)]
lvmdbusd: Fix grammar

19 months agoconfigure: update
Zdenek Kabelac [Thu, 16 Feb 2023 22:26:24 +0000 (23:26 +0100)]
configure: update

19 months agotests: safety first...
Zdenek Kabelac [Thu, 16 Feb 2023 13:21:17 +0000 (14:21 +0100)]
tests: safety first...

19 months agotests: lvmdbus testing use --debug optinally now
Zdenek Kabelac [Thu, 16 Feb 2023 15:50:07 +0000 (16:50 +0100)]
tests: lvmdbus testing use --debug optinally now

To shorten down logging output of lvmdbus - use for now lvmdbus
with --debug option only when LVM_DEBUG_LVMDBUS=1 is set.

19 months agotests: check failing vdo conversion
Zdenek Kabelac [Thu, 16 Feb 2023 23:06:56 +0000 (00:06 +0100)]
tests: check failing vdo conversion

When we detect not usable vdo on a machine, check lvconvert fails.

19 months agomakefiles: move include earlier
Zdenek Kabelac [Thu, 16 Feb 2023 22:40:25 +0000 (23:40 +0100)]
makefiles: move include earlier

19 months agoconfigure.ac: various minor updates
Zdenek Kabelac [Thu, 16 Feb 2023 22:41:02 +0000 (23:41 +0100)]
configure.ac: various minor updates

19 months agoconfigure.ac: remove unneded vars and settings
Zdenek Kabelac [Thu, 16 Feb 2023 22:39:45 +0000 (23:39 +0100)]
configure.ac: remove unneded vars and settings

19 months agoconfigure.ac: fix incorrect check for valid configuration
Zdenek Kabelac [Thu, 16 Feb 2023 22:35:26 +0000 (23:35 +0100)]
configure.ac: fix incorrect check for valid configuration

19 months agoconfigure.ac: use standardized LIBS and CFLAGS
Zdenek Kabelac [Thu, 16 Feb 2023 22:28:08 +0000 (23:28 +0100)]
configure.ac: use standardized LIBS and CFLAGS

Convert lvmlockd to use configure _LIBS and _CFLAGS for
discovered libraries.

TODO: ATM we ignore discovered libdlm and use libdlm_lt instead.
Also libseagate_ilm is hard to find unicorn for testing.

19 months agoconfigure.ac: use LIBSYSTEMD
Zdenek Kabelac [Thu, 16 Feb 2023 22:34:25 +0000 (23:34 +0100)]
configure.ac: use LIBSYSTEMD

Convert naming SYSTEMD_CFLAGS/LIB -> LIBSYSTEMD_CFLAGS/LIBS
to better fit library check for libsystemd.

Build lvmlockd with SD_NOTIFY when we have defined LIBSYSTEMD_LIBS.

19 months agodebug: missing backtraces
Zdenek Kabelac [Thu, 16 Feb 2023 12:14:33 +0000 (13:14 +0100)]
debug: missing backtraces

19 months agocov: avoid using strcpy
Zdenek Kabelac [Tue, 14 Feb 2023 19:59:56 +0000 (20:59 +0100)]
cov: avoid using strcpy

Coverity is complaining about unchecked strcpy here, which is
irelevant as we preallocate buffer to fit in copied string,
however we could actually reuse these size and use just memcpy().
So lets make some simple conversions.

19 months agolvconvert: use log_print_unless_silent
Zdenek Kabelac [Thu, 16 Feb 2023 11:18:02 +0000 (12:18 +0100)]
lvconvert: use log_print_unless_silent

For better -qq.

19 months agolvconvert: fix return codes
Zdenek Kabelac [Thu, 16 Feb 2023 12:13:32 +0000 (13:13 +0100)]
lvconvert: fix return codes

Several inverted return code resulted the command returned
a success as exit code, while the function errored internally.

20 months agopvscan: remove warning about excluded root dev
David Teigland [Wed, 15 Feb 2023 16:21:13 +0000 (10:21 -0600)]
pvscan: remove warning about excluded root dev

This was trying to warn about a misconfig where the root PV
was excluded by the devices file, but it wasn't covering all
cases.  Also, it's not very useful because the root LV is
usually activated directly in the initrd.

20 months agopvscan: filter does not need to be checked for symlink names
David Teigland [Wed, 15 Feb 2023 16:08:25 +0000 (10:08 -0600)]
pvscan: filter does not need to be checked for symlink names

With the recent use of DEVLINKS, there is no longer any real
point in checking the filter for symlink names.  Removing
this check should not change behavior with or without symlinks
in the filter.

20 months agoconfigure: update
Zdenek Kabelac [Fri, 10 Feb 2023 21:54:33 +0000 (22:54 +0100)]
configure: update

20 months agoconfigure.ac: more cleanup
Zdenek Kabelac [Sun, 12 Feb 2023 23:07:01 +0000 (00:07 +0100)]
configure.ac: more cleanup

Some variable simplification,
correct messages with PATH_SBIN.

20 months agoconfigure.ac: remove UDEV_SYSTEMD_BACKGROUND_JOBS
Zdenek Kabelac [Sat, 11 Feb 2023 14:42:31 +0000 (15:42 +0100)]
configure.ac: remove UDEV_SYSTEMD_BACKGROUND_JOBS

Missed to go with 042fbd43d25f4cc69ceec1aea4d0658bec54b6e3.

20 months agoconfigure.ac: fix support for LOCKDIDM
Zdenek Kabelac [Fri, 10 Feb 2023 21:53:43 +0000 (22:53 +0100)]
configure.ac: fix support for LOCKDIDM

Commit 7a8b7b4adde5c31c79aee8b0792cd8369652afc6 introducing lockidm
support missed to use AC_SUBST() for a variable and provide it only
in prebuilt configure, so with the next autoreconf this variable
was lost and IDM support was no longer compiled.

Fixes: https://github.com/lvmteam/lvm2/issues/98
Reported-by: Tom Prohofsky
20 months agoacinclude.m4: add local copy of PKG_CHECK_VAR
Zdenek Kabelac [Fri, 10 Feb 2023 23:26:08 +0000 (00:26 +0100)]
acinclude.m4: add local copy of PKG_CHECK_VAR

Just in case an old distro tries to autoreconf and doesn't
come with newer pkg_ macros.

20 months agotests: use PWD for dbus testing
Zdenek Kabelac [Mon, 13 Feb 2023 13:29:38 +0000 (14:29 +0100)]
tests: use PWD for dbus testing

lvmdbusd ATM is leaking too many log files.
At least try to keep them removed with test failure.

20 months agotests: skip test without mkfs.ext4
Zdenek Kabelac [Fri, 10 Feb 2023 22:07:52 +0000 (23:07 +0100)]
tests: skip test without mkfs.ext4

20 months agocov: drop unneeded header
Zdenek Kabelac [Mon, 13 Feb 2023 08:34:20 +0000 (09:34 +0100)]
cov: drop unneeded header

20 months agoman: update lvmcache cache setting
Zdenek Kabelac [Sat, 11 Feb 2023 19:32:45 +0000 (20:32 +0100)]
man: update lvmcache cache setting

Correct setting of migration_threshold and add clarify
how the user can restore default cache settings for cache policies.
Also document mq aliasing with smq for newer kernels.

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