lvm2.git
5 days agotest: add some extra tracing command main master 2180702539
Zdenek Kabelac [Wed, 26 Nov 2025 11:59:05 +0000 (12:59 +0100)]
test: add some extra tracing command

5 days agotest: fix race in wait_pvmove_lv_ready with stale lvmpolld entries
Zdenek Kabelac [Wed, 26 Nov 2025 11:39:07 +0000 (12:39 +0100)]
test: fix race in wait_pvmove_lv_ready with stale lvmpolld entries

The wait_pvmove_lv_ready function could incorrectly accept stale
finished pvmove entries from lvmpolld, causing test timeouts.

When running multiple test iterations, lvmpolld retains finished
polling operations in memory. If a new iteration creates pvmove
LVs with the same names (pvmove0, pvmove1), the wait function
would find these stale entries and consider them "ready" even
though they were from previous iterations with different LVIDs.

Fix by enhancing awk_parse_init_count_in_lvmpolld_dump to only
return init_requests_count for entries with polling_finished=0,
ensuring we wait for actual active polling operations rather
than accepting stale finished entries.

Co-Authored-By: Claude <noreply@anthropic.com>
5 days agogitlab: fix typo in test name
Zdenek Kabelac [Wed, 26 Nov 2025 09:50:33 +0000 (10:50 +0100)]
gitlab: fix typo in test name

Correct test where we ignore failure status
(as kernel is not working correctly).

5 days agotest: use aux dmsetup with integrated udev_wait 2179594552
Zdenek Kabelac [Tue, 25 Nov 2025 23:13:13 +0000 (00:13 +0100)]
test: use aux dmsetup with integrated udev_wait

5 days agogcc: fix const warnings
Zdenek Kabelac [Tue, 25 Nov 2025 21:57:35 +0000 (22:57 +0100)]
gcc: fix const warnings

New gcc emits new warnings for strstr mismatching constness.

5 days agodmeventd: reduce select timeout during shutdown
Zdenek Kabelac [Tue, 25 Nov 2025 22:54:29 +0000 (23:54 +0100)]
dmeventd: reduce select timeout during shutdown

When dmeventd receives an exit signal, monitoring threads are signaled
to terminate. The threads exit quickly (cleanup completes in ~1ms), but
the main event loop continues sleeping in select() with a 1-second timeout
before it attempts to join and cleanup the terminated threads.

This causes an approximately 1-second delay between thread cleanup
completing and the final DSO/control device release.

Fix by reducing the select() timeout from 1 second to 10ms when exiting.
This allows the main loop to quickly process thread cleanup during shutdown
while maintaining the 1-second timeout during normal operation.

5 days agotest: add aux tracing 2179188900
Zdenek Kabelac [Tue, 25 Nov 2025 18:17:24 +0000 (19:17 +0100)]
test: add aux tracing

Chasing weird error - so enable tracing of 'aux' functionality here.

5 days agotest: add some udev synchronization
Zdenek Kabelac [Tue, 25 Nov 2025 18:03:58 +0000 (19:03 +0100)]
test: add some udev synchronization

5 days agotest: fix missing lvremove
Zdenek Kabelac [Tue, 25 Nov 2025 18:16:17 +0000 (19:16 +0100)]
test: fix missing lvremove

With commit for clvmd removal 492a5a070fb08a869764afec07027abe20f9d8de
we removed 'lvremove' by mistake.

5 days agotest: rename aux.sh to aux_t.sh
Zdenek Kabelac [Tue, 25 Nov 2025 18:21:29 +0000 (19:21 +0100)]
test: rename aux.sh to aux_t.sh

Since lvm2 project seems to be git cloned also on Windows based
machine as submodule avoid using 'aux.sh' as filename in git tree.

We are still using 'aux' within out 'testing' - it's just now
being created from aux_t.sh file instead of aux.sh.

See: https://gitlab.com/lvmteam/lvm2/-/issues/37

Reported-by: Stephan T. Lavavej
6 days agogitlab: ignore some test 2176409833
Zdenek Kabelac [Mon, 24 Nov 2025 14:09:54 +0000 (15:09 +0100)]
gitlab: ignore some test

These test are failing for kernel issue - so ATM
keep them ignored when checking if tests passed.

