]> sourceware.org Git - lvm2.git/log
lvm2.git
7 hours agodev-type: detect mixed dos partition with gpt's PMBR main master 1479882293
Peter Rajnoha [Thu, 3 Oct 2024 07:38:11 +0000 (09:38 +0200)]
dev-type: detect mixed dos partition with gpt's PMBR

Detect when we have mixed dos partition with gpt's PMBR partition.

This is not a sane configuration, but detect it anyway, just in case
someone configures such partition layout manually and forcefully and
incorrectly defines one of the partition types to be the GPT's PMBR.

For example:

  ❯  fdisk -l /dev/sdc

  Device     Boot Start    End Sectors Size Id Type
  /dev/sdc1        2048  67583   65536  32M 83 Linux
  /dev/sdc2       67584 262143  194560  95M ee GPT

Before:
(The partition filter passes even though there's real existing dos
partition - the empty GPT PMBR overrides it.)

  ❯  pvcreate /dev/sdc
  WARNING: PMBR signature detected on /dev/sdc at offset 510. Wipe it? [y/n]:
  Wiping PMBR signature on /dev/sdc.
  Physical volume "/dev/sdc" successfully created.

With this patch applied:
(The GPT PMBR does not override the existence of the dos partition.)

  ❯  pvcreate /dev/sdc
    Cannot use /dev/sdc: device is partitioned

27 hours agopost-release 1478671946
Marian Csontos [Wed, 2 Oct 2024 12:08:29 +0000 (14:08 +0200)]
post-release

27 hours agopre-release 1478672107 v2_03_27
Marian Csontos [Wed, 2 Oct 2024 12:19:23 +0000 (14:19 +0200)]
pre-release

27 hours agoWHATS_NEW and release-notes update
Marian Csontos [Wed, 2 Oct 2024 12:18:35 +0000 (14:18 +0200)]
WHATS_NEW and release-notes update

27 hours agoWHATS_NEW: update 1478616095
Peter Rajnoha [Wed, 2 Oct 2024 11:49:17 +0000 (13:49 +0200)]
WHATS_NEW: update

28 hours ago[WIP] Disable dlm for RHEL10 1478614252
Marian Csontos [Mon, 9 Sep 2024 14:06:59 +0000 (16:06 +0200)]
[WIP] Disable dlm for RHEL10

28 hours agolvmdbusd: Fix Python script 14/head 1478598496 1478599930
Tobias Stoeckmann [Fri, 13 Sep 2024 16:35:18 +0000 (18:35 +0200)]
lvmdbusd: Fix Python script

The thread does not contain field "damon" but "daemon".

Actually found with codespell.

Signed-off-by: Tobias Stoeckmann <tobias@stoeckmann.org>
28 hours agofilesystem: add note about swap devices 15/head 16/head 1478596313 1478596632
Peter Rajnoha [Thu, 19 Sep 2024 11:40:09 +0000 (13:40 +0200)]
filesystem: add note about swap devices

28 hours agotests: also test swap devices in lvresize-fs.sh
Peter Rajnoha [Thu, 19 Sep 2024 11:33:01 +0000 (13:33 +0200)]
tests: also test swap devices in lvresize-fs.sh

28 hours agolv_manip: handle swap devices in fs-related checks for lvreduce/lvextend
Peter Rajnoha [Thu, 19 Sep 2024 10:45:25 +0000 (12:45 +0200)]
lv_manip: handle swap devices in fs-related checks for lvreduce/lvextend

This provides better hints when trying to resize the fs on top of an LV.
Also needs a3f6d2f593a4d278daf9ba3a1ba30bae38d8396a for proper operation.

❯  lvs -o name,size vg/swap
  lv_name lv_size
  swap     60.00m

Before:

❯  lvextend -L72m vg/swap
  Size of logical volume vg/swap changed from 60.00 MiB (15 extents) to 72.00 MiB (18 extents).
  Logical volume vg/swap successfully resized.

❯  lvreduce -L60m vg/swap
  File system swap found on vg/swap.
  File system device usage is not available from libblkid.

❯  lvreduce -L50m vg/swap
  Rounding size to boundary between physical extents: 52.00 MiB.
  File system swap found on vg/swap.
  File system device usage is not available from libblkid.

After:

❯  lvextend -L72m vg/swap
  Size of logical volume vg/swap changed from 60.00 MiB (15 extents) to 72.00 MiB (18 extents).
  Logical volume vg/swap successfully resized.

