]> sourceware.org Git - lvm2.git/log
lvm2.git
5 years agodevicemapper: retry remove even for subLVs
Zdenek Kabelac [Thu, 8 Nov 2018 11:12:58 +0000 (12:12 +0100)]
devicemapper: retry remove even for subLVs

With older systems and udevs we don't have control over scanning of lvm2
internal devices - so far we set retry-removal only for top-level LVs,
but in occasional cases udev can be 'fast enough' to open device for
scanning and prevent removal of such device from DM table.

So to combat this case - try to pass 'retry' flag also for removal of
internal device so see how many races can go away with this simple
patch.

Note: patch is applied only to internal version of libdm so the external
API remains working in the old way for now.

5 years agoactivation: trimming string is expected
Zdenek Kabelac [Thu, 8 Nov 2018 09:02:28 +0000 (10:02 +0100)]
activation: trimming string is expected

Commit 813347cf84617a946d9184f44c5fbd275bb41766 added extra validation,
however in this particular we do want to trim suffix out so rather ignore
resulting error code here intentionaly.

5 years agodevices: reuse bcache fd when getting block size
David Teigland [Tue, 6 Nov 2018 22:03:17 +0000 (16:03 -0600)]
devices: reuse bcache fd when getting block size

This avoids an unnecessary open() on the device.

5 years agoAdd dm-writecache support
David Teigland [Mon, 27 Aug 2018 19:53:09 +0000 (14:53 -0500)]
Add dm-writecache support

dm-writecache is used like dm-cache with a standard LV
as the cache.

$ lvcreate -n main -L 128M -an foo /dev/loop0

$ lvcreate -n fast -L 32M -an foo /dev/pmem0

$ lvconvert --type writecache --cachepool fast foo/main

$ lvs -a foo -o+devices
  LV            VG  Attr       LSize   Origin        Devices
  [fast]        foo -wi-------  32.00m               /dev/pmem0(0)
  main          foo Cwi------- 128.00m [main_wcorig] main_wcorig(0)
  [main_wcorig] foo -wi------- 128.00m               /dev/loop0(0)

$ lvchange -ay foo/main

$ dmsetup table
foo-main_wcorig: 0 262144 linear 7:0 2048
foo-main: 0 262144 writecache p 253:4 253:3 4096 0
foo-fast: 0 65536 linear 259:0 2048

$ lvchange -an foo/main

$ lvconvert --splitcache foo/main

$ lvs -a foo -o+devices
  LV   VG  Attr       LSize   Devices
  fast foo -wi-------  32.00m /dev/pmem0(0)
  main foo -wi------- 128.00m /dev/loop0(0)

5 years agoAllow dm-cache cache device to be standard LV
David Teigland [Fri, 17 Aug 2018 20:45:52 +0000 (15:45 -0500)]
Allow dm-cache cache device to be standard LV

If a single, standard LV is specified as the cache, use
it directly instead of converting it into a cache-pool
object with two separate LVs (for data and metadata).

With a single LV as the cache, lvm will use blocks at the
beginning for metadata, and the rest for data.  Separate
dm linear devices are set up to point at the metadata and
data areas of the LV.  These dm devs are given to the
dm-cache target to use.

The single LV cache cannot be resized without recreating it.

If the --poolmetadata option is used to specify an LV for
metadata, then a cache pool will be created (with separate
LVs for data and metadata.)

Usage:

$ lvcreate -n main -L 128M vg /dev/loop0

$ lvcreate -n fast -L 64M vg /dev/loop1

$ lvs -a vg
  LV   VG Attr       LSize   Type   Devices
  main vg -wi-a----- 128.00m linear /dev/loop0(0)
  fast vg -wi-a-----  64.00m linear /dev/loop1(0)

$ lvconvert --type cache --cachepool fast vg/main

$ lvs -a vg
  LV           VG Attr       LSize   Origin       Pool  Type   Devices
  [fast]       vg Cwi---C---  64.00m                     linear /dev/loop1(0)
  main         vg Cwi---C--- 128.00m [main_corig] [fast] cache  main_corig(0)
  [main_corig] vg owi---C--- 128.00m                     linear /dev/loop0(0)

$ lvchange -ay vg/main

$ dmsetup ls
vg-fast_cdata   (253:4)
vg-fast_cmeta   (253:5)
vg-main_corig   (253:6)
vg-main (253:24)
vg-fast (253:3)

