]> sourceware.org Git - lvm2.git/log
lvm2.git
10 months agotests: old way to disable copy contructor 1036898694
Zdenek Kabelac [Sat, 14 Oct 2023 21:37:38 +0000 (23:37 +0200)]
tests: old way to disable copy contructor

Mark them private.

10 months agotests: io stream class saver 1036894333
Zdenek Kabelac [Sat, 14 Oct 2023 14:56:26 +0000 (16:56 +0200)]
tests: io stream class saver

Restore io stream when changed by modifiers.
Also simplify getenv access.

10 months agotests: extend the usability for older systems
Zdenek Kabelac [Sat, 14 Oct 2023 19:26:39 +0000 (21:26 +0200)]
tests: extend the usability for older systems

Extend the test a bit futher so we can keep logic of resize
working similarly well for older and newer systems.

Test uses new 'aux have_fsinfo'function to regnize compiled
version of lvm.

10 months agotests: aux add have_fsinfo
Zdenek Kabelac [Sat, 14 Oct 2023 20:56:22 +0000 (22:56 +0200)]
tests: aux add have_fsinfo

Add function to detect whether lvm2 was compiled with
blkid.h with BLKID_SUBLKS_FSINFO

Currently it can be detected by support of '--fs checksize'.

10 months agocov: avoid resoure leaks on error path
Zdenek Kabelac [Sat, 14 Oct 2023 14:55:46 +0000 (16:55 +0200)]
cov: avoid resoure leaks on error path

10 months agocov: check next_get token exists
Zdenek Kabelac [Sat, 14 Oct 2023 14:54:54 +0000 (16:54 +0200)]
cov: check next_get token exists

10 months agocov: enusure pointer to idname exists
Zdenek Kabelac [Sat, 14 Oct 2023 14:53:58 +0000 (16:53 +0200)]
cov: enusure pointer to idname exists

10 months agoresize: reduce without prompt for no-fs case
Zdenek Kabelac [Sat, 14 Oct 2023 19:19:21 +0000 (21:19 +0200)]
resize: reduce without prompt for  no-fs case

Apply the same logic for 'lvreduce' which exists for newer
systems (compiled with HAVE_BLKID_SUBLKS_FSINFO)
also for older systems for one very common practical case where
the active LV does not have any blkid known signature/filesystem.

New variant recognized this situation and allowed to proceed
without requesting a prompt, while the older variant always
requested confirmation prompt.

With this patch command now works equily for both variants
for 'active LV' without signature and allows to reduce LV
without prompting.

11 months agoWHATS_NEW{_DM}: update 1036471707
Zdenek Kabelac [Fri, 13 Oct 2023 18:56:39 +0000 (20:56 +0200)]
WHATS_NEW{_DM}: update

11 months agoconfigure: update
Zdenek Kabelac [Fri, 13 Oct 2023 20:03:40 +0000 (22:03 +0200)]
configure: update

11 months agoconfigure.ac: enhancemetns
Zdenek Kabelac [Fri, 13 Oct 2023 19:28:56 +0000 (21:28 +0200)]
configure.ac: enhancemetns

Simplify configuration with enabling options:
- For --enable-dmeventd automatically --enable-cmdlib.
- For --enable-dbus-service auto --enable-notify-dbus.

Fix check linux/fiemap.h for dmfilemapd.

11 months agodebug: initialize empty string
Zdenek Kabelac [Fri, 13 Oct 2023 18:57:02 +0000 (20:57 +0200)]
debug: initialize empty string

11 months agopool: fix recalculate of pool chunk_size
Zdenek Kabelac [Fri, 13 Oct 2023 22:27:04 +0000 (00:27 +0200)]
pool: fix recalculate of pool chunk_size

Before checking seg_type of the first area, check there is
some existing area.
Since we now support error and zero segtypes, these do not have
any PV area present.

11 months agolibdm: versionion symbol for enhanced dm_task_run
Zdenek Kabelac [Fri, 13 Oct 2023 23:02:09 +0000 (01:02 +0200)]
libdm: versionion symbol for enhanced dm_task_run

When new app links with current dm_task_run() that propagates ioctl()
errno - ensure it will not be usable with older version without this
supported feature.

11 months agomakefiles: fix missing libs 1036063539
Zdenek Kabelac [Fri, 13 Oct 2023 14:34:48 +0000 (16:34 +0200)]
makefiles: fix missing libs