❯  lvreduce -L60m vg/swap
  File system swap found on vg/swap.
  File system size (60.00 MiB) is equal to the requested size (60.00 MiB).
  File system reduce is not needed, skipping.
  Size of logical volume vg/swap changed from 72.00 MiB (18 extents) to 60.00 MiB (15 extents).
  Logical volume vg/swap successfully resized.

❯  lvreduce -L50m vg/swap
  Rounding size to boundary between physical extents: 52.00 MiB.
  File system swap found on vg/swap.
  File system size (60.00 MiB) is larger than the requested size (52.00 MiB).
  File system reduce is required and not supported (swap).

28 hours agodev-type: get swap device size from blkid using FSSIZE
Peter Rajnoha [Thu, 19 Sep 2024 10:39:46 +0000 (12:39 +0200)]
dev-type: get swap device size from blkid using FSSIZE

blkid does not report FSLASTBLOCK for a swap device. However, blkid
does report FSSIZE for swap devices, so use this field (and including
the header size which is of FSBLOCKSIZE for the swap) instead to
set the "filesystem last block" which is used subsequently for
further calculations and conditions.

29 hours agotests: add pvcreate-partition.sh 13/head 1478481242 1478592461
Peter Rajnoha [Fri, 20 Sep 2024 08:32:35 +0000 (10:32 +0200)]
tests: add pvcreate-partition.sh

29 hours agodev-type: add prefix to differentiate msdos and gpt constants
Peter Rajnoha [Wed, 18 Sep 2024 08:26:18 +0000 (10:26 +0200)]
dev-type: add prefix to differentiate msdos and gpt constants

29 hours agofilter: partitioned: also detect non-empty GPT partition table
Peter Rajnoha [Wed, 4 Sep 2024 13:30:42 +0000 (15:30 +0200)]
filter: partitioned: also detect non-empty GPT partition table

We already detect msdos partition table. If it is empty, that is, there
is just the partition header and no actual partitions defined, then the
filter-partitioned passes, otherwise not.

Do the same for GPT partition table.

3 days agomake: generate 1475447077
Zdenek Kabelac [Mon, 30 Sep 2024 12:33:50 +0000 (14:33 +0200)]
make: generate

3 days agocov: annotate
Zdenek Kabelac [Mon, 30 Sep 2024 12:47:03 +0000 (14:47 +0200)]
cov: annotate

3 days agocov: potentially overflowing expression
Zdenek Kabelac [Mon, 30 Sep 2024 12:46:31 +0000 (14:46 +0200)]
cov: potentially overflowing expression

Use 64bit arithmentic.

5 days agolvmlockd: configurable sanlock lease sizes on 4K disks 1473183351
David Teigland [Fri, 27 Sep 2024 22:42:26 +0000 (17:42 -0500)]
lvmlockd: configurable sanlock lease sizes on 4K disks

New config setting sanlock_align_size can be used to configure
the sanlock lease size that lvmlockd will use on 4K disks.

By default, lvmlockd and sanlock use 8MiB align_size (lease size)
on 4K disks, which supports up to 2000 hosts (and max host_id.)

This can be reduced to 1, 2 or 4 (in MiB), to reduce lease i/o.
The reduced sizes correspond to smaller max hosts/host_id:

1 MiB = 250 hosts
2 MiB = 500 hosts
4 MiB = 1000 hosts
8 MiB = 2000 hosts (default)

(Disks with 512 byte sectors always use 1MiB leases and support
2000 hosts/host_id, and are not affected by this.)

6 days agoWHATS_NEW: update 1472365742
Zdenek Kabelac [Fri, 27 Sep 2024 11:44:59 +0000 (13:44 +0200)]
WHATS_NEW: update

6 days agocleanup: replace use of alloced with allocated
zkabelac [Mon, 2 Sep 2024 11:09:00 +0000 (11:09 +0000)]
cleanup: replace use of alloced with allocated

6 days agocleanup: typos in libdm
zkabelac [Mon, 16 Sep 2024 14:11:12 +0000 (14:11 +0000)]
cleanup: typos in libdm

6 days agocleanup: more typos in WHATS_NEW
zkabelac [Fri, 30 Aug 2024 17:47:00 +0000 (17:47 +0000)]
cleanup: more typos in WHATS_NEW