$ dmsetup table
vg-fast_cdata: 0 98304 linear 253:3 32768
vg-fast_cmeta: 0 32768 linear 253:3 0
vg-main_corig: 0 262144 linear 7:0 2048
vg-main: 0 262144 cache 253:5 253:4 253:6 128 2 metadata2 writethrough mq 0
vg-fast: 0 131072 linear 7:1 2048

$ lvchange -an vg/min

$ lvconvert --splitcache vg/main

$ lvs -a vg
  LV   VG Attr       LSize   Type   Devices
  fast vg -wi-------  64.00m linear /dev/loop1(0)
  main vg -wi------- 128.00m linear /dev/loop0(0)

5 years agocache: factor lvchange_cache
David Teigland [Mon, 5 Nov 2018 22:38:08 +0000 (16:38 -0600)]
cache: factor lvchange_cache

to prepare for future addition

5 years agocache: factor report functions
David Teigland [Mon, 5 Nov 2018 22:33:34 +0000 (16:33 -0600)]
cache: factor report functions

to prepare for future addition

5 years agocache: reorganize cache_set_policy
David Teigland [Mon, 5 Nov 2018 22:14:45 +0000 (16:14 -0600)]
cache: reorganize cache_set_policy

to prepare for future addition

5 years agocache: improve error message about flush
David Teigland [Mon, 5 Nov 2018 22:10:49 +0000 (16:10 -0600)]
cache: improve error message about flush

5 years agocache: improve warning message about cached thin data
David Teigland [Mon, 5 Nov 2018 22:08:31 +0000 (16:08 -0600)]
cache: improve warning message about cached thin data

5 years agocache: rename variable in _cache_add_target_line
David Teigland [Mon, 5 Nov 2018 22:05:28 +0000 (16:05 -0600)]
cache: rename variable in _cache_add_target_line

so it is not specific to lv/seg type

5 years agocache: rename variable in _cache_display
David Teigland [Mon, 5 Nov 2018 21:56:28 +0000 (15:56 -0600)]
cache: rename variable in _cache_display

so it is not specific to lv/seg type

5 years agocache: clean up segment line creation
David Teigland [Mon, 5 Nov 2018 21:50:37 +0000 (15:50 -0600)]
cache: clean up segment line creation

5 years agocache: factor getting cache mode
David Teigland [Mon, 5 Nov 2018 21:46:07 +0000 (15:46 -0600)]
cache: factor getting cache mode

so part can be called separately

5 years agocache: factor settings text import export
David Teigland [Mon, 5 Nov 2018 21:23:23 +0000 (15:23 -0600)]
cache: factor settings text import export

Pull out the export/import of settings text so
it can be used later from elsewhere.

5 years agocache: add cache_mode_num_to_str
David Teigland [Mon, 5 Nov 2018 20:53:52 +0000 (14:53 -0600)]
cache: add cache_mode_num_to_str

Requires only string and number, no specific lv/seg type.

5 years agotests: fix shell quoting
Zdenek Kabelac [Tue, 6 Nov 2018 16:26:15 +0000 (17:26 +0100)]
tests: fix shell quoting

5 years agotests: add wait for udev
Zdenek Kabelac [Tue, 6 Nov 2018 14:01:52 +0000 (15:01 +0100)]
tests: add wait for udev

Since the test is currently directly working with live directory,
which can be getting updates from system's udev - add wait
for settling so removal of all known PVs happens after that.
But still this has major influce on behavior of running system,
so the test should never be executed on a user used box.

5 years agopvscan: add error checking for write of online files
Zdenek Kabelac [Tue, 6 Nov 2018 14:04:35 +0000 (15:04 +0100)]
pvscan: add error checking for write of online files

When there is any write failure during writting file,
report this upward as error and fail command instead
of continuing futher.

5 years agodebug: missing backtrace
Zdenek Kabelac [Fri, 2 Nov 2018 21:19:26 +0000 (22:19 +0100)]
debug: missing backtrace

5 years agodebug: tracing fclose failure
Zdenek Kabelac [Fri, 2 Nov 2018 21:00:26 +0000 (22:00 +0100)]
debug: tracing fclose failure

Using log_debug (not returning error code) to trace possible
failure of fclose().

5 years agocleanup: move cast to det_t into MKDEV macro
Zdenek Kabelac [Sat, 3 Nov 2018 16:13:10 +0000 (17:13 +0100)]
cleanup: move cast to det_t into MKDEV macro