Recent commit  dc8837f07982663add6c1f4d87fb79fa9b6c8857
became actually to strict - we always want to build lib.a files.

11 months agodmfilemapd: ensure program_id is initialized
Zdenek Kabelac [Fri, 13 Oct 2023 14:00:08 +0000 (16:00 +0200)]
dmfilemapd: ensure program_id is initialized

Assing program_id before return 1,
and also stay C99 compatible with size_t declaration.

11 months agotests: handle empty table better 1035945506
Zdenek Kabelac [Fri, 13 Oct 2023 12:59:42 +0000 (14:59 +0200)]
tests: handle empty table better

11 months agoconfigure: update 1035915561
Zdenek Kabelac [Thu, 12 Oct 2023 17:25:04 +0000 (19:25 +0200)]
configure: update

11 months agotests: skip for missing mkfs.xfs
Zdenek Kabelac [Fri, 13 Oct 2023 12:33:39 +0000 (14:33 +0200)]
tests: skip for missing mkfs.xfs

11 months agotests: comment about version checking to aux.sh
Zdenek Kabelac [Tue, 10 Oct 2023 20:07:30 +0000 (22:07 +0200)]
tests: comment about version checking to aux.sh

If there would be futher version checking needed,
make a notice there are now two -V formats.

11 months agotests: increase delay
Zdenek Kabelac [Thu, 12 Oct 2023 23:49:04 +0000 (01:49 +0200)]
tests: increase delay

11 months agotests: some minor enhancement of udev test
Zdenek Kabelac [Sun, 8 Oct 2023 20:06:56 +0000 (22:06 +0200)]
tests: some minor enhancement of udev test

Reduce pgrep usage.

11 months agotests: fail tests when machine have suspended devs
Zdenek Kabelac [Sun, 8 Oct 2023 20:03:07 +0000 (22:03 +0200)]
tests: fail tests when machine have suspended devs

If the machine has suspended devices present in the DM table,
it's better to fail the test.

11 months agotests: use function to restart dmeventd
Zdenek Kabelac [Sat, 7 Oct 2023 08:39:56 +0000 (10:39 +0200)]
tests: use function to restart dmeventd

Move restart to single function.

11 months agoconfigure.ac: version checking for new dmpd tools
Zdenek Kabelac [Tue, 10 Oct 2023 20:03:50 +0000 (22:03 +0200)]
configure.ac: version checking for new dmpd tools

New rust version of thin_check returns now also binary name in version,
so adapt the version checking to handle this variant.

11 months agoconfigure.ac: support for static linking
Zdenek Kabelac [Thu, 12 Oct 2023 17:19:01 +0000 (19:19 +0200)]
configure.ac: support for static linking

Introduce couple configure options:

--without-blkid
--without-systemd
--without-udev

These can be useful for build with --disable-shared
where those libraries are often distibuted without
their static libraries.

However such compiled static binaries then have limitted usage.

11 months agoconfigure.ac: handle --disable-shared flag
Adam Joseph [Fri, 22 Sep 2023 06:47:38 +0000 (23:47 -0700)]
configure.ac: handle --disable-shared flag

Since LVM 2.02 it appears that compiling LVM on a platform which
lacks a shared library linker/loader will fail to produce any
binaries (dmsetup, lvm2, etc).

Adds support for the standard --disable-shared flag, and
use it to disable attempts at building shared libraries.

Modified-by: zkabelac
11 months agodevice_mapper: pair with libdm _create_and_load_v4
Zdenek Kabelac [Fri, 13 Oct 2023 11:18:13 +0000 (13:18 +0200)]
device_mapper: pair with libdm _create_and_load_v4

Apply same enhancement also for internal device mapper library
from the commit: 25ef7a7b1a876f491bd361369423d7309358f6c1.

11 months agodmstats: only generate aux data separator if group tag is defined 2/head 1034547064 1034874341
Bryn M. Reeves [Thu, 28 Sep 2023 14:06:24 +0000 (15:06 +0100)]
dmstats: only generate aux data separator if group tag is defined

Fix a bug in _stats_set_aux() that causes bogus data to appear
in the 'userdata' field of stats reports when previously grouped
regions are ungrouped:

/var/tmp/File With Spaces: Created new group with 1 region(s) as group ID 0.

Removed group ID 0 on fedora-root