6 days agocleanup: fix typos
Tobias Stoeckmann [Fri, 13 Sep 2024 16:33:45 +0000 (18:33 +0200)]
cleanup: fix typos

Typos found with codespell.

Signed-off-by: Tobias Stoeckmann <tobias@stoeckmann.org>
6 days agomemlock: use value of 0 to disable memory locking
Zdenek Kabelac [Tue, 24 Sep 2024 14:04:53 +0000 (16:04 +0200)]
memlock: use value of 0 to disable memory locking

In cases user is sure he is not using his 'rootfs' or 'swap' on LVs
managed with his command - it possible to completely bypass pinning
process to RAM which may eventually slightly speedup command execution,
(however at the risk the process can be eventually delayed by swapping).
Basicaly use this only at your risk...

TODO: add some dmeventd support for this.

7 days agovdo: depcreate unused settings
Zdenek Kabelac [Fri, 6 Sep 2024 09:39:17 +0000 (11:39 +0200)]
vdo: depcreate unused settings

7 days agolvmlockd: use lvmlock LV size 1470849140
David Teigland [Wed, 25 Sep 2024 21:18:32 +0000 (16:18 -0500)]
lvmlockd: use lvmlock LV size

Previously, lvmlockd detected the end of the lvmlock LV
by doing i/o to it until an i/o error was returned.
This triggered sanlock warning messages, so use the LV
size to avoid accessing beyond the end of the device.

Previously, every lvcreate would refresh the lvmlock LV
in case another machine had extended it.  This involves
a lot of unnecessary work in most cases, so now compare
the LV size and device size to detect when a refresh is
needed.

9 days agolvmlockd: fix previous thin locking fix 1465886237
David Teigland [Mon, 23 Sep 2024 22:12:03 +0000 (17:12 -0500)]
lvmlockd: fix previous thin locking fix

Restore the original lvremove locking for non-thin LVs
that were changed in the thin locking fix.

9 days agovg: remove unused hostnames hash table 1465773143
David Teigland [Mon, 23 Sep 2024 20:04:53 +0000 (15:04 -0500)]
vg: remove unused hostnames hash table

The hash table of lv creation hostnames was not used for anything,
so remove it.

9 days agolvmlockd: fix locking for thin 1465738792
David Teigland [Mon, 23 Sep 2024 19:46:29 +0000 (14:46 -0500)]
lvmlockd: fix locking for thin

lvremove of a thin lv while the pool is inactive would
leave the pool locked but inactive.

lvcreate of a thin snapshot while the pool is inactive
would leave the pool locked but inactive.

lvcreate of a thin lv could activate the pool to check
a threshold before the pool lock was acquired in lvmlockd.

2 weeks agotests: remove superfluous -a option for df used in lvresize-fs.sh 1460603502
Peter Rajnoha [Thu, 19 Sep 2024 13:12:44 +0000 (15:12 +0200)]
tests: remove superfluous -a option for df used in lvresize-fs.sh

3 weeks agometadata: use lv_hash in segment-specific metadata parsing 1447913946
David Teigland [Tue, 10 Sep 2024 16:51:15 +0000 (11:51 -0500)]
metadata: use lv_hash in segment-specific metadata parsing

The lv_hash wasn't being passed to the seg-specific text import
functions, so they were doing many find_lv() calls which consumes
a lot of time when there are many LVs in the metadata.

3 weeks agoargs: readonly description update 1443255555
David Teigland [Fri, 6 Sep 2024 13:44:06 +0000 (08:44 -0500)]
args: readonly description update

Include reference to --permission r.

4 weeks agoWHATS_NEW_DM: update 12/head 1441387489 1441427841
Peter Rajnoha [Thu, 5 Sep 2024 08:34:43 +0000 (10:34 +0200)]
WHATS_NEW_DM: update

4 weeks agolibdm: do not fail if GETVAL semctl fails for udev sync inc and dec
Peter Rajnoha [Mon, 12 Aug 2024 12:31:19 +0000 (14:31 +0200)]
libdm: do not fail if GETVAL semctl fails for udev sync inc and dec

While performing udev sync semaphore's inc/dec operation, we use the
result from GETVAL semctl just to print a debug message with current
value of that sempahore, nothing else.

If the GETVAL fails for whetever reason while the actual inc/dec
completes successfully, just log a warning message about the GETVAL
(and print the debug messages without the actual semaphore value)
and return success for the inc/dec operation as a whole.