6 days agotest: minor updates
Zdenek Kabelac [Mon, 24 Nov 2025 09:31:10 +0000 (10:31 +0100)]
test: minor updates

Drop sleep before udev_wait.
Use 'sort -u'  over 'sort | uniq'
Avoid some unnecessary 'not'.

6 days agotest: extend loop
Zdenek Kabelac [Mon, 24 Nov 2025 13:12:31 +0000 (14:12 +0100)]
test: extend loop

Add few more loop checks before considering repair is not made.

6 days agotest: add extra write
Zdenek Kabelac [Mon, 24 Nov 2025 13:28:17 +0000 (14:28 +0100)]
test: add extra write

To ensure there is some scheduled 'write' operation for faster
discovery by dmeventd there is a faulty array member for repair.

6 days agotest: count with postponning
Zdenek Kabelac [Mon, 24 Nov 2025 13:08:14 +0000 (14:08 +0100)]
test: count with postponning

dmevent may postpostne test when it gets 'error' return code
from failed action.

6 days agotest: check for lvmdbusd presence
Zdenek Kabelac [Mon, 24 Nov 2025 12:30:23 +0000 (13:30 +0100)]
test: check for lvmdbusd presence

Test checking for presence of running lvm commands would be invalid
if lvmdbusd is running in the system (which could be even unkilled
process started by the test suite itself....)

6 days agotest: add sync before checkin failure
Zdenek Kabelac [Fri, 21 Nov 2025 22:01:35 +0000 (23:01 +0100)]
test: add sync before checkin failure

6 days agotest: thin-pool is single-segment lv
Zdenek Kabelac [Mon, 24 Nov 2025 09:30:43 +0000 (10:30 +0100)]
test: thin-pool is single-segment lv

6 days agotest: fix and refactor timestamp tracking in TimedBuffer
Zdenek Kabelac [Mon, 24 Nov 2025 10:38:14 +0000 (11:38 +0100)]
test: fix and refactor timestamp tracking in TimedBuffer

Refactor TimedBuffer::push() to fix timestamp bugs and improve clarity.

The bug: timestamps were incorrectly updated when processing empty
content at buffer boundaries, causing stale timestamps to persist and
be used for subsequently arriving lines.

The fix: only set timestamp when starting a new line with actual content:
  if ( (b != e) && incomplete.second.empty() && stamp )

Also simplified the code:
- Eliminated intermediate 'now' variable - call gettime() directly
- Converted while loop to for loop for clearer iterator progression
- Reset incomplete buffer with Timespec() instead of current time

This is important for bash 'set -v' output where command text may
arrive in chunks without immediate newlines.
i.e. test like this was giving misleading time stamps:

echo 1
sleep 1
echo 2
sleep 2

Co-Authored-By: Claude <noreply@anthropic.com>
7 days agogitignore: update 2176122557
Peter Rajnoha [Mon, 24 Nov 2025 14:02:54 +0000 (15:02 +0100)]
gitignore: update

7 days agodoc: fix release dates 2176048975
Marian Csontos [Mon, 24 Nov 2025 13:28:00 +0000 (14:28 +0100)]
doc: fix release dates

9 days agopost-release 2172807471
Marian Csontos [Fri, 21 Nov 2025 19:06:45 +0000 (20:06 +0100)]
post-release

9 days agopre-release 2.03.37 2172807719 v2_03_37
Marian Csontos [Fri, 21 Nov 2025 19:06:45 +0000 (20:06 +0100)]
pre-release 2.03.37

9 days agoWHATS_NEW: update
Marian Csontos [Fri, 21 Nov 2025 18:57:49 +0000 (19:57 +0100)]
WHATS_NEW: update

9 days agomake: generate
Marian Csontos [Fri, 21 Nov 2025 18:59:45 +0000 (19:59 +0100)]
make: generate

9 days agolvscan: blockdevice option is unused 2172412680
David Teigland [Fri, 21 Nov 2025 15:42:57 +0000 (09:42 -0600)]
lvscan: blockdevice option is unused

9 days agotest: drop usage of LVM_BINARY 2172403811
Zdenek Kabelac [Fri, 21 Nov 2025 15:35:48 +0000 (16:35 +0100)]
test: drop usage of LVM_BINARY

