]> sourceware.org Git - lvm2.git/log
lvm2.git
12 months agolvconvert swapmetadata: fix lvmlockd locking 960986663
David Teigland [Tue, 8 Aug 2023 21:57:22 +0000 (16:57 -0500)]
lvconvert swapmetadata: fix lvmlockd locking

The lockd lock needs to be freed for the LV that is becoming
the new metadata LV, and a new lockd lock needs to be created
for the old metadata LV that is becoming an independent LV.
Fixes b3e45219c2f4

12 months agodevice_id: rewrite validation of devname entries 956297527
David Teigland [Thu, 3 Aug 2023 21:20:43 +0000 (16:20 -0500)]
device_id: rewrite validation of devname entries

The old approach was too complicated and didn't work correctly
in some cases.

12 months agoCI: Add .gitlab-ci.yml 954395768
Marian Csontos [Wed, 28 Jun 2023 12:51:22 +0000 (14:51 +0200)]
CI: Add .gitlab-ci.yml

12 months agopost-release
Marian Csontos [Wed, 2 Aug 2023 12:42:16 +0000 (14:42 +0200)]
post-release

12 months agopre-release v2_03_22
Marian Csontos [Wed, 2 Aug 2023 12:39:55 +0000 (14:39 +0200)]
pre-release

12 months agoWHATS_NEW: update
Marian Csontos [Wed, 2 Aug 2023 12:38:23 +0000 (14:38 +0200)]
WHATS_NEW: update

12 months agomake: generate
Marian Csontos [Wed, 2 Aug 2023 10:22:16 +0000 (12:22 +0200)]
make: generate

12 months agoreport: fix pv_major and pv_minor report field type
Peter Rajnoha [Mon, 31 Jul 2023 11:37:34 +0000 (13:37 +0200)]
report: fix pv_major and pv_minor report field type

We incorrectly marked pv_major and pv_minor fields as being of string
type, even though the values were already correctly handled as integers
internally. This confused -S|--select that tried to compare string
values instead of integers.

Reported here: https://github.com/lvmteam/lvm2/issues/122

12 months agolvmdevices: add --delnotfound to delete entries for missing devices
David Teigland [Wed, 19 Jul 2023 20:04:53 +0000 (15:04 -0500)]
lvmdevices: add --delnotfound to delete entries for missing devices

Used with update: lvmdevices --update --delnotfound.
Removes all devices file entries for which no matching device is found.

12 months agovgmknodes: skipping thin pool is not an error
Paul van Genderen-Tjie A Loi [Mon, 24 Jul 2023 17:03:06 +0000 (12:03 -0500)]
vgmknodes: skipping thin pool is not an error

12 months agotests: catch all output
Zdenek Kabelac [Mon, 17 Jul 2023 14:24:22 +0000 (16:24 +0200)]
tests: catch all output

Previous fix was invalid (after some in-place shuffling)
'dd' copied goes to 'stderr' so we need to catch all output.
Grep needs to check output of tee tool.
Ensure 'C' locales are in use with 'dd'.

12 months agovdo: use long --verbose
Zdenek Kabelac [Mon, 17 Jul 2023 14:22:29 +0000 (16:22 +0200)]
vdo: use long --verbose

vdo tools needs long option.

12 months agotests: new logic for repair
Zdenek Kabelac [Mon, 17 Jul 2023 12:30:39 +0000 (14:30 +0200)]
tests: new logic for repair

meta name deduced from cachepool name.

12 months agoWHATS_NEW: update
Zdenek Kabelac [Mon, 17 Jul 2023 11:47:57 +0000 (13:47 +0200)]
WHATS_NEW: update

12 months agotests: use zero device
Zdenek Kabelac [Mon, 17 Jul 2023 11:42:58 +0000 (13:42 +0200)]
tests: use zero device

Change the test to use 'zero' backend, so we could use larger size
and get 'larger' buffer of dirty blocks for fast CPUs...