Name             GrpID RgID ObjType RgStart RgSize  #Areas ArSize  ProgID  UserData
fedora-root          -    0 region    6.39g 100.00m      1 100.00m dmstats #-
                                                                           ^^
This is the aux_data separator character followed by empty user data.
The _stats_set_aux() function should only emit the separator if
there is a valid group descriptor for the region.

11 months agoAdd more dmstats integration tests
Bryn M. Reeves [Tue, 26 Sep 2023 14:16:02 +0000 (15:16 +0100)]
Add more dmstats integration tests

Add new tests for filemap, group/ungroup, histograms, precise timestamps
and userdata.

11 months agoQuote path value in --filemap debug messages
Bryn M. Reeves [Thu, 31 Aug 2023 16:08:21 +0000 (17:08 +0100)]
Quote path value in --filemap debug messages

Improves readability of debugging output when file paths contain
whitespace.

11 months agodmstats: support group aliases with embedded whitespace
Bryn M. Reeves [Mon, 25 Sep 2023 17:38:13 +0000 (18:38 +0100)]
dmstats: support group aliases with embedded whitespace

Creating a group with a name that contains whitespace causes an error in
the @stats_set_aux message:

device-mapper: message ioctl on  (253:0) failed: Invalid argument
Could not create regions from file /var/tmp/File With Spaces.

Fix this by quoting the group alias and backslash escaping any
embedded space characters.

11 months agoRefactor _stats_parse_list_region()
Bryn M. Reeves [Mon, 25 Sep 2023 15:14:57 +0000 (16:14 +0100)]
Refactor _stats_parse_list_region()

Refactor the function that parses regions from @stats_list data to
separate the parsing of variable string data from the fixed parts
of the @stats_list response.

11 months agoRename _stats_set_aux() argument
Bryn M. Reeves [Mon, 25 Sep 2023 15:13:53 +0000 (16:13 +0100)]
Rename _stats_set_aux() argument

The aux_data argument of _stats_set_aux() is the user-defined data
to be stored with the stats region. Rename the argument to better
reflect this.

11 months agodmstats: use correct value for precise in _stats_create_file()
Bryn M. Reeves [Thu, 24 Aug 2023 17:01:19 +0000 (18:01 +0100)]
dmstats: use correct value for precise in _stats_create_file()

11 months agoClean up group struct in _stats_create_group() error path
Bryn M. Reeves [Thu, 31 Aug 2023 15:59:02 +0000 (16:59 +0100)]
Clean up group struct in _stats_create_group() error path

Fix a double free in the error path from _stats_create_group() by
clearing the group struct embedded in the dm_stats handle before
returning:

    device-mapper: message ioctl on  (253:0) failed: Invalid argument
    Could not create regions from file /var/tmp/File With Spaces.
    free(): double free detected in tcache 2
    Aborted (core dumped)

11 months ago_create_and_load_v4: propagate ioctl errors back to caller 3/head 1034541995
Lennart Poettering [Wed, 11 Oct 2023 13:35:33 +0000 (15:35 +0200)]
_create_and_load_v4: propagate ioctl errors back to caller

When setting up dm-verity devices with signed root hashes it is very
useful to have a recognizable error code when a key is not present in
the kernel keyring. Turns out the kernel actually returns ENOKEY in that
case, but this gets lost in libdevmapper.

This fixes this: in _create_and_load_v4() it copies the error code from
the ioctl from the sub-tasks back to the main task field on failure.

This is not enough to make libcryptsetup actually propagate the ENOKEY
correctly, that also needs a patch to libcryptsetup, but this is part of
the puzzle.

11 months agodevice_id: fix hints with device ids 1032289643
David Teigland [Mon, 9 Oct 2023 21:08:18 +0000 (16:08 -0500)]
device_id: fix hints with device ids

Fix some interactions between device IDs and hints.  Hints
may limit the scanned devices which should not always trigger
a search for the PVs that were intentionally not scanned.
Hints should also be invalidated if they contain a device
that's become excluded by an internal filter such as the
device_id filter.

11 months agodevice_id: refresh devname idnames if any are not found
David Teigland [Tue, 10 Oct 2023 16:44:31 +0000 (11:44 -0500)]
device_id: refresh devname idnames if any are not found

Search for a PV on other devices if it's a devname entry
and the name doesn't exist on the system.  This restores
code that should not have been removed in commit 1901a47df
"device_id: fix conditions for device_ids_refresh"