4 weeks agolibdm: clean up udev sync semaphore on fail path during its creation
Peter Rajnoha [Mon, 12 Aug 2024 12:16:32 +0000 (14:16 +0200)]
libdm: clean up udev sync semaphore on fail path during its creation

Clean up udev sync semaphore on fail path during its creation, otherwise
the caller will have no handle returned to clean it up itself and the
semaphore will keep staying in the system. The only way to clean it up
would be to call `dmsetup udevcomplete_all` which would destroy all
udev sync semaphores, not just the failed one, which we don't want.

4 weeks agolibdm: add 'cookie create/inc/dec' log prefix if GETVAL fails for udev sync ops
Peter Rajnoha [Mon, 12 Aug 2024 12:01:25 +0000 (14:01 +0200)]
libdm: add 'cookie create/inc/dec' log prefix if GETVAL fails for udev sync ops

The same message is printed while performing create/inc/dec operation and
the GETVAL semctl fails. Add a prefix so we know exactly in which of
these functions the issue actually happened.

4 weeks agoscripts: Fix ConditionPathExists in unit files 1439886932
Marian Csontos [Wed, 4 Sep 2024 12:40:58 +0000 (14:40 +0200)]
scripts: Fix ConditionPathExists in unit files

4 weeks agoWHATS_NEW: update 1433864118
Zdenek Kabelac [Fri, 30 Aug 2024 14:44:50 +0000 (16:44 +0200)]
WHATS_NEW: update

4 weeks agoconfigure: autoreconf
Zdenek Kabelac [Thu, 29 Aug 2024 20:24:27 +0000 (22:24 +0200)]
configure: autoreconf

4 weeks agomake generate
Zdenek Kabelac [Thu, 29 Aug 2024 20:21:45 +0000 (22:21 +0200)]
make generate

4 weeks agocleanup: typos in configure.ac
Zdenek Kabelac [Thu, 29 Aug 2024 20:33:33 +0000 (22:33 +0200)]
cleanup: typos in configure.ac

4 weeks agocleanup: typos in test comments
Zdenek Kabelac [Fri, 30 Aug 2024 10:10:35 +0000 (12:10 +0200)]
cleanup: typos in test comments

4 weeks agocleanup: typos in test logging
Zdenek Kabelac [Fri, 30 Aug 2024 10:10:26 +0000 (12:10 +0200)]
cleanup: typos in test logging

4 weeks agocleanup: typos in doc
Zdenek Kabelac [Thu, 29 Aug 2024 21:30:33 +0000 (23:30 +0200)]
cleanup: typos in doc

4 weeks agocleanup: typos man pages
Zdenek Kabelac [Thu, 29 Aug 2024 20:05:12 +0000 (22:05 +0200)]
cleanup: typos man pages

4 weeks agocleanup: typos in WHATS_NEW
Zdenek Kabelac [Thu, 29 Aug 2024 22:12:36 +0000 (00:12 +0200)]
cleanup: typos in WHATS_NEW

4 weeks agocleanup: typos in comments
Zdenek Kabelac [Thu, 29 Aug 2024 21:05:41 +0000 (23:05 +0200)]
cleanup: typos in comments

Collection of typos in code comments.
Should have no runtime effect.

4 weeks agocleanup: typos in logging
Zdenek Kabelac [Thu, 29 Aug 2024 21:06:04 +0000 (23:06 +0200)]
cleanup: typos in logging

Fixes various typos in printed/logged messages.

4 weeks agocleanup: typo dirctory to directory
Zdenek Kabelac [Thu, 29 Aug 2024 21:25:10 +0000 (23:25 +0200)]
cleanup: typo dirctory to directory

Rename internal lm_idm_scsi_find_block_directory() function.

4 weeks agocleanup: typo premable to preamble
zkabelac [Thu, 29 Aug 2024 14:18:24 +0000 (14:18 +0000)]
cleanup: typo premable to preamble

Correct preable, seems even unused.

4 weeks agolibdm: _DOESNT_ to _DOES_NOT_
zkabelac [Thu, 29 Aug 2024 14:30:33 +0000 (14:30 +0000)]
libdm: _DOESNT_ to _DOES_NOT_

Rename internal define DM_NAME_LIST_FLAG_DOESNT_HAVE_UUID
to DM_NAME_LIST_FLAG_DOES_NOT_HAVE_UUID
(currently unused)