Actually we don't want ot define this variable to better
test real installed lvm2-testsuite package

9 days agospec: build rpm with timestamp of current date
Zdenek Kabelac [Fri, 21 Nov 2025 15:35:15 +0000 (16:35 +0100)]
spec: build rpm with timestamp of current date

10 days agolvmpersist: remove unregister error message 2170817323
David Teigland [Thu, 20 Nov 2025 21:24:50 +0000 (15:24 -0600)]
lvmpersist: remove unregister error message

If PR was already stopped, stopping PR again would
generate an "sg_persist unregiser error" message
when each sg_persist command returned an error.
The actual result of the lvmpersist stop command
is determined by checking that the key is removed,
not by the sg_persist exit code.  If the key is not
removed from any device, then the command fails with
another higher level error message.

10 days agomake: generate 2170288633
Zdenek Kabelac [Thu, 20 Nov 2025 15:50:44 +0000 (16:50 +0100)]
make: generate

10 days agorevert "debug dmevent"
Zdenek Kabelac [Thu, 20 Nov 2025 15:50:13 +0000 (16:50 +0100)]
revert "debug dmevent"

Unwanted.

10 days agodebug dmevent 2170196737
Zdenek Kabelac [Wed, 19 Nov 2025 23:22:25 +0000 (00:22 +0100)]
debug dmevent

10 days agotest: umounting by dmeventd
Zdenek Kabelac [Wed, 19 Nov 2025 23:21:58 +0000 (00:21 +0100)]
test: umounting by dmeventd

Correct and simplify test.
Use LVM_BINARY for path to lvm binary used by script.

10 days agotest: aux updates
Zdenek Kabelac [Wed, 19 Nov 2025 23:22:19 +0000 (00:22 +0100)]
test: aux updates

Ssend eval stderr to null as there is no need for extra trace
of eval values in teardown.

Drop passing args to lvmpoll_dump.

11 days agotest: show lvmlockd debug info in testing
Zdenek Kabelac [Thu, 20 Nov 2025 09:51:09 +0000 (10:51 +0100)]
test: show lvmlockd debug info in testing

11 days agolvmlockd: reduce require of two SIGTERM signals in shutdown
Zdenek Kabelac [Thu, 20 Nov 2025 09:49:41 +0000 (10:49 +0100)]
lvmlockd: reduce require of two SIGTERM signals in shutdown

When lvmlockd received SIGTERM, for_each_lockspace() would signal
lockspace threads to stop and then immediately check if they were
done. Due to scheduling, threads often hadn't finished yet, causing
for_each_lockspace() to return a non-zero count, which reset
daemon_quit to 0. This required a second SIGTERM to actually exit,
adding delays to daemon shutdown in tests.

Two issues were fixed:

1. Fixed mutex synchronization for thread_done flag:
   The lockspace thread was setting ls->thread_done while holding
   only lockspaces_mutex, but for_each_lockspace() was reading it
   while holding only ls->mutex, creating a race condition. Now
   thread_done is set while holding both mutexes in the correct
   order (lockspaces_mutex first, then ls->mutex).

2. Added wait loop during daemon shutdown:
   When daemon_quit is set and threads are signaled to stop,
   for_each_lockspace() now waits up to 100ms (checking every 1ms)
   for threads to actually finish before checking their status.
   This wait only activates during daemon shutdown to avoid adding
   delays to normal lockspace operations.

In practice, threads finish in 1-2ms, so shutdown completes quickly
with a single SIGTERM.

Co-Authored-By: Claude <noreply@anthropic.com>
11 days agodeviced_ids: extended refresh period 2168538272
David Teigland [Mon, 17 Nov 2025 21:47:42 +0000 (15:47 -0600)]
deviced_ids: extended refresh period

If an automatic device ID refresh is triggered, and does not find
some device IDs, then extend the refresh behavior for a number of
seconds, configured in lvm.conf:

device_ids_refresh=<seconds>  accepts 10-600 seconds

Previous settings remain the same:

device_ids_refresh=0  disables automatic refresh
device_ids_refresh=1  enables one refresh

While the refresh period is extended, a new line appears in
system.devices: REFRESH_UNTIL=<YYYYMMDDHHMMSS>