11 months agodevice_id: fix lvmdevices update segfault 1028429699
David Teigland [Fri, 6 Oct 2023 17:24:34 +0000 (12:24 -0500)]
device_id: fix lvmdevices update segfault

From commit 1901a47df12
"device_id: fix conditions for device_ids_refresh"

11 months agotests: delay_dev to slowdown pvmove 1027805700
Zdenek Kabelac [Thu, 5 Oct 2023 21:17:04 +0000 (23:17 +0200)]
tests: delay_dev to slowdown pvmove

throtling mirror device is becoming useless with faster CPUS,
as way to many data can be transferred before throttling steps-in.
So prefer using  dm-delay for test and keep throttling as fallback.

11 months agotests: skip test if the memory cannot be allocated in kernel
Zdenek Kabelac [Thu, 5 Oct 2023 20:59:31 +0000 (22:59 +0200)]
tests: skip test if the memory cannot be allocated in kernel

11 months agotests: ignore failure from stop
Zdenek Kabelac [Thu, 5 Oct 2023 20:59:00 +0000 (22:59 +0200)]
tests: ignore failure from stop

11 months agotests: add delay to let dmevent initalize
Zdenek Kabelac [Thu, 5 Oct 2023 20:58:05 +0000 (22:58 +0200)]
tests: add delay to let dmevent initalize

There is short time period needed to fully initilize dmeventd and
handle 'kill' signal.

11 months agodebug: fix message severity levels
Zdenek Kabelac [Thu, 5 Oct 2023 22:00:36 +0000 (00:00 +0200)]
debug: fix message severity levels

Add some missing WARNS and correct some severity levels.

11 months agodevice_id: fix conditions for device_ids_refresh 1027316630
David Teigland [Thu, 5 Oct 2023 20:22:32 +0000 (15:22 -0500)]
device_id: fix conditions for device_ids_refresh

Fix commit 847f1dd99cb74
"device_id: rewrite validation of devname entries"

which began calling device_ids_refresh() in cases where it
was unnecessary, leading to extra PV searches and warnings.
Specifically, a command like "lvs <vg>" would use the hints
file to scan only devices for the named VG.  This means that
scanning other PVs would be skipped, and device IDs of those
PVs could not be validated because there are no PVID values
to verify.  This missing info would cause messages about
the missing info, and would cause device_ids_refresh to
search for the PVs that had been intentionally skipped.

11 months agotests: previous patch wrongly replaced tab 1026105945
Zdenek Kabelac [Wed, 4 Oct 2023 23:10:13 +0000 (01:10 +0200)]
tests: previous patch wrongly replaced tab

Tab overwrote first char instead of insert.
Actually it should be a single function.

11 months agotests: more complex check for resize of reiserfs 1026064629
Zdenek Kabelac [Wed, 4 Oct 2023 21:54:07 +0000 (23:54 +0200)]
tests: more complex check for resize of reiserfs

Detection of how the command is supposed to behave actually depends on
the configure.h compilation and whether binary is compiled with
HAVE_BLKID_SUBLKS_FSINFO.

This makes it somewhat complicated in a way how to recognize which
behavior is expected.

Currently we can eventually recognize by checking error output
of some 'random' lvresize command and see if the --fs checksize is
actually recognized and rejected.  If this changes - test needs
to be updated.

11 months agotests: utils use read without slash mangling
Zdenek Kabelac [Wed, 4 Oct 2023 20:14:13 +0000 (22:14 +0200)]
tests: utils use read without slash mangling

Do not use backslash as escape character for path.

11 months agotests: better coredump lookup
Zdenek Kabelac [Wed, 4 Oct 2023 19:02:53 +0000 (21:02 +0200)]
tests: better coredump lookup