5 years agocov: avoid unsing unchecked label_scan_open
Zdenek Kabelac [Sat, 3 Nov 2018 16:19:33 +0000 (17:19 +0100)]
cov: avoid unsing unchecked label_scan_open

Drop extra call too label_scan_open() without checking return value,
and let code go through next call bellow.

5 years agocov: remove unused assigns
Zdenek Kabelac [Sat, 3 Nov 2018 15:48:20 +0000 (16:48 +0100)]
cov: remove unused assigns

5 years agocov: hide intentionaly ptr arithmetic report
Zdenek Kabelac [Fri, 2 Nov 2018 21:29:43 +0000 (22:29 +0100)]
cov: hide intentionaly ptr arithmetic report

Only single region count is ever replaced with on-stack uint64_t.

5 years agocov: mark warning as expected one
Zdenek Kabelac [Thu, 1 Nov 2018 14:44:13 +0000 (15:44 +0100)]
cov: mark warning as expected one

5 years agocov: trace failing pthread_kill
Zdenek Kabelac [Fri, 2 Nov 2018 21:11:18 +0000 (22:11 +0100)]
cov: trace failing pthread_kill

5 years agocov: add missing check for dm_strncpy
Zdenek Kabelac [Fri, 2 Nov 2018 20:50:29 +0000 (21:50 +0100)]
cov: add missing check for dm_strncpy

5 years agocov: overflow before widen
Zdenek Kabelac [Fri, 2 Nov 2018 20:10:21 +0000 (21:10 +0100)]
cov: overflow before widen

Evaluate as 64bit arithmetic (instead of doing 32bit mults which can
in this case purely teoretically overflow).

5 years agocov: explicit ignore if failures
Zdenek Kabelac [Thu, 1 Nov 2018 14:38:30 +0000 (15:38 +0100)]
cov: explicit ignore if failures

Here we can't do anything better than just ignore syscall failures
(with silence as there is no loging mechanism)

5 years agocov: split check for type assignment
Zdenek Kabelac [Thu, 1 Nov 2018 14:33:34 +0000 (15:33 +0100)]
cov: split check for type assignment

Check that type is always defined, if not make it explicit internal
error (although logged as debug - so catched only with proper lvm.conf
setting).
This ensures later type being NULL can't be dereferenced with coredump.

5 years agocov: remove uneeded code
Zdenek Kabelac [Thu, 1 Nov 2018 14:29:05 +0000 (15:29 +0100)]
cov: remove uneeded code

Since clvmd was dropped this code become useless.

5 years agolabel: add stack trace for failing dev_set_last_byte
Zdenek Kabelac [Fri, 2 Nov 2018 21:19:47 +0000 (22:19 +0100)]
label: add stack trace for failing dev_set_last_byte

Temporarily add check for failure, but whole function
needs to be likely traced for error result.

FIXME

5 years agolvmlockd: use standard major minor functions
David Teigland [Fri, 2 Nov 2018 20:58:47 +0000 (15:58 -0500)]
lvmlockd: use standard major minor functions

5 years agolvmlockd: fix handling of sanlock release error
David Teigland [Fri, 2 Nov 2018 17:11:09 +0000 (12:11 -0500)]
lvmlockd: fix handling of sanlock release error

When sanlock_release returns an error because of an i/o
timeout releasing the lease on disk, lvmlockd should just
consider the lock released.  sanlock will continue trying
to release the lease on disk after the original request
times out.

5 years agolvmlockd: deactivate lvmlock LV in vgchange
David Teigland [Thu, 25 Oct 2018 15:51:25 +0000 (10:51 -0500)]
lvmlockd: deactivate lvmlock LV in vgchange

When changing a VG to lock_type sanlock, the internal
lvmlock LV was left active at the end of vgchange.
It shouldn't be active until lockstart.

5 years agolvmlockd: fix size/resizing of internal lvmlock LV for sanlock
David Teigland [Wed, 24 Oct 2018 16:23:40 +0000 (11:23 -0500)]
lvmlockd: fix size/resizing of internal lvmlock LV for sanlock

The lvmlock LV size was not adjusted correctly for 512 vs 4K
sector sizes which influence the lease size used by sanlock.

When lvmlock was automatically extended, the zeroing through
bcache wasn't working.

5 years agolvmlockd: use new sanlock sector/align interface
David Teigland [Mon, 22 Oct 2018 20:45:23 +0000 (15:45 -0500)]
lvmlockd: use new sanlock sector/align interface