4 weeks agolvmlockd: retrive to retrieve
Zdenek Kabelac [Thu, 29 Aug 2024 20:07:20 +0000 (22:07 +0200)]
lvmlockd: retrive to retrieve

Replace retrive with retrieve for internal function.

4 weeks agolibdaemon: daemonise to daemonize
Zdenek Kabelac [Thu, 29 Aug 2024 20:49:24 +0000 (22:49 +0200)]
libdaemon: daemonise to daemonize

Replace daemonise() with daemonize().

4 weeks agolvconvert: use pvmove as part of renamed LV name
zkabelac [Thu, 29 Aug 2024 09:12:41 +0000 (09:12 +0000)]
lvconvert: use pvmove as part of renamed LV name

LV with pvmove_ prefix is not allowed to be created by user
so bigger chance our selected name will never exist.

TODO: probably add code to get generic unused LV name...

4 weeks agolibdm: check for queue name
Zdenek Kabelac [Thu, 29 Aug 2024 21:05:52 +0000 (23:05 +0200)]
libdm: check for queue name

Fix typo and check for queue string within sysfs kernel name.

4 weeks agointegrity: typo interleave_sectors
Zdenek Kabelac [Thu, 29 Aug 2024 19:33:13 +0000 (21:33 +0200)]
integrity: typo  interleave_sectors

Correct emitted parameter name for interleave_sectors for DM table line.

4 weeks agomake: generate 1433637790
Peter Rajnoha [Fri, 30 Aug 2024 12:17:24 +0000 (14:17 +0200)]
make: generate

4 weeks agoman: lvmreport: add note about log/command_log_selection="all"
Peter Rajnoha [Fri, 30 Aug 2024 12:14:02 +0000 (14:14 +0200)]
man: lvmreport: add note about log/command_log_selection="all"

4 weeks agoconfig: update description for log/command_log_selection
Peter Rajnoha [Fri, 30 Aug 2024 12:11:39 +0000 (14:11 +0200)]
config: update description for log/command_log_selection

5 weeks agolvresize: ignore given stripe and stripe size args for raid0 1432115355
Peter Rajnoha [Thu, 29 Aug 2024 11:57:52 +0000 (13:57 +0200)]
lvresize: ignore given stripe and stripe size args for raid0

5 weeks agotoollib: do not accept duplicate device name on pvcreate input 1430114117
Peter Rajnoha [Wed, 28 Aug 2024 08:35:18 +0000 (10:35 +0200)]
toollib: do not accept duplicate device name on pvcreate input

5 weeks agopost-release 1424917128
Marian Csontos [Fri, 23 Aug 2024 14:02:19 +0000 (16:02 +0200)]
post-release

5 weeks agopre-release 1424917303 v2_03_26
Marian Csontos [Fri, 23 Aug 2024 14:02:19 +0000 (16:02 +0200)]
pre-release

5 weeks agolvmlockd: increase dump buffer size 1423920664
David Teigland [Thu, 22 Aug 2024 21:23:07 +0000 (16:23 -0500)]
lvmlockd: increase dump buffer size

6 weeks agoWHATS_NEW: update 1423283245
Zdenek Kabelac [Thu, 22 Aug 2024 12:40:07 +0000 (14:40 +0200)]
WHATS_NEW: update

6 weeks agomake: generate
Zdenek Kabelac [Thu, 22 Aug 2024 12:39:04 +0000 (14:39 +0200)]
make: generate

6 weeks agogcc: single type initializers
Zdenek Kabelac [Thu, 22 Aug 2024 12:45:35 +0000 (14:45 +0200)]
gcc: single type initializers

Older gcc doesn't really like complex types (buffer, struct) to be
initialized without extra {} around such type.
So pick any other 'single type' var from a struct and set it to 0,
rest will do the compiler without emitting a warning.

6 weeks agocleanup: drop extra space
Zdenek Kabelac [Thu, 22 Aug 2024 12:38:40 +0000 (14:38 +0200)]
cleanup: drop extra space

6 weeks agotests: check pvmove on single PV
Zdenek Kabelac [Thu, 22 Aug 2024 12:34:58 +0000 (14:34 +0200)]
tests: check pvmove on single PV

6 weeks agovalidation: support empty lv segments
Zdenek Kabelac [Thu, 22 Aug 2024 12:27:10 +0000 (14:27 +0200)]
validation: support empty lv segments