The timestamp is written by the first lvm command to trigger the
refresh, and is set to current time + device_ids_refresh seconds.
REFRESH_UNTIL is removed when all devices are found, or when the
time expires.

11 days agotest: tune slowdown 2168190076
Zdenek Kabelac [Wed, 19 Nov 2025 17:57:31 +0000 (18:57 +0100)]
test: tune slowdown

Here we have some tricky case - ATM we are using suspend with
flushing when changing DM tables for cache volume - but this
can take too much time with our delayed device.
So trying to minimize chance to hit this race on very fast machines.

11 days agotest: improve lvmpolld_talk error messages
Zdenek Kabelac [Tue, 18 Nov 2025 21:55:16 +0000 (22:55 +0100)]
test: improve lvmpolld_talk error messages

Refactor lvmpolld_talk() to provide clearer diagnostics when connection
fails. Previously misreported socket failures as "nc not available".
Now distinguishes between missing tools, missing socket, and connection
errors with actual error details.

Co-Authored-By: Claude <noreply@anthropic.com>
11 days agotest: enhance _check_size
Zdenek Kabelac [Tue, 18 Nov 2025 22:22:55 +0000 (23:22 +0100)]
test: enhance _check_size

Grab lv_size as the first thing.
Make tests easier and drop '_not' variants.

11 days agocache: add debug message
Zdenek Kabelac [Wed, 19 Nov 2025 17:35:48 +0000 (18:35 +0100)]
cache: add debug message

12 days agolibdaemon: log which signal triggered daemon shutdown
Zdenek Kabelac [Tue, 18 Nov 2025 22:22:34 +0000 (23:22 +0100)]
libdaemon: log which signal triggered daemon shutdown

Capture and log the signal number that triggers daemon shutdown.
This helps diagnose unexpected daemon terminations during testing.

13 days agotest: add more debug for abort case 2164898522
Zdenek Kabelac [Tue, 18 Nov 2025 11:05:52 +0000 (12:05 +0100)]
test: add more debug for abort case

Improve logging to better capture lvconvert problem.

13 days agodmeventd: drop unused var
Zdenek Kabelac [Mon, 17 Nov 2025 19:53:28 +0000 (20:53 +0100)]
dmeventd: drop unused var

fdd no longer needed.

13 days agosignals: rename interruptible_usleep to sigint_usleep
Zdenek Kabelac [Tue, 18 Nov 2025 09:49:54 +0000 (10:49 +0100)]
signals: rename interruptible_usleep to sigint_usleep

The interruptible_usleep() function returned 1 on interruption (error)
and 0 on success, opposite to LVM2 convention where 1=success, 0=failure.

Changes:
- Rename to sigint_usleep() to align with sigint_*() function family
- Invert return: 1 if sleep completed, 0 if interrupted
- Update all call sites to use ! operator for error checking

This makes the API more intuitive as ! clearly indicates error path
and return values match standard LVM2 conventions.

Co-Authored-By: Claude <noreply@anthropic.com>
13 days agoWHATS_NEW 2164662652
Peter Rajnoha [Tue, 18 Nov 2025 08:59:02 +0000 (09:59 +0100)]
WHATS_NEW

13 days agomake: generate
Peter Rajnoha [Tue, 18 Nov 2025 08:54:24 +0000 (09:54 +0100)]
make: generate

13 days agolvmconfig: make it possible to print various config types in list mode
Peter Rajnoha [Fri, 14 Nov 2025 09:46:28 +0000 (10:46 +0100)]
lvmconfig: make it possible to print various config types in list mode

For example:

❯  lvmconfig --type diff
report {
compact_output=1
headings=2
}
activation {
polling_interval=1
}

❯  lvmconfig --type diff --list
report/compact_output=1
report/headings=2
activation/polling_interval=1

13 days agoconfig: add support for list mode for all cfg_def_tree_t types
Peter Rajnoha [Fri, 14 Nov 2025 08:42:07 +0000 (09:42 +0100)]
config: add support for list mode for all cfg_def_tree_t types

Before, we printed only CFG_DEF_TREE_LIST as a list instead of
structured tree. But we can also print all the other types as lists
if needed which might be more suitable.

This patch adds a 'listmode' switch to struct config_def_tree_spec
so that the config printing functions (_out_prefix_fn, _out_line_fn,
_out_suffix_fn) can then decide on the actual format.