The choice about sector size and lease align size is
now made by the sanlock user, in this case lvmlockd.
This will allow lvmlockd to use other lease sizes in
the future.  This also prevents breakage if hosts
report different sector sizes, or the sector size
reported by a device changes.

5 years agodmsetup: fix stats report command output
Bryn M. Reeves [Thu, 1 Nov 2018 16:49:05 +0000 (16:49 +0000)]
dmsetup: fix stats report command output

Since the stats handle is neither bound nor listed before the
attempt to call dm_stats_get_nr_regions(), it will always return
zero: this prevents reporting of any dmstats regions on any
device.

Remove the dm_stats_get_nr_regions() check and instead rely on
the correct return status from dm_stats_populate() which only
returns 0 in the case that there are regions to inspect (and
which logs a specific error for all other cases).

Reported-by: Bryan Gurney <bgurney@redhat.com>
5 years agolibdm-stats: move no regions warning after dm_stats_list()
Bryn M. Reeves [Thu, 1 Nov 2018 16:47:56 +0000 (16:47 +0000)]
libdm-stats: move no regions warning after dm_stats_list()

It doesn't make sense to test or warn about the region count until
the stats handle has been listed: at this point it may or may not
contain valid information (but is guaranteed to be correct after
the list).

5 years agopost-release
Marian Csontos [Wed, 31 Oct 2018 14:41:22 +0000 (15:41 +0100)]
post-release

5 years agopre-release v2_03_01
Marian Csontos [Wed, 31 Oct 2018 14:39:50 +0000 (15:39 +0100)]
pre-release

5 years agobuild: Fix CLDFLAGS default
Marian Csontos [Mon, 22 Oct 2018 10:56:34 +0000 (12:56 +0200)]
build: Fix CLDFLAGS default

5 years agometadata: prevent writing beyond metadata area
David Teigland [Mon, 29 Oct 2018 21:53:17 +0000 (16:53 -0500)]
metadata: prevent writing beyond metadata area

lvm uses a bcache block size of 128K.  A bcache block
at the end of the metadata area will overlap the PEs
from which LVs are allocated.  How much depends on
alignments.  When lvm reads and writes one of these
bcache blocks to update VG metadata, it can also be
reading and writing PEs that belong to an LV.

If these overlapping PEs are being written to by the
LV user (e.g. filesystem) at the same time that lvm
is modifying VG metadata in the overlapping bcache
block, then the user's updates to the PEs can be lost.

This patch is a quick hack to prevent lvm from writing
past the end of the metadata area.

5 years agoRevert "raid: fix left behind SubLVs"
Heinz Mauelshagen [Thu, 25 Oct 2018 12:30:32 +0000 (14:30 +0200)]
Revert "raid: fix left behind SubLVs"

This reverts commit 16ae968d24b4fe3264dc9b46063345ff2846957b.

We need to come up with a better fix, because we fall short
wiping all known signatures when not using the wipe_lv API.

5 years agoraid: fix left behind SubLVs
Heinz Mauelshagen [Wed, 24 Oct 2018 13:26:19 +0000 (15:26 +0200)]
raid: fix left behind SubLVs

lvm metadata writes, commits and activations are performed
for (newly) allocated RAID metadata SubLVs to wipe any preexisiting
data thus avoid false raid superblock positives on RaidLV activation.

This process can be interrupted by command or system crashs
thus leaving stale SubLVs in the lvm metadata as a problem.

Because we hold an exclusive lock in this metadata SubLV wiping
process, we can address this problem by avoiding aforementioned
commits/writes/activations altogether wiping the respective first
sector of the first physical extent allocated to any metadata SubLV
directly via the existing dev_set() API.

Succeeds all LVM RAID tests.

Related: rhbz1633167

5 years agospec: lvmdbusd requires python3 setuptools
Marian Csontos [Mon, 22 Oct 2018 10:51:51 +0000 (12:51 +0200)]
spec: lvmdbusd requires python3 setuptools

5 years agotests: add new test for lvm on md devices
David Teigland [Thu, 18 Oct 2018 18:06:42 +0000 (13:06 -0500)]
tests: add new test for lvm on md devices

5 years agotests: missed char in list
Zdenek Kabelac [Wed, 17 Oct 2018 08:41:25 +0000 (10:41 +0200)]
tests: missed char in list