Revert 373372c8ab3749bc76ced37cec04b00aae6e5979 and instead update
our validation code to handle LVs with empty segment - currently
we should need this only for pvmove operation, thus such LV should
have name  'pvmove%u'.

This fixes a problem where user tried i.e. pvmove on a VG with single
PV - as reported: https://github.com/lvmteam/lvm2/issues/148

Reported-by: bob@redhat.com
7 weeks agoWHATS_NEW: update 1413295909
Peter Rajnoha [Wed, 14 Aug 2024 13:30:30 +0000 (15:30 +0200)]
WHATS_NEW: update

7 weeks agotools: vgscan: accept --refresh option 1413267322
Peter Rajnoha [Wed, 14 Aug 2024 13:12:59 +0000 (15:12 +0200)]
tools: vgscan: accept --refresh option

7 weeks agotools: vgscan: accept --refresh option 1413262980
Peter Rajnoha [Wed, 14 Aug 2024 13:09:50 +0000 (15:09 +0200)]
tools: vgscan: accept --refresh option

7 weeks agotools: args: update description for --refresh
Peter Rajnoha [Wed, 14 Aug 2024 12:59:07 +0000 (14:59 +0200)]
tools: args: update description for --refresh

7 weeks agotools: vgmknodes: use display_lvname 1413186411
Peter Rajnoha [Wed, 14 Aug 2024 12:20:55 +0000 (14:20 +0200)]
tools: vgmknodes: use display_lvname

7 weeks agotools: vgmknodes: handle /dev/mapper content without LV refresh only if udev not... 1413141350
Peter Rajnoha [Wed, 14 Aug 2024 11:53:17 +0000 (13:53 +0200)]
tools: vgmknodes: handle /dev/mapper content without LV refresh only if udev not running

7 weeks agotools: vgmknodes: log error message if LV refresh fails
Peter Rajnoha [Wed, 14 Aug 2024 11:50:22 +0000 (13:50 +0200)]
tools: vgmknodes: log error message if LV refresh fails

7 weeks agotools: vgmknodes: wait for udev first with --refresh, then check /dev 1413077022
Peter Rajnoha [Wed, 14 Aug 2024 11:07:25 +0000 (13:07 +0200)]
tools: vgmknodes: wait for udev first with --refresh, then check /dev

7 weeks agoman: vgmknodes: add note about udev and --refresh 1412959631
Peter Rajnoha [Wed, 14 Aug 2024 09:51:34 +0000 (11:51 +0200)]
man: vgmknodes: add note about udev and --refresh

7 weeks agogitignore: update 1411258796
Peter Rajnoha [Tue, 13 Aug 2024 08:42:17 +0000 (10:42 +0200)]
gitignore: update

The .cache and compile_commands.json is used by popular source crawling and
indexing clang tools which in turn may be integrated with source code editors.

We may reuse the .cache directory for for other caches and temporary
files.

The /doc/.ikiwiki and /public are related to the ikiwiki.

7 weeks agomake: generate 1407456797
Zdenek Kabelac [Fri, 9 Aug 2024 14:34:22 +0000 (16:34 +0200)]
make: generate

7 weeks agoRevert "tests: use put_time" 1407371944
Zdenek Kabelac [Fri, 9 Aug 2024 13:37:59 +0000 (15:37 +0200)]
Revert "tests: use put_time"

This reverts commit b4af2571dbee9dab5717bb166ed63df5ae63974b.
std::put_time is a relatively new feature so breaks builds on older
systems.

7 weeks agotests: add some udev waits 1407347563
Zdenek Kabelac [Mon, 5 Aug 2024 15:01:13 +0000 (17:01 +0200)]
tests: add some udev waits

Avoid possible udev race - since dmsetup create is
not using the same cookie logic as lvm2 commands,
try to avoid racing on some systems with udev scanning.

7 weeks agotests: use put_time
Zdenek Kabelac [Fri, 9 Aug 2024 13:00:14 +0000 (15:00 +0200)]
tests: use put_time

7 weeks agotests: search for delimiter in bounded buffer
Zdenek Kabelac [Fri, 9 Aug 2024 11:13:03 +0000 (13:13 +0200)]
tests: search for delimiter in bounded buffer