13 days agotest: use 4k blocks for fs 2163403800
Zdenek Kabelac [Mon, 17 Nov 2025 18:13:16 +0000 (19:13 +0100)]
test: use 4k blocks for fs

13 days agotest: correcting wait shell vars
Zdenek Kabelac [Mon, 17 Nov 2025 17:55:00 +0000 (18:55 +0100)]
test: correcting wait shell vars

13 days agotest: just skip test if there are suspended devices
Zdenek Kabelac [Mon, 17 Nov 2025 16:34:48 +0000 (17:34 +0100)]
test: just skip test if there are suspended devices

13 days agotest: use should for a while
Zdenek Kabelac [Mon, 17 Nov 2025 15:17:38 +0000 (16:17 +0100)]
test: use should for a while

2 weeks agotest: aux type 2162850760
Zdenek Kabelac [Mon, 17 Nov 2025 13:44:00 +0000 (14:44 +0100)]
test: aux type

Removed extra '/'.

2 weeks agotest: missed removal of clvmd testing
Zdenek Kabelac [Mon, 17 Nov 2025 13:40:05 +0000 (14:40 +0100)]
test: missed removal of clvmd testing

2 weeks agodmfilemap: stray close code reuse
Zdenek Kabelac [Mon, 17 Nov 2025 13:36:38 +0000 (14:36 +0100)]
dmfilemap: stray close code reuse

Reuse header file from libdaemon directory here.
It has better code to close stray descriptors - since there
are systems with very high numbers of supported opened descriptors.

In case project would ever split header file would need to be copied.

Also use >=  check for valid file descriptor.

2 weeks agoWHATS_NEW: update 2162742590
Zdenek Kabelac [Mon, 17 Nov 2025 12:55:27 +0000 (13:55 +0100)]
WHATS_NEW: update

2 weeks agotest: aux rename wait variable
Zdenek Kabelac [Mon, 17 Nov 2025 00:12:03 +0000 (01:12 +0100)]
test: aux rename wait variable

2 weeks agotest: rework bare wait commands
Zdenek Kabelac [Sun, 16 Nov 2025 23:39:26 +0000 (00:39 +0100)]
test: rework bare wait commands

Replace bare 'wait' commands with specific PID waiting to prevent
test hangs when base shell runs process in the background.

When tests use 'wait' without arguments, it waits for ALL background
processes. This may causes tests to hang indefinitely.
Fix by capturing background job PIDs and waiting
only for those specific processes.

Pattern changed from:
  some_command &
  wait

To:
  some_command &
  SOME_PID=$!
  wait "$SOME_PID" || true

The '|| true' handles cases where the process has already exited.

Co-Authored-By: Claude <noreply@anthropic.com>
2 weeks agotest: aux kill_sleep_kill
Zdenek Kabelac [Mon, 17 Nov 2025 00:13:15 +0000 (01:13 +0100)]
test: aux kill_sleep_kill

2 weeks agotest: remove clvmd testing infrastructure
Zdenek Kabelac [Sat, 15 Nov 2025 19:56:26 +0000 (20:56 +0100)]
test: remove clvmd testing infrastructure

Remove all clvmd-related test code since clvmd was removed from lvm2.
This includes prepare_clvmd(), SKIP_WITH/WITHOUT_CLVMD variables,
LOCAL_CLVMD conditional blocks, and outdated comments. Tests now run
unconditionally with non-cluster behavior.

Co-Authored-By: Claude <noreply@anthropic.com>
2 weeks agotest: simplify corrupt_dev() function
Zdenek Kabelac [Sat, 15 Nov 2025 13:09:52 +0000 (14:09 +0100)]
test: simplify corrupt_dev() function

Replace strings+grep with grep -oba for byte pattern search. This is
more direct and efficient - grep finds the byte offset, we extract it
with cut, and use dd to overwrite at that position. Also add
conv=notrunc to prevent truncation.

2 weeks agotest: aux easier code for building config
Zdenek Kabelac [Fri, 14 Nov 2025 12:45:16 +0000 (13:45 +0100)]
test: aux easier code for building config

For older bash use more simple code.