'=' also doesn't belong to property name.

5 years agotests: better support for /var/run
Zdenek Kabelac [Tue, 16 Oct 2018 21:46:50 +0000 (23:46 +0200)]
tests: better support for /var/run

5 years agotests: add raid target presence check
Zdenek Kabelac [Tue, 16 Oct 2018 21:44:15 +0000 (23:44 +0200)]
tests: add raid target presence check

5 years agotests: fix conf generation with older shells
Zdenek Kabelac [Tue, 16 Oct 2018 21:44:45 +0000 (23:44 +0200)]
tests: fix conf generation with older shells

For shells without array support, fix selecting bug,
and require keyword to end with some 'space' char,
so  'scan' is not matched with  'scan_var'.

5 years agotests: properly enforce v1
Zdenek Kabelac [Tue, 16 Oct 2018 19:32:28 +0000 (21:32 +0200)]
tests: properly enforce v1

Since with smq policy we can still pick format v2 - enforce
format v1 explicitely.

5 years agotests: timing without /usr/bin/time
Zdenek Kabelac [Tue, 16 Oct 2018 18:03:21 +0000 (20:03 +0200)]
tests: timing without /usr/bin/time

Use just 'date' so the 'time' package doesn't need to be installed
just for this purpose.

5 years agotests: fix tested targeted
Zdenek Kabelac [Tue, 16 Oct 2018 17:05:19 +0000 (19:05 +0200)]
tests: fix tested targeted

Fix cut&paste bug.

5 years agocov: shutdown warning
Zdenek Kabelac [Tue, 16 Oct 2018 19:46:44 +0000 (21:46 +0200)]
cov: shutdown warning

Since previous patch reverted coverity patch as this case is intentional,
provide override this coverity warning.

5 years agorevert "cov: dm stats missed terminating null"
Zdenek Kabelac [Tue, 16 Oct 2018 17:13:34 +0000 (19:13 +0200)]
revert "cov: dm stats missed terminating null"

This reverts commit 20971f7034cbd329f873e08869bfb7acf3f1ac0e
as the parsing of 'dmstatus' started to fail on present \0 char.

5 years agofix: cov: missed return value test
David Teigland [Mon, 15 Oct 2018 16:35:33 +0000 (11:35 -0500)]
fix: cov: missed return value test

use the existing error paths

5 years agocov: avoid selfrecursive inclusion of toolcontext.h
Zdenek Kabelac [Mon, 15 Oct 2018 14:50:25 +0000 (16:50 +0200)]
cov: avoid selfrecursive inclusion of  toolcontext.h

5 years agocov: drop uneeded header files
Zdenek Kabelac [Mon, 15 Oct 2018 13:08:09 +0000 (15:08 +0200)]
cov: drop uneeded header files

5 years agocov: pvscan ensure sigle_devs list is always initialized
Zdenek Kabelac [Mon, 15 Oct 2018 14:57:32 +0000 (16:57 +0200)]
cov: pvscan ensure sigle_devs list is always initialized

5 years agocov: ignore error of vsnprintf
Zdenek Kabelac [Mon, 15 Oct 2018 15:37:30 +0000 (17:37 +0200)]
cov: ignore error of vsnprintf

5 years agocov: add missing error path check for label_scan_open
Zdenek Kabelac [Mon, 15 Oct 2018 14:39:28 +0000 (16:39 +0200)]
cov: add missing error path check for label_scan_open

5 years agocov: make sure label scans valid lvinfo
Zdenek Kabelac [Mon, 15 Oct 2018 14:29:09 +0000 (16:29 +0200)]
cov: make sure label scans valid lvinfo

5 years agocov: log failing unlink
Zdenek Kabelac [Mon, 15 Oct 2018 14:21:01 +0000 (16:21 +0200)]
cov: log failing unlink

5 years agocov: check closedir result
Zdenek Kabelac [Mon, 15 Oct 2018 14:19:49 +0000 (16:19 +0200)]
cov: check closedir result

Log problems around failing closedir().

5 years agocov: check dm_strncpy result
Zdenek Kabelac [Mon, 15 Oct 2018 14:16:14 +0000 (16:16 +0200)]
cov: check dm_strncpy result

5 years agocov: check dev_close_immediate
Zdenek Kabelac [Mon, 15 Oct 2018 14:06:35 +0000 (16:06 +0200)]
cov: check dev_close_immediate

Function can report log_error() on fail path.