12 months agotests: check for loaded brd
Zdenek Kabelac [Mon, 17 Jul 2023 11:21:59 +0000 (13:21 +0200)]
tests: check for loaded brd

Skip the test if the brd is already loaded in the system.

12 months agotests: mark test as warning
Zdenek Kabelac [Sun, 16 Jul 2023 20:21:13 +0000 (22:21 +0200)]
tests: mark test as warning

Until more universal solution for thin-pool corruption gets in place.

12 months agodebug: add backtrace
Zdenek Kabelac [Mon, 17 Jul 2023 10:44:04 +0000 (12:44 +0200)]
debug: add backtrace

12 months agocleanup: remove double //
Zdenek Kabelac [Sun, 16 Jul 2023 21:00:24 +0000 (23:00 +0200)]
cleanup: remove double //

dev_dir ends with /.

12 months agocleanup: remove duplicated code
Zdenek Kabelac [Sun, 16 Jul 2023 20:17:23 +0000 (22:17 +0200)]
cleanup: remove duplicated code

Commit cac4a9743acb826d785c0e51e9a752d8959ced80 moved setting
if layer structed to the function front, but the old code
was still left in original place.

12 months agolvconvert: code shuffle
Zdenek Kabelac [Mon, 17 Jul 2023 10:22:50 +0000 (12:22 +0200)]
lvconvert: code shuffle

Use cachepool name for create name for metadata backup LV.
(so we do not generate 2 'sequences' of metadata filenames.)
Move path preparion before handling _pmspare.
Also drop extra call to sync_local_dev_names() as it's
already got in sync with call of exec_cmd().

12 months agolvconvert: add support --setactivationskip
Zdenek Kabelac [Mon, 17 Jul 2023 10:13:14 +0000 (12:13 +0200)]
lvconvert: add support --setactivationskip

When repair thinpool or cachepool, lvm2 leaves original metadata
volume backup. To avoid potential damage of those data, mark such
volume as 'read-only' and also allow user to use --setactivationskip
option for this volume.

TODO: likely better default would be to automatically skip, but
that might need some more thinking about recovery reporting doc.

12 months agolvconvert: use public LVs for recovery
Zdenek Kabelac [Sun, 16 Jul 2023 19:15:00 +0000 (21:15 +0200)]
lvconvert: use public LVs for recovery

Replace the use of internal /dev/mapper names with the use of
public LV names /dev/vg/lv for use with repair tools.
For this make the activation of _pmspare LV to be handled as
a component activation with public name.
Metadata is already atomatically activated this way (as readonly).

So if there is any 'error' happening, we leave public LVs in
system.

12 months agovdo: refactor code
Zdenek Kabelac [Sun, 16 Jul 2023 18:03:15 +0000 (20:03 +0200)]
vdo: refactor code

Shuffle code to use prepare_exec_args().
Simplify generation of options string within a single char buffer.

12 months agolvm-exec: refactor code
Zdenek Kabelac [Sun, 16 Jul 2023 15:35:20 +0000 (17:35 +0200)]
lvm-exec: refactor code

Add prepare_exec_args() for reading option list for
thin/cache_repair, thin/cache_check.

12 months agolv_manip: refactor code
Zdenek Kabelac [Sun, 16 Jul 2023 15:35:04 +0000 (17:35 +0200)]
lv_manip: refactor code

Simplify initialization of exec buffer.
Check for misconfigured 'fsadm' executable path.

12 months agoactive: device name limit is NAME_LEN
Zdenek Kabelac [Mon, 17 Jul 2023 10:43:39 +0000 (12:43 +0200)]
active: device name limit is NAME_LEN

Use existing NAME_LEN instead of 257 value.
Add missing backtrace.

12 months agoWHATS_NEW: update
Zdenek Kabelac [Sat, 15 Jul 2023 09:04:06 +0000 (11:04 +0200)]
WHATS_NEW: update

12 months agotests: updates
Zdenek Kabelac [Sat, 15 Jul 2023 08:39:56 +0000 (10:39 +0200)]
tests: updates