Co-Authored-By: Claude <noreply@anthropic.com>
2 weeks agodaemonize: fix file descriptor leaks on error paths
Zdenek Kabelac [Mon, 17 Nov 2025 09:32:50 +0000 (10:32 +0100)]
daemonize: fix file descriptor leaks on error paths

Fix resource leaks in daemonization code across multiple daemons by
properly closing /dev/null file descriptor on all error paths.

Changes across all daemonizing code:
- Skip dup2() when fd already equals target (no-op optimization)
- Close fd on error paths before exit (prevents leak)
- Add Coverity annotations on both error and success paths
- Use consistent == -1 pattern for dup2() error checks
- Remove explicit close(0/1/2) in cmirrord (dup2 handles atomically)

This eliminates resource leak warnings from static analyzers while
maintaining correct daemonization behavior.

2 weeks agolvmpolld: signal child processes before pthread_cancel
Zdenek Kabelac [Mon, 17 Nov 2025 00:04:58 +0000 (01:04 +0100)]
lvmpolld: signal child processes before pthread_cancel

Fix lvmpolld shutdown to properly terminate child lvpoll processes
before cancelling monitoring threads.

Previously, pthread_cancel was called on monitoring threads while
their child processes were still running. This could leave orphaned
lvpoll processes and cause shutdown delays.

Now send SIGTERM to child lvpoll processes first, then immediately
cancel the monitoring threads which will reap the children during
their cleanup.

This significantly reduces shutdown time in tests with lvmpolld.

Co-Authored-By: Claude <noreply@anthropic.com>
2 weeks agolibdaemon: improve graceful shutdown of client threads
Zdenek Kabelac [Sun, 16 Nov 2025 23:45:54 +0000 (00:45 +0100)]
libdaemon: improve graceful shutdown of client threads

Optimize daemon shutdown to allow client threads to exit quickly
without blocking on socket operations, and refactor code to improve
maintainability.

Functional improvements:

1. Close listening socket BEFORE waiting for client threads
   - Prevents new connections during shutdown
   - Unlinks socket file earlier in shutdown sequence

2. Shutdown all client sockets with SHUT_RDWR
   - Interrupts blocking read() calls in client threads
   - Allows threads to exit immediately instead of hanging
   - Uses shutdown() to wake blocked threads, not just close()

3. Add early exit check in client thread loop
   - Check _shutdown_requested at start of while loop
   - Allows threads to exit gracefully when shutdown is initiated

Code organization improvements:

4. Eliminate goto statement
   - Replace "goto out" with direct function calls
   - Improves code readability and control flow clarity
   - Both daemon_main and daemon_init paths now follow same pattern

5. Extract _shutdown_sockets() helper function
   - Centralizes all socket shutdown logic in one place
   - Handles both listening socket close and client socket shutdown
   - Respects _systemd_activation flag for socket file unlinking
   - Includes comprehensive logging for shutdown operations

6. Extract _daemon_cleanup() helper function
   - Common cleanup path for both daemon_main and normal execution
   - Handles daemon_fini callback, logging, pidfile removal
   - Eliminates code duplication between execution paths

This allows daemon to shutdown cleanly without client threads
blocking on socket operations, enabling faster test execution and
cleaner shutdown sequences.

Co-Authored-By: Claude <noreply@anthropic.com>
2 weeks agocov: missing free
Zdenek Kabelac [Mon, 17 Nov 2025 09:47:52 +0000 (10:47 +0100)]
cov: missing free

With recent commit f7a308d2e71e332a9cbc01d917182ba562943b77
we missed to relase allocated idname.

2 weeks agodmeventd: fix missing lock when reading _timeout_thread_id
Zdenek Kabelac [Mon, 17 Nov 2025 09:48:01 +0000 (10:48 +0100)]
dmeventd: fix missing lock when reading _timeout_thread_id

Acquire _timeout_mutex before reading _timeout_thread_id to match
the locking pattern used when writing this variable. While the
variable is only written once and never changed, static analyzers
flag the inconsistent lock usage.

Release mutex before pthread_join() to avoid holding locks during
blocking operations.

2 weeks agomake: generate 2158653189
Zdenek Kabelac [Fri, 14 Nov 2025 10:19:15 +0000 (11:19 +0100)]
make: generate

2 weeks agotest: we need fs on origin as well 2158651752
Zdenek Kabelac [Fri, 14 Nov 2025 10:04:10 +0000 (11:04 +0100)]
test: we need fs on origin as well