5 years agocov: ensure vars are set
Zdenek Kabelac [Mon, 15 Oct 2018 13:27:45 +0000 (15:27 +0200)]
cov: ensure vars are set

Make sure, tmp_begin and tmp_end are always set, even for blind
coverity.

5 years agocov: dm node message fix missing initilization
Zdenek Kabelac [Mon, 15 Oct 2018 13:24:51 +0000 (15:24 +0200)]
cov: dm node message fix missing initilization

In 2 teoretical error path the 'r' value has not been set to
proper value before possible use in error path.

5 years agocov: fix error path
Zdenek Kabelac [Mon, 15 Oct 2018 13:20:45 +0000 (15:20 +0200)]
cov: fix error path

Avoid calling 'bad:' section since we have not set 'fd' yet
and instead directly return failing 0 value.

5 years agocov: fix failing filter initialization
Zdenek Kabelac [Mon, 15 Oct 2018 13:17:07 +0000 (15:17 +0200)]
cov: fix failing filter initialization

When persistent_filter_create() fails, the existing passed filter
should be preserved, so it could be properly deleted on
error path - so new pfilter is assigned instead.

5 years agocov: fix typo
Zdenek Kabelac [Mon, 15 Oct 2018 13:11:34 +0000 (15:11 +0200)]
cov: fix typo

Avoid double assing same value.

5 years agocov: add check for positive value
Zdenek Kabelac [Mon, 15 Oct 2018 13:02:09 +0000 (15:02 +0200)]
cov: add check for positive value

As pgsize parameter for _init_free_list() can't be negative,
report problem in case for any reason we would get negative number.

5 years agocov: dmstats check for failing malloc
Zdenek Kabelac [Mon, 15 Oct 2018 12:58:24 +0000 (14:58 +0200)]
cov: dmstats check for failing malloc

Add missing check for allocation success.

5 years agocov: add at least ASSERT
Zdenek Kabelac [Mon, 15 Oct 2018 12:53:36 +0000 (14:53 +0200)]
cov: add at least ASSERT

Seems lot of code here can't handle failing allocation.
Meanwhile before bigger fix put in asserts in place.

5 years agocov: fix missing null allocation check
Zdenek Kabelac [Mon, 15 Oct 2018 12:52:49 +0000 (14:52 +0200)]
cov: fix missing null allocation check

5 years agocov: dm stats missed terminating null
Zdenek Kabelac [Mon, 15 Oct 2018 12:45:16 +0000 (14:45 +0200)]
cov: dm stats missed terminating null

Coverity noticed allocating insufficient memory
for the terminating null of the string.

5 years agocov: index off by one
Zdenek Kabelac [Mon, 15 Oct 2018 12:43:25 +0000 (14:43 +0200)]
cov: index off by one

Basically apply stable patch fdb6ef8a85e9adc4805202b3200b17bd3b351982 to internal libdm version.

5 years agocov: fix leaking openned file descriptors
Zdenek Kabelac [Mon, 15 Oct 2018 12:34:31 +0000 (14:34 +0200)]
cov: fix leaking openned file descriptors

Once the FD is no longer needed, close it.

5 years agocov: fix memleak on bcache io error path
Zdenek Kabelac [Mon, 15 Oct 2018 12:29:52 +0000 (14:29 +0200)]
cov: fix memleak on bcache io error path

Drop allocated IO.

merge free bache

5 years agocov: dmeventd plugin fix memleak
Zdenek Kabelac [Mon, 15 Oct 2018 12:21:55 +0000 (14:21 +0200)]
cov: dmeventd plugin fix memleak

Fix memory leak when policy command fails too frequently and
plugin decided to skip it.

5 years agocov: drop check for pointer
Zdenek Kabelac [Mon, 15 Oct 2018 12:19:22 +0000 (14:19 +0200)]
cov: drop check for pointer

Pointer must be always set and it's been already dereferenced.

5 years agocov: warn about failing sigaction
Zdenek Kabelac [Mon, 15 Oct 2018 12:15:58 +0000 (14:15 +0200)]
cov: warn about failing sigaction

5 years agocov: missed return value test
Zdenek Kabelac [Mon, 15 Oct 2018 12:12:18 +0000 (14:12 +0200)]
cov: missed return value test

Check validity of read.

5 years agobuild: make genrate config file
Marian Csontos [Thu, 11 Oct 2018 08:44:09 +0000 (10:44 +0200)]
build: make genrate config file