7 weeks agocov: annotate known case
Zdenek Kabelac [Mon, 29 Jul 2024 15:29:08 +0000 (17:29 +0200)]
cov: annotate known case

7 weeks agocov: validate list emptiness
Zdenek Kabelac [Mon, 29 Jul 2024 14:53:28 +0000 (16:53 +0200)]
cov: validate list emptiness

Emit internal error for empty list.

7 weeks agocov: validate altdev list is not empty
Zdenek Kabelac [Mon, 29 Jul 2024 14:00:27 +0000 (16:00 +0200)]
cov: validate altdev list is not empty

7 weeks agocov: check for dev_iter_create result
Zdenek Kabelac [Mon, 29 Jul 2024 14:50:41 +0000 (16:50 +0200)]
cov: check for dev_iter_create result

dev_iter_create() may fail in malloc so check
for its error code.

7 weeks agocov: drop unused header inclusion
Zdenek Kabelac [Mon, 29 Jul 2024 13:50:59 +0000 (15:50 +0200)]
cov: drop unused header inclusion

7 weeks agocov: avoid expression overflow
Zdenek Kabelac [Fri, 9 Aug 2024 11:06:01 +0000 (13:06 +0200)]
cov: avoid expression overflow

Use 64bit math to multiply extent_size.

8 weeks agointegrity: add --integritysettings for tuning 1404928847
David Teigland [Mon, 5 Aug 2024 18:20:58 +0000 (13:20 -0500)]
integrity: add --integritysettings for tuning

The option can be used in multiple ways (like --cachesettings):

--integritysettings key=val
--integritysettings 'key1=val1 key2=val2'
--integritysettings key1=val1 --integritysettings key2=val2

Use with lvcreate or lvconvert when integrity is first enabled
to configure:
journal_sectors
journal_watermark
commit_time
bitmap_flush_interval
allow_discards

Use with lvchange to configure (only while inactive):
journal_watermark
commit_time
bitmap_flush_interval
allow_discards

lvchange --integritysettings "" clears any previously configured
settings, so dm-integrity will use its own defaults.

lvs -a -o integritysettings displays configured settings.

2 months agodevices: fix dev_dm_uuid 1397422518
David Teigland [Thu, 1 Aug 2024 16:30:10 +0000 (11:30 -0500)]
devices: fix dev_dm_uuid

If a non-dm device is passed, the dm code doesn't fail and returns
some dm uuid.

2 months agoWHATS_NEW: update 1393308876
Peter Rajnoha [Tue, 30 Jul 2024 08:32:25 +0000 (10:32 +0200)]
WHATS_NEW: update

2 months agotests: add tests for autoswitching to JSON format for log messages 11/head 1385984161 1386311139
Peter Rajnoha [Mon, 3 Jun 2024 12:54:02 +0000 (14:54 +0200)]
tests: add tests for autoswitching to JSON format for log messages

2 months agomake: generate
Peter Rajnoha [Wed, 20 Mar 2024 14:01:45 +0000 (15:01 +0100)]
make: generate

2 months agoreporter: simplify checking output format setting in report_format_init
Peter Rajnoha [Wed, 20 Mar 2024 12:58:04 +0000 (13:58 +0100)]
reporter: simplify checking output format setting in report_format_init

2 months agoconfig_settings: fix typo
Peter Rajnoha [Wed, 20 Mar 2024 14:00:47 +0000 (15:00 +0100)]
config_settings: fix typo

2 months agoconfig: use default log/command_log_report=1 for json/json_std output format
Peter Rajnoha [Wed, 20 Mar 2024 11:41:57 +0000 (12:41 +0100)]
config: use default log/command_log_report=1 for json/json_std output format

log/command_log_report config setting defaults to 1 now if json or json_std
output format is used (either by setting report/output_format config
setting or using --reportformat cmd line arg).

This means that if we use json/json_std output format, the command log
messages are then part of the json output too, not interleaved as
unstructured text mixed with the json output.

If log/command_log_report is set explicitly in the config, then we still
respect that, no matter what output format is used currently. In this
case, users can still separate and redirect the output by using
LVM_OUT_FD, LVM_ERR_FD and LVM_REPORT_FD so that the different types
do not interleave with the json/json_std output.

2 months agoWHATS_NEW 1380264211
Heinz Mauelshagen [Fri, 19 Jul 2024 11:28:30 +0000 (13:28 +0200)]
WHATS_NEW

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