Last commit made fs only on snapshot - but it's needed also on origin.

2 weeks agotest: bash clenaups 2158506479
Zdenek Kabelac [Thu, 13 Nov 2025 22:54:30 +0000 (23:54 +0100)]
test: bash clenaups

Various improvemetns to make shellcheck less complaining.

2 weeks agotest: check simplified
Zdenek Kabelac [Thu, 13 Nov 2025 14:17:18 +0000 (15:17 +0100)]
test: check simplified

We do not need to use 5 second sleep here for checking
opened device cannot be removed - just check with mounted
snapshot - which will also be seen as opened device - but
with known holder - thus 5sec retry loop is avoided.

2 weeks agotest: require newer target
Zdenek Kabelac [Thu, 13 Nov 2025 13:51:11 +0000 (14:51 +0100)]
test: require newer target

2 weeks agoman: update pvmove for pvmove_max_segment_size_mb
Zdenek Kabelac [Wed, 12 Nov 2025 22:56:00 +0000 (23:56 +0100)]
man: update pvmove for pvmove_max_segment_size_mb

2 weeks agodmeventd: cleanup
Zdenek Kabelac [Thu, 13 Nov 2025 17:10:42 +0000 (18:10 +0100)]
dmeventd: cleanup

Show help options in alphabetic order.

2 weeks agovgchange: limit persist stop in lockstop 2157562827
David Teigland [Thu, 13 Nov 2025 19:55:08 +0000 (13:55 -0600)]
vgchange: limit persist stop in lockstop

"vgchange --lockstop --persist stop" should skip the
persist_stop() on a VG without PR required, otherwise
it hits errors attempting to stop PR on VGs where it's
not used.

2 weeks agotest: select-report: fix checking of failure scenarios 2156259285
Peter Rajnoha [Thu, 13 Nov 2025 08:53:36 +0000 (09:53 +0100)]
test: select-report: fix checking of failure scenarios

2 weeks agoman: update lvmdevices refresh info 2155453664
David Teigland [Wed, 12 Nov 2025 21:25:53 +0000 (15:25 -0600)]
man: update lvmdevices refresh info

2 weeks agotest: fix lots of not usage 2154464032
Zdenek Kabelac [Tue, 11 Nov 2025 23:44:18 +0000 (00:44 +0100)]
test: fix lots of not usage

Added lots of FIXME - since these tests
are not working properly - but ATM it's unclear
what they are supposed to test.

2 weeks agotest: fix use of not mimages|mirrorlog....
Zdenek Kabelac [Wed, 12 Nov 2025 12:24:28 +0000 (13:24 +0100)]
test: fix use of not mimages|mirrorlog....

2 weeks agotest: fix use of not is_lv_opened_
Zdenek Kabelac [Wed, 12 Nov 2025 12:09:09 +0000 (13:09 +0100)]
test: fix use of not is_lv_opened_

Correct the test and wait till dmeventd really umounts directory.

2 weeks agotest: fix typo group to grep
Zdenek Kabelac [Wed, 12 Nov 2025 11:53:20 +0000 (12:53 +0100)]
test: fix typo group to grep

We actually want to use 'not grep'.

2 weeks agotest: fix use of not sel
Zdenek Kabelac [Wed, 12 Nov 2025 11:45:59 +0000 (12:45 +0100)]
test: fix use of not sel

Looks like we need to fix 101%.

2 weeks agotest: fix use of not test
Zdenek Kabelac [Wed, 12 Nov 2025 11:00:53 +0000 (12:00 +0100)]
test: fix use of not test

Fixing 'not ' and making it more readable.
Handle blkid error code 2.

2 weeks agotest: fix use of not fill
Zdenek Kabelac [Wed, 12 Nov 2025 09:58:39 +0000 (10:58 +0100)]
test: fix use of not fill

2 weeks agomake: generate
Zdenek Kabelac [Wed, 12 Nov 2025 12:24:44 +0000 (13:24 +0100)]
make: generate

2 weeks agoconfig: stop logging that a default value is used 2153071560
David Teigland [Tue, 11 Nov 2025 20:36:28 +0000 (14:36 -0600)]
config: stop logging that a default value is used