Pass more args with some 'aux' commands:
wipefs_a, enable_dev, disable_dev
(so it's a bit more efficient using single udev_wait call).
Use prepare_vg instead of prepare_pvs.

12 months agotests: avoid using /test dir
Zdenek Kabelac [Fri, 14 Jul 2023 20:05:27 +0000 (22:05 +0200)]
tests: avoid using /test dir

Keep using test directory for created files.
Trap errors and remove brd in this case.
Use some shell builtins to reduce fork count.
Use "$VAR".
Run 'pvs' with devlist (so not acceing other system devices).

12 months agotests: add fsck before resize2fs
Zdenek Kabelac [Fri, 14 Jul 2023 23:26:10 +0000 (01:26 +0200)]
tests: add fsck before resize2fs

12 months agotests: faster check for flushing
Zdenek Kabelac [Fri, 14 Jul 2023 21:24:23 +0000 (23:24 +0200)]
tests: faster check for flushing

Try minimizing delay in detecting 'cleaner' policy precence,
so we can fast interrupt running lvconvert.

12 months agotests: ensure single leg is broken
Zdenek Kabelac [Sat, 15 Jul 2023 08:21:48 +0000 (10:21 +0200)]
tests: ensure single leg is broken

Make sure only the first raid5 leg, that contains searched string
is being modified, so we do not 'damage'  2legs at once.

12 months agoaux: fix version checking
Zdenek Kabelac [Sat, 15 Jul 2023 08:20:32 +0000 (10:20 +0200)]
aux: fix version checking

New dmpd tools return version string in different format,
so update code to understand both variant.

Also hide some shell var setting to local functions.

12 months agodebug: print WARNING:
Zdenek Kabelac [Sat, 15 Jul 2023 08:57:37 +0000 (10:57 +0200)]
debug: print WARNING:

Add WARNING: in front of log_warn() messages.

12 months agolvconvert: hanle metadataswap with lvmlockd
Zdenek Kabelac [Fri, 14 Jul 2023 23:26:37 +0000 (01:26 +0200)]
lvconvert: hanle metadataswap with lvmlockd

12 months agomm: add libzstd to ignore list
Zdenek Kabelac [Fri, 14 Jul 2023 21:19:33 +0000 (23:19 +0200)]
mm: add libzstd to ignore list

No need to lock-in-RAM libzstd (linked from systemd).

12 months agotests: check --test
Zdenek Kabelac [Fri, 14 Jul 2023 14:24:49 +0000 (16:24 +0200)]
tests: check --test

Check lvconvert --thin is not adding more LVs.
Enable testing with lvmlockd.

TODO: lvmlockd is missing support for --test.

12 months agotests: more checks with active thin lv
Zdenek Kabelac [Fri, 14 Jul 2023 14:16:46 +0000 (16:16 +0200)]
tests: more checks with active thin lv

Check --usepolicy works primarily when thin-pool -tpool is there.
Also let the test run with lvmlockd.

12 months agotests: skip with lvmpolld
Zdenek Kabelac [Fri, 14 Jul 2023 09:18:58 +0000 (11:18 +0200)]
tests: skip with lvmpolld

Not needed with lvmpolld pass.

12 months agocleanup: indent
Zdenek Kabelac [Fri, 14 Jul 2023 09:40:51 +0000 (11:40 +0200)]
cleanup: indent

12 months agolvresize: improve usepolices
Zdenek Kabelac [Fri, 14 Jul 2023 14:13:41 +0000 (16:13 +0200)]
lvresize: improve usepolices

lvresize --usepolicy requires resized LVs to be active.
(So it's not only required for shared VG).

The test for active pool needs to use lv_info to query 'layer'
otherwise the pool is considered inactive if it was not activated
explicitely - thun 'implicit' activation with VDO or ThinLV was
not managed by --usepolicy option.

12 months agolvmlockd: enable vdo conversion
Zdenek Kabelac [Fri, 14 Jul 2023 11:27:29 +0000 (13:27 +0200)]
lvmlockd: enable vdo conversion

As we turn 'already' active/locked LV into a data LV of vdopool,
we just keep active lock for such volume (uuid is preserved).

12 months agolvmlockd: query the simplest check first
Zdenek Kabelac [Fri, 14 Jul 2023 11:26:42 +0000 (13:26 +0200)]
lvmlockd: query the simplest check first

Check for visibility of the LV first.

TODO:

Short check list and test only for those that can't be locked,
but they are visible LVs.

12 months agolvconvert: thin convert locking
Zdenek Kabelac [Fri, 14 Jul 2023 14:50:27 +0000 (16:50 +0200)]
lvconvert: thin convert locking

Fix locking when converting thick to thin LV, ensure
we take pool lock for shared VG.

12 months agolvconvert: no metadata for test mode
Zdenek Kabelac [Fri, 14 Jul 2023 09:39:04 +0000 (11:39 +0200)]
lvconvert: no metadata for test mode

Avoid trying to build real metadata in --test mode.

12 months agoman-generator: ensure p is defined
Zdenek Kabelac [Thu, 13 Jul 2023 19:56:47 +0000 (21:56 +0200)]
man-generator: ensure p is defined

In error path, p pointer could have been undefined.

12 months agodebug: missed properly modify pointer type
Zdenek Kabelac [Thu, 13 Jul 2023 19:52:20 +0000 (21:52 +0200)]
debug: missed properly modify pointer type

12 months agotests: improve LD_LIBRARY_PATH setting
Zdenek Kabelac [Thu, 13 Jul 2023 19:25:15 +0000 (21:25 +0200)]
tests: improve LD_LIBRARY_PATH setting

Some linkers do need libdevmapper-event-lvm2.so.2.03,
so add also this symlink to the tests  /lib dir.
This fixes the need to use previous LD_LIBRARY_PATH complex
setting and now works with much shorter list.

12 months agotests: update
Zdenek Kabelac [Thu, 13 Jul 2023 19:23:40 +0000 (21:23 +0200)]
tests: update

Just drop debug log in case of error happenig later,
so we do not print uneeded info...

12 months agotests: use conf=fdatasync
Zdenek Kabelac [Thu, 13 Jul 2023 19:22:26 +0000 (21:22 +0200)]
tests: use conf=fdatasync

Since we write here in 1k blocksize - we can't use direct.

12 months agotests: skip test if daemon is running
Zdenek Kabelac [Thu, 13 Jul 2023 15:42:50 +0000 (17:42 +0200)]
tests: skip test if daemon is running

Skip the test, to avoid making all test failed when there is
'left' daemon running.

12 months agomakefiles: install lvmdbusd executable
Zdenek Kabelac [Thu, 13 Jul 2023 14:36:49 +0000 (16:36 +0200)]
makefiles: install lvmdbusd executable

Use a different mechanism to ensure, lvmdbudd is executable at
install destination.

12 months agomakefiles: remove autom4te.cache
Zdenek Kabelac [Thu, 13 Jul 2023 10:27:09 +0000 (12:27 +0200)]
makefiles: remove autom4te.cache

For 'make distclean' remove also autom4te.cache
(from autoreconf).

12 months agogcc: correct signess comparation
Zdenek Kabelac [Thu, 13 Jul 2023 10:32:44 +0000 (12:32 +0200)]
gcc: correct signess comparation

Compare int to int and unsigned to unsigned...

12 months agolvchange: add log_error for failure path
Zdenek Kabelac [Thu, 13 Jul 2023 19:24:26 +0000 (21:24 +0200)]
lvchange: add log_error for failure path

When change of monitoring fails, ensure there is log_error() printed.

12 months agodebug: fix sscanf type
Zdenek Kabelac [Thu, 13 Jul 2023 19:19:48 +0000 (21:19 +0200)]
debug: fix sscanf type

Last commit c38b668fc3ead664a35130c1acec63518630d1dc was pushed
with type 'scanf' instead of 'sscanf' needed for buffer reading.
Interestingly this caused scanning from 'stdin' descriptor and
thus failures in lvm shell usage.

12 months agoUpdate README
Marian Csontos [Wed, 12 Jul 2023 13:53:28 +0000 (15:53 +0200)]
Update README

12 months agoWHATS_NEW: update
Zdenek Kabelac [Wed, 12 Jul 2023 12:21:32 +0000 (14:21 +0200)]
WHATS_NEW: update

12 months agotests: some fixes for lvmlockd testing
Zdenek Kabelac [Wed, 12 Jul 2023 11:58:50 +0000 (13:58 +0200)]
tests: some fixes for lvmlockd testing

12 months agotests: reduce paths added to LD_LIBRARY_PATH
Zdenek Kabelac [Wed, 12 Jul 2023 11:51:48 +0000 (13:51 +0200)]
tests: reduce paths added to LD_LIBRARY_PATH

Add only stricly needed paths to compiled .so objects.

12 months agotests: check for writecache presence
Zdenek Kabelac [Wed, 12 Jul 2023 11:47:13 +0000 (13:47 +0200)]
tests: check for writecache presence

Test is using writecache.

12 months agotests: makefile build proper tools list
Zdenek Kabelac [Tue, 11 Jul 2023 13:48:15 +0000 (15:48 +0200)]
tests: makefile build proper tools list

Add compiled components to the list.

12 months agodebug: use display_lvname
Zdenek Kabelac [Wed, 12 Jul 2023 11:50:21 +0000 (13:50 +0200)]
debug: use display_lvname

12 months agodebug: fix parsing of /proc/self/stat
Zdenek Kabelac [Mon, 10 Jul 2023 19:44:24 +0000 (21:44 +0200)]
debug: fix parsing of /proc/self/stat

The code in init_log_file relies on the process name (COMM) to not
contain whitespaces. This change fixes it by looking up the right-most
parenthesis to safely jump past COMM.

For more context see:
https://www.openwall.com/lists/oss-security/2022/12/21/6

Code is only used with testing, so it should have no impact on regular
users.

Reported-by: Hugues Evrard <hevrard@google.com>
mm

12 months agocov: fix memleak in vgchange
Zdenek Kabelac [Wed, 12 Jul 2023 12:15:41 +0000 (14:15 +0200)]
cov: fix memleak in vgchange

Release allocated  vgname from get_single_vgname_cmd_arg()
when it is not returned via *vgname_ret.

12 months agocov: hide some messages
Zdenek Kabelac [Wed, 12 Jul 2023 12:12:51 +0000 (14:12 +0200)]
cov: hide some messages

Living with these...

12 months agoautoconf: update py-compile
Zdenek Kabelac [Mon, 10 Jul 2023 18:38:26 +0000 (20:38 +0200)]
autoconf: update py-compile

Use newer version of this script from:
https://raw.githubusercontent.com/autotools-mirror/automake/4bd4640e03670e267d9763d377f107c09b4f2202/lib/py-compile

Reported-by: Adam Willamson
12 months agolvconvert: correction for thin conversion
Zdenek Kabelac [Wed, 12 Jul 2023 11:52:32 +0000 (13:52 +0200)]
lvconvert: correction for thin conversion

Updates for 39457234db1d92f89d4234e2f2f5b703206281ae.
Off-by-one for option array - need 20 fields.
Missed to clear lock_args for cachepool.

12 months agoREADME: Move to gitlab
Marian Csontos [Mon, 10 Jul 2023 15:47:43 +0000 (17:47 +0200)]
README: Move to gitlab

12 months agoWHATS_NEW: updates
Zdenek Kabelac [Tue, 4 Jul 2023 19:50:35 +0000 (21:50 +0200)]
WHATS_NEW: updates

12 months agolv: followup seg_monitor reporting
Zdenek Kabelac [Tue, 4 Jul 2023 22:50:54 +0000 (00:50 +0200)]
lv: followup seg_monitor reporting

With 3596558861e62ca0c6f37bfba6a4e80e46dcca47 it's been introduced
a more fine grained description.
However 'disabled' might be actually more confusing then empty field,
so keep only the info about 'not enabled'aka dmevend is not allowed
to monitor LV which otherwise could be monitored.

12 months agotests: use aux functionality
Zdenek Kabelac [Tue, 4 Jul 2023 20:17:58 +0000 (22:17 +0200)]
tests: use aux functionality

Use aux wait_recalc and wait_for_sync  for faster processing.

12 months agotests: update thin
Zdenek Kabelac [Mon, 3 Jul 2023 18:50:49 +0000 (20:50 +0200)]
tests: update thin

12 months agoman: update for new syntax
Zdenek Kabelac [Tue, 4 Jul 2023 19:34:37 +0000 (21:34 +0200)]
man: update for new syntax

12 months agopool: improve message for data persistance
Zdenek Kabelac [Tue, 4 Jul 2023 21:40:11 +0000 (23:40 +0200)]
pool: improve message for data persistance

Inform a user that pools using either error or zero LVs are
not able to keep any data persistant.

12 months agolvconvert: support conversion to thin volume
Zdenek Kabelac [Tue, 4 Jul 2023 19:34:47 +0000 (21:34 +0200)]
lvconvert: support conversion to thin volume

Update pool conversion function to handle also conversion of
thick LV to thin LV by moving thick LV into thin pool data LV
and creating fully provissioned thin LV on top of this volume.

Reworking existing conversion to use insert_layer_for_lv co
the uuid is now kept with thin-pool - this should however not
really matter as we are doing full deactivation & activation cycle.

With conversion to thin LV user can use same set of arguments
to set chunk-size.

TODO: add some smart code to decide best values for chunks sizes.

12 months agocleanup: typos
Zdenek Kabelac [Sun, 2 Jul 2023 15:46:47 +0000 (17:46 +0200)]
cleanup: typos

12 months agocleanup: use spelling synchronize
Zdenek Kabelac [Sun, 2 Jul 2023 14:41:34 +0000 (16:41 +0200)]
cleanup: use spelling synchronize

Use single spelling form for synchronize.

12 months agotests: caching of single thin volume
Zdenek Kabelac [Tue, 4 Jul 2023 18:06:45 +0000 (20:06 +0200)]
tests: caching of single thin volume

12 months agotests: cache with error and zero
Zdenek Kabelac [Tue, 4 Jul 2023 17:15:40 +0000 (19:15 +0200)]
tests: cache with error and zero

12 months agotests: skip on kernels
Zdenek Kabelac [Tue, 4 Jul 2023 17:14:18 +0000 (19:14 +0200)]
tests: skip on kernels

12 months agolv_manip: fix move_lv_segments moved bits
Zdenek Kabelac [Mon, 10 Jul 2023 13:43:49 +0000 (15:43 +0200)]
lv_manip: fix move_lv_segments moved bits

For proper functionality of insert_layer_for_lv we need to
move more bits to layerd LV.

Add some missing new types and correct usage of caller,
so the new LV type is set after the movement.

12 months agopool: do not pass empty string in callback
Zdenek Kabelac [Tue, 4 Jul 2023 20:46:50 +0000 (22:46 +0200)]
pool: do not pass empty string in callback

When preparing cmdline to executing dmpd tool, avoid adding
empty string ("") on such line.

12 months agocache: update validation rules
Zdenek Kabelac [Tue, 4 Jul 2023 17:21:43 +0000 (19:21 +0200)]
cache: update validation rules

Validate cache origin in front of the prompt.
Also add some rules to command description file.

TODO:
more validation needed also for lvcreate,
more complex rules with "OR" seems to be needed.

12 months agocache: support more segtypes for caching
Zdenek Kabelac [Tue, 4 Jul 2023 08:58:39 +0000 (10:58 +0200)]
cache: support more segtypes for caching

Enable support to cache thin/error/zero virtual targets.

Use can now select whether he want to cache whole thin-pool,
or an individual thin volume out of whole thin-pool.
Support using zero and error LVs as data volume for
cachepool is possibly useful for benchmarking, not much
can be expected from such setup.

12 months agocache: handle error segtype
Zdenek Kabelac [Tue, 4 Jul 2023 17:20:12 +0000 (19:20 +0200)]
cache: handle error segtype

Allow to convert error LV.

12 months agocachepool: skip wipe for nonzeroeable segments
Zdenek Kabelac [Tue, 4 Jul 2023 11:29:00 +0000 (13:29 +0200)]
cachepool: skip wipe for nonzeroeable segments

Avoid activation when going to skip zeroing of 'error' segtype
(so it's not erroring out).
Also skip zeroing for 'zero' segtype LV (already being zero).

12 months agopool: support passing data_lv for recalculation
Zdenek Kabelac [Sun, 2 Jul 2023 09:21:15 +0000 (11:21 +0200)]
pool: support passing data_lv for recalculation

Support data_lv to be passed as parameter when it's not yet
attached to the pool.

12 months agocommands: error and zero segtype handling
Zdenek Kabelac [Tue, 4 Jul 2023 11:26:57 +0000 (13:26 +0200)]
commands: error and zero segtype handling

Add function to work with error and zero LVs more easily.

12 months agocommands: enhance error checking for generator
Zdenek Kabelac [Tue, 4 Jul 2023 09:26:46 +0000 (11:26 +0200)]
commands: enhance error checking for generator

No exit value 0, when the parser hits an error.
Increase some buffers since as some arg lists are getting longer.

12 months agocommands: support query for lv_is_cow
Zdenek Kabelac [Tue, 4 Jul 2023 11:31:56 +0000 (13:31 +0200)]
commands: support query for lv_is_cow

12 months agosegtype: add missing macros for error and zero segment
Zdenek Kabelac [Tue, 4 Jul 2023 11:14:58 +0000 (13:14 +0200)]
segtype: add missing macros for error and zero segment

Add macros for checking error and zero segment as we do
with other segtypes.

12 months agosnapshot: no error when extending above max size
Zdenek Kabelac [Thu, 29 Jun 2023 21:19:09 +0000 (23:19 +0200)]
snapshot: no error when extending above max size

When lvm2 calculates the maximal usable COW size and crops the user
requested size to this value, don't return the error result from
the 'lvextend' operation.

We already apply the same logic when resizing thin-pool beyond
the supported maximal size.

FIXME: The return code error logic here is somewhat fuzzy.

12 months agovdo: support version 4
Zdenek Kabelac [Sun, 2 Jul 2023 20:02:18 +0000 (22:02 +0200)]
vdo: support version 4

Properly parse VDO volumes formatted with geometry block version 4.0.

13 months agopool: avoid using artificial name internally
Zdenek Kabelac [Thu, 29 Jun 2023 11:53:43 +0000 (13:53 +0200)]
pool: avoid using artificial name internally

13 months agolv: more details about monitoring lvs
Zdenek Kabelac [Wed, 28 Jun 2023 09:51:35 +0000 (11:51 +0200)]
lv: more details about monitoring lvs

Show "not supported" when LV does not support dmeventd monitoring.
Show "disabled" for LV with disabled dmeventd monitoring.
(lvdisplay -m)

13 months agolvm_import_vdo: spelling fixes
Zdenek Kabelac [Thu, 29 Jun 2023 11:05:55 +0000 (13:05 +0200)]
lvm_import_vdo: spelling fixes

13 months agovdo: lvm_import_vdo correct parsing output
Zdenek Kabelac [Thu, 29 Jun 2023 11:06:18 +0000 (13:06 +0200)]
vdo: lvm_import_vdo correct parsing output

Output from vdo manager may actually indent output with spaces,
so trim leading and ending space.

Also add support for verbosity flag for vdo conversion tool.

13 months agovdo: indent for lvdisplay
Zdenek Kabelac [Wed, 28 Jun 2023 09:53:29 +0000 (11:53 +0200)]
vdo: indent for lvdisplay

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