Some bash version may have problem with contruct:
done < <(

Replace it with array reading.

11 months agotests: retry removal
Zdenek Kabelac [Wed, 4 Oct 2023 15:46:23 +0000 (17:46 +0200)]
tests: retry removal

After umout we may race with system udevd rule - so
just retry once again after 1s sleep - that should be
enough - otherwise we would need some loop here...

11 months agotests: convert to heredoc string
Zdenek Kabelac [Wed, 4 Oct 2023 15:44:07 +0000 (17:44 +0200)]
tests: convert to heredoc string

Multi-line echo command are problemat across variety of bash version
and may have produce shorter results.
Convert to stable heredoc string with 'tab' skipping <<- for better
formating.

11 months agofilters: leave device_id_sysfs_dir only for device_id
Zdenek Kabelac [Wed, 4 Oct 2023 20:02:10 +0000 (22:02 +0200)]
filters: leave device_id_sysfs_dir only for device_id

Do not use filters for sysfs with device_id.

11 months agotests: fix reader for runner 1024641106
Zdenek Kabelac [Tue, 3 Oct 2023 19:28:34 +0000 (21:28 +0200)]
tests: fix reader for runner

Since we now push more data into journal, parser reading this file
for --continue mode need to be adapted.
Also properly align batch mode with '.' for max test length name.

11 months agofilters: sysfs use device_id_sysfs_dir
Zdenek Kabelac [Tue, 3 Oct 2023 16:39:39 +0000 (18:39 +0200)]
filters: sysfs use device_id_sysfs_dir

This is mainly useful in internal testing - but keep sysfs dir also
passed to filter.
Also drop use of static variable within sysfs filter and base whole
config at creation time.

11 months agotests: old g++ needs explicit cast 1024060700
Zdenek Kabelac [Tue, 3 Oct 2023 10:59:38 +0000 (12:59 +0200)]
tests: old g++ needs explicit cast

11 months agotests: give some more time to die 1024041334
Zdenek Kabelac [Tue, 3 Oct 2023 10:43:21 +0000 (12:43 +0200)]
tests: give some more time to die

VMs are not top performers here...

11 months agotests: restore old fsync method
Zdenek Kabelac [Tue, 3 Oct 2023 10:41:30 +0000 (12:41 +0200)]
tests: restore old fsync method

New code isn't portable across wider range of c++ compilers.

11 months agotests: give dmeventd some time to restart 1023538850
Zdenek Kabelac [Mon, 2 Oct 2023 23:51:29 +0000 (01:51 +0200)]
tests: give dmeventd some time to restart

We need to wait for a new dmeventd as fork new daemon from bash.

11 months agotests: add RT_LIBS for older g++
Zdenek Kabelac [Mon, 2 Oct 2023 23:47:17 +0000 (01:47 +0200)]
tests: add RT_LIBS for older g++

11 months agotests: restore fsync for runner
Zdenek Kabelac [Mon, 2 Oct 2023 23:36:20 +0000 (01:36 +0200)]
tests: restore fsync for runner

Restore fsync() call For more accurate tracking by buildbot.
Try different rather tricky way of static_cast to use
already opened FD instead of seperate open(),fsync(),close().

It's pretty strange there is no way to enforce fsync() for
C++ iostreams.  Flush() is actully not equal.

11 months agomake: generate 1023477551
Zdenek Kabelac [Mon, 2 Oct 2023 21:09:22 +0000 (23:09 +0200)]
make: generate

11 months agotests: skip some tests on valgrind run
Zdenek Kabelac [Mon, 2 Oct 2023 20:42:36 +0000 (22:42 +0200)]
tests: skip some tests on valgrind run

Skip some tests that takes too much time with valgrind pass.

11 months agotests: aux use dmsetup concise
Zdenek Kabelac [Mon, 2 Oct 2023 16:12:33 +0000 (18:12 +0200)]
tests: aux use dmsetup concise

A bit faster creation of multiple devices with dmsetup --concise.
Also solves the 'cookies' handling.

11 months agotests: faster creation of 200 PVs
Zdenek Kabelac [Mon, 2 Oct 2023 14:41:52 +0000 (16:41 +0200)]
tests: faster creation of 200 PVs

Use already existing optmized aux version

11 months agotests: runner compatible with older g++
Zdenek Kabelac [Mon, 2 Oct 2023 20:42:09 +0000 (22:42 +0200)]
tests: runner compatible with older g++

Avoid using some constructs available with newer C++ only.
Moving timing into to journal instead of list file.

11 months agotests: better handling of system dir 1022870244
Zdenek Kabelac [Mon, 2 Oct 2023 12:10:03 +0000 (14:10 +0200)]
tests: better handling of system dir

Use more consistenly location of etc dir in tests.
Read value of etc dir via lvm cmd.

11 months agotests: reiserfs needs fsadm
Zdenek Kabelac [Mon, 2 Oct 2023 12:08:33 +0000 (14:08 +0200)]
tests: reiserfs needs fsadm

With plain -r we currenly issue an error message.

11 months agotests: reduce slowing down of device
Zdenek Kabelac [Mon, 2 Oct 2023 12:03:14 +0000 (14:03 +0200)]
tests: reduce slowing down of device

Too high value currently may result in occasional race problem with
device deactivation.

11 months agotests: aux reuse already pgrep of dmeventd
Zdenek Kabelac [Sat, 30 Sep 2023 21:18:04 +0000 (23:18 +0200)]
tests: aux reuse already pgrep of dmeventd

Test already checks if there is any dmeventd running in the system
in the inittest.

11 months agotests: enhance runner
Zdenek Kabelac [Mon, 2 Oct 2023 11:59:50 +0000 (13:59 +0200)]
tests: enhance runner

Add Timespec class to increase time resolution to miliseconds
(can switch to microseconds if ever needed).
Use more const and const_interators and pass by reference.
Output rusage also to list result file.
Reduce inlining of C++ constructors.

11 months agodebug: stacktracing failure
Zdenek Kabelac [Tue, 26 Sep 2023 15:55:53 +0000 (17:55 +0200)]
debug: stacktracing failure

11 months agodebug: correct check for failing close
Zdenek Kabelac [Tue, 26 Sep 2023 15:50:33 +0000 (17:50 +0200)]
debug: correct check for failing close

11 months agodevices: refresh device ids if the system changes 1018880611
David Teigland [Wed, 13 Sep 2023 17:28:47 +0000 (12:28 -0500)]
devices: refresh device ids if the system changes

If the system changes, locate PVs that appear on different devices,
and update the device IDs in the devices file.  A system change is
detected by saving the DMI product_uuid or hostname in the devices
file, and comparing it to the current system value.  If a root PV
is restored or copied to a new system with different devices, then
the product_uuid or hostname should change, and trigger lvm to
locate PVIDs from system.devices on new devices.

11 months agoWHATS_NEW_DM: update 1016342705
Zdenek Kabelac [Mon, 25 Sep 2023 23:32:30 +0000 (01:32 +0200)]
WHATS_NEW_DM: update

11 months agotests: check exit_on works
Zdenek Kabelac [Mon, 25 Sep 2023 23:21:41 +0000 (01:21 +0200)]
tests: check exit_on works

11 months agodebug: correcting check for error
Zdenek Kabelac [Mon, 25 Sep 2023 16:28:50 +0000 (18:28 +0200)]
debug: correcting check for error

Correct trace for erroring case of close.

11 months agodebug: correct level
Zdenek Kabelac [Wed, 20 Sep 2023 13:36:54 +0000 (15:36 +0200)]
debug: correct level

No error for just tracing message.

11 months agodmeventd: implement exit_on file check
Zdenek Kabelac [Mon, 25 Sep 2023 11:07:00 +0000 (13:07 +0200)]
dmeventd: implement exit_on file check

When exit on file is present in a system and term/break signal is
catched, them dmeventd is no longger refusing to exit.

For the correct shutdown, there should be ideally unmonitoring call,
however in some case it's very hard to implement this correct procedure.

With this 'exit on' file dmeventd at least avoid 'blocking' shutdown,
before systemd kills use with -9 anyway possibly even in some unwanted
stated of internal dmeventd processing (i.e. in the middle of some lvm
command processing).

11 months agoconfigure: autoreconf
Zdenek Kabelac [Mon, 25 Sep 2023 13:49:52 +0000 (15:49 +0200)]
configure: autoreconf

11 months agoconfigure.ac: add --with-dmeventd-exit-on-path
Zdenek Kabelac [Mon, 25 Sep 2023 13:48:06 +0000 (15:48 +0200)]
configure.ac: add --with-dmeventd-exit-on-path

11 months agodmeventd: info status report
Zdenek Kabelac [Mon, 25 Sep 2023 09:49:14 +0000 (11:49 +0200)]
dmeventd: info status report

To quickly get info about some internal dmeventd status,
implment   'dmeventd -i' support.

Reported messages are some 'raw' internal informations mainly
useful to developers.

11 months agodmeventd: unregister all devices on restart
Zdenek Kabelac [Mon, 25 Sep 2023 09:42:53 +0000 (11:42 +0200)]
dmeventd: unregister all devices on restart

Instead of just exiting in the middle of monitoring,
unregisted all monitored devices first and then exit.

To speedup this path, all send internal SIGINT when thread
unregiters itself, to wakup-up main sleeping loop.

11 months agodmeventd: use return
Zdenek Kabelac [Mon, 25 Sep 2023 09:51:25 +0000 (11:51 +0200)]
dmeventd: use return

Use 'return' instead of calling exit() when possible.

11 months agodm-event: reset descriptors
Zdenek Kabelac [Mon, 25 Sep 2023 11:01:24 +0000 (13:01 +0200)]
dm-event: reset descriptors

Reset descriptors after closing them to -1.

11 months agodm-event: release buffer on dm_event_get_version
Zdenek Kabelac [Mon, 25 Sep 2023 09:47:40 +0000 (11:47 +0200)]
dm-event: release buffer on dm_event_get_version

Avoid memory leak in this function.

11 months agodm-event: enhance timestamp for debugging
Zdenek Kabelac [Sun, 24 Sep 2023 20:56:46 +0000 (22:56 +0200)]
dm-event: enhance timestamp for debugging

Add microseconds for timestamps in dm-event trace messages.
Also collect timestamps only when debugging when they are used.

11 months agolvmdbusd: fix syntax warning
Zdenek Kabelac [Wed, 20 Sep 2023 10:24:41 +0000 (12:24 +0200)]
lvmdbusd: fix syntax warning

python3.12 reported SyntaxWarning: invalid escape sequence '\/'

11 months agoWHATS_NEW: updates 1009704308
Zdenek Kabelac [Tue, 19 Sep 2023 12:47:00 +0000 (14:47 +0200)]
WHATS_NEW: updates

11 months agotypos: misc
Zdenek Kabelac [Fri, 15 Sep 2023 23:03:37 +0000 (01:03 +0200)]
typos: misc

11 months agotests: check pvmove with raid legs
Zdenek Kabelac [Tue, 19 Sep 2023 12:38:39 +0000 (14:38 +0200)]
tests: check pvmove with raid legs

Check pvmove correctly handles raid legs on input
(testing previous pvmove fix).

11 months agopvmove: fix building sibling raid lv name
Zdenek Kabelac [Tue, 19 Sep 2023 12:36:30 +0000 (14:36 +0200)]
pvmove: fix building sibling raid lv name

Make a local copy of the 'idx' string to avoid
overlapping during the rebuild of name.

This fixes cases where users specified raid
component LVs for moving.

Reported-by: kotarou3@github.com
11 months agotests: add fsck after split 1003552328
Zdenek Kabelac [Thu, 14 Sep 2023 08:08:26 +0000 (10:08 +0200)]
tests: add fsck after split

11 months agovdo: typo fix
Zdenek Kabelac [Thu, 14 Sep 2023 08:01:43 +0000 (10:01 +0200)]
vdo: typo fix

Argh - lastmin mods...

11 months agotests: skip test when lvmdbusd runs on the system 1003227736
Zdenek Kabelac [Wed, 13 Sep 2023 23:42:29 +0000 (01:42 +0200)]
tests: skip test when lvmdbusd runs on the system

lvmdbusd changes $RUNDIR results.

11 months agotests: update for work in fake dev environment
Zdenek Kabelac [Wed, 13 Sep 2023 22:51:58 +0000 (00:51 +0200)]
tests: update for work in fake dev environment

No write outside of $LVM_TEST_DIR  (removed /test access).
Use 'aux prepare_scsi_debug_dev' for automated scsi_debug handling
Properly use "" around shell vars.
Smarter read of PVS values.
Relax requirement to only work with real /dev dir.

11 months agotests: enforce full fs check
Zdenek Kabelac [Wed, 13 Sep 2023 21:40:16 +0000 (23:40 +0200)]
tests: enforce full fs check

11 months agotests: pvmove large disk area
Zdenek Kabelac [Wed, 13 Sep 2023 21:39:08 +0000 (23:39 +0200)]
tests: pvmove large disk area

With some faster test hw machine we need to make this test
a bit more resource consuming.

11 months agotests: missing to check for writecache support
Zdenek Kabelac [Wed, 13 Sep 2023 21:23:47 +0000 (23:23 +0200)]
tests: missing to check for writecache support

Ono more case requires writecache presence.

11 months agotests: aux using singl lvmconf call
Zdenek Kabelac [Wed, 13 Sep 2023 23:41:45 +0000 (01:41 +0200)]
tests: aux using singl lvmconf call

lvmconf can handle multiple options in a single pass.

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