default values are not interesting to see

2 weeks agolvmlockd: fix lock_args flags usage with dlm 2153053463
David Teigland [Tue, 11 Nov 2025 20:24:49 +0000 (14:24 -0600)]
lvmlockd: fix lock_args flags usage with dlm

lockd_lockargs_get_meta_flags() only applies to sanlock, and
would cause dlm lockspaces to fail beause it doesn't recognize
the cluster name in a dlm VG lock_args string.

2 weeks agolvmlockd: fix to allow for no vg_args 2153005580
David Teigland [Tue, 11 Nov 2025 19:46:46 +0000 (13:46 -0600)]
lvmlockd: fix to allow for no vg_args

2 weeks agoman: update lvmdevices 2152814922
David Teigland [Mon, 10 Nov 2025 21:51:56 +0000 (15:51 -0600)]
man: update lvmdevices

2 weeks agolvmdevices: update force option
David Teigland [Fri, 7 Nov 2025 01:28:25 +0000 (19:28 -0600)]
lvmdevices: update force option

When lvmdevices --update doesn't see any reason to update
system.devices, it doesn't update.  Let the user force an
update in case they see a reason to do it.

2 weeks agodevice_id: prevent incorrect dm uuid idtype
David Teigland [Thu, 6 Nov 2025 22:45:28 +0000 (16:45 -0600)]
device_id: prevent incorrect dm uuid idtype

If a dm-uuid-based device was added to system.devices, and
the wrong dm-based type was specified, then the system.devices
entry would have the correct idname but the wrong idtype. e.g.

lvmdevices --adddev /dev/mapper/mpatha --deviceidtype crypt_uuid
would add an entry with: IDTYPE=crypt_uuid IDNAME=mpath-<uuid>
rather than the correct: IDTYPE=mpath_uuid IDNAME=mpath-<uuid>

This mistaken type would not affect lvm, and the device would
be entirely usable.  The dm-based types (mpath, crypt, lvmlv)
were interchangable because they all read the device id from
the same dm/uuid sysfs file.

Fix this by adding a missing check that the dm uuid prefix is
correct for the specified idtype.  Also, accept an existing
system.devices file which contains this mistake.

2 weeks agolvmdevices: new option --listids shows id types and names for dev
David Teigland [Thu, 6 Nov 2025 21:30:12 +0000 (15:30 -0600)]
lvmdevices: new option --listids shows id types and names for dev

2 weeks agolvmdevices: new option --delid to delete device by device_id
David Teigland [Mon, 10 Nov 2025 22:31:30 +0000 (16:31 -0600)]
lvmdevices: new option --delid to delete device by device_id

2 weeks agolvmdevices: new option --addid to add device by device_id
David Teigland [Wed, 5 Nov 2025 21:55:37 +0000 (15:55 -0600)]
lvmdevices: new option --addid to add device by device_id

2 weeks agotest: aux improve daemon killing 2150888794
Zdenek Kabelac [Mon, 10 Nov 2025 23:03:15 +0000 (00:03 +0100)]
test: aux improve daemon killing

When daemon takes multiple pids, handle them via array.
(as recently made with lvmlockd)

2 weeks agomakefile: indent
Zdenek Kabelac [Mon, 10 Nov 2025 23:06:32 +0000 (00:06 +0100)]
makefile: indent

2 weeks agogcc: fix fp complain about use of unit
Zdenek Kabelac [Mon, 10 Nov 2025 22:27:30 +0000 (23:27 +0100)]
gcc: fix fp complain about use of unit

Just quiting warning.

2 weeks agovdo: add missing synchronization
Zdenek Kabelac [Mon, 10 Nov 2025 22:10:31 +0000 (23:10 +0100)]
vdo: add missing synchronization

After wiping, formating and deactivating vdopool volume,
we should wait on udev before we continue and activate
same volume again with different UUID.

2 weeks agorevert "test: update for new vg attr field" 2150444626
Zdenek Kabelac [Mon, 10 Nov 2025 18:22:31 +0000 (19:22 +0100)]
revert "test: update for new vg attr field"

This reverts commit 2855526824fd815bb0394eda3973d34cc4b985f7
for incorrect merging.
We already have 85bef39ed00dd4f657cb7781f2754f5bb5c5ac86.

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