5 years agoconfig: Fix version for VDO
Marian Csontos [Thu, 11 Oct 2018 08:53:28 +0000 (10:53 +0200)]
config: Fix version for VDO

5 years agobuild: Use PYTHON env. variable when provided
Marian Csontos [Wed, 10 Oct 2018 10:40:09 +0000 (12:40 +0200)]
build: Use PYTHON env. variable when provided

5 years agopost-release
Marian Csontos [Wed, 10 Oct 2018 11:03:18 +0000 (13:03 +0200)]
post-release

5 years agopre-release v2_03_00
Marian Csontos [Tue, 21 Aug 2018 15:18:20 +0000 (17:18 +0200)]
pre-release

5 years agobuild: gcc can be fussy about order of libs
Marian Csontos [Wed, 10 Oct 2018 09:10:42 +0000 (11:10 +0200)]
build: gcc can be fussy about order of libs

5 years agobuild: make generate
Marian Csontos [Wed, 10 Oct 2018 06:31:55 +0000 (08:31 +0200)]
build: make generate

5 years agotests: check activation of many thin-pool
Zdenek Kabelac [Wed, 5 Sep 2018 12:36:16 +0000 (14:36 +0200)]
tests: check activation of many thin-pool

Artifitical testing of monitoring of many thin-pools with low number
of resources in use (need only few pools to actually hit the race).

5 years agodmeventd: lvm2 plugin uses envvar registry
Zdenek Kabelac [Mon, 27 Aug 2018 08:18:26 +0000 (10:18 +0200)]
dmeventd: lvm2 plugin uses envvar registry

Thin plugin started to use configuble setting to allow to configure
usage of external scripts - however to read this value it needed to
execute internal command as dmeventd itself has no access to lvm.conf
and the API for dmeventd plugin has been kept stable.

The call of command itself was not normally 'a big issue' until users
started to use higher number of monitored LVs and execution of command
got stuck because other monitored resource already started to execute
some other lvm2 command and become blocked waiting on VG lock.

This scenario revealed necesity to somehow avoid calling lvm2 command
during resource registration - but this requires bigger changes - so
meanwhile this patch tries to minimize the possibility to hit this race
by obtaining any configurable setting just once - such patch is small
and covers majority of problem - yet better solution needs to be
introduced likely with bigger rework of dmeventd.

TODO: avoid blocking registration of resource with execution of lvm2
commands since those can get stuck waiting on mutexes.

5 years agospec: No %ghost for dirs at tmpfiles.d
Marian Csontos [Tue, 2 Oct 2018 15:02:37 +0000 (17:02 +0200)]
spec: No %ghost for dirs at tmpfiles.d

%ghost should not be used for directories created by systemd-tmpfiles.

This may prevent package from working right after installation without
invoking systemd-tmpfiles.

See: https://pagure.io/packaging-committee/issue/439

5 years agometadata: clarify comments about max size
David Teigland [Mon, 24 Sep 2018 20:27:03 +0000 (15:27 -0500)]
metadata: clarify comments about max size

Since there is now a direct limit of half the space.

5 years agometadata: add direct size limit
David Teigland [Mon, 24 Sep 2018 19:41:58 +0000 (14:41 -0500)]
metadata: add direct size limit

Previously the size was limited by checking if the
old and new copies of the metadata overlapped.
This generally limited the size to about half of
the total space, but it could be larger given the
size differences between old and new.  Now add a
direct check to limit the size to half the space.

5 years agometadata: remove incorrect comment about alignment
David Teigland [Thu, 20 Sep 2018 20:37:06 +0000 (15:37 -0500)]
metadata: remove incorrect comment about alignment

5 years agometadata: add comment about negative impact of rounding
David Teigland [Thu, 20 Sep 2018 19:15:49 +0000 (14:15 -0500)]
metadata: add comment about negative impact of rounding

5 years agometadata: remove an unused and incorrect overflow check
David Teigland [Thu, 20 Sep 2018 18:53:50 +0000 (13:53 -0500)]
metadata: remove an unused and incorrect overflow check

Remove another instance of an invalid check for metadata
overflow during read.  The previous instance was removed
in commit 5fb15b193.

This was checking for metadata that that overflowed the
circular disk metadata buffer during read, but such metadata
cannot be written, so it shouldn't be possible to find see.
Also, the check was incorrect and could trigger when there
was no overflow.

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