]> sourceware.org Git - lvm2.git/log
lvm2.git
5 years agocov: fix memory leak
Zdenek Kabelac [Thu, 14 Nov 2019 15:23:38 +0000 (16:23 +0100)]
cov: fix memory leak

Reapply 23cc7ddc50e2800a6dc248de897a4c88c1514160 to internal version
of libdm.

5 years agofix dev_unset_last_byte after write error
Heming Zhao [Wed, 13 Nov 2019 15:15:07 +0000 (09:15 -0600)]
fix dev_unset_last_byte after write error

dev_unset_last_byte() must be called while the fd is still valid.
After a write error, dev_unset_last_byte() must be called before
closing the dev and resetting the fd.

In the write error path, dev_unset_last_byte() was being called
after label_scan_invalidate() which meant that it would not unset
the last_byte values.

After a write error, dev_unset_last_byte() is now called in
dev_write_bytes() before label_scan_invalidate(), instead of by
the caller of dev_write_bytes().

In the common case of a successful write, the sequence is still:
dev_set_last_byte(); dev_write_bytes(); dev_unset_last_byte();

Signed-off-by: Zhao Heming <heming.zhao@suse.com>
5 years agoWHATS_NEW: update
Zdenek Kabelac [Mon, 11 Nov 2019 16:44:14 +0000 (17:44 +0100)]
WHATS_NEW: update

5 years agotests: add test of resize of different segtypes
Zdenek Kabelac [Mon, 11 Nov 2019 16:43:24 +0000 (17:43 +0100)]
tests: add test of resize of different segtypes

5 years agolvextend: fix resizing volumes of different segtype
Zdenek Kabelac [Mon, 11 Nov 2019 16:36:58 +0000 (17:36 +0100)]
lvextend: fix resizing volumes of different segtype

When resizing 2 volumes like  thin-pool and it's metadata and they
would be of a different type - command would be actually expecting
both LVs being of a same segtype - and would throw an error in
case they are different.

This patch fixes is by setting a new segtype from last segment of
2nd. extented device.

Also it fixes the possible 'percentage' extension setup that
might have been used for 'primary' volume - while the 'secondary'
LV always goes with direct size - as we do not support 'percentage'
setup for them

This affects maily usage of thin-pool where the extension of
thin-pool data size may also lead to extension of metadata size.

5 years agotests: add extra settle
Zdenek Kabelac [Fri, 8 Nov 2019 14:09:17 +0000 (15:09 +0100)]
tests: add extra settle

To avoid removing, while 'add' might not have been processed yet.
(when emulating reboot in pvmove-restart)

5 years agotests: skip unneeded status check
Zdenek Kabelac [Fri, 8 Nov 2019 12:12:31 +0000 (13:12 +0100)]
tests: skip unneeded status check

If 'remove' was succesful - we can break loop immediatelly.

5 years agodaemons: check for non-zero thread_id
Zdenek Kabelac [Fri, 8 Nov 2019 12:10:49 +0000 (13:10 +0100)]
daemons: check for non-zero thread_id

Do not call pthread_join if thread_id would be 0.

5 years agodaemon: better error path handling for shutdown
Zdenek Kabelac [Fri, 8 Nov 2019 12:07:06 +0000 (13:07 +0100)]
daemon: better error path handling for shutdown

Report errors for open in better order.
Ensure descriptors are not leaked.

5 years agocov: ensure read_ahead is available
Zdenek Kabelac [Fri, 1 Nov 2019 20:01:51 +0000 (21:01 +0100)]
cov: ensure read_ahead is available

Make sure read_ahead pointer is not NULL when quering for RA.

5 years agocov: missing checks of syscalls
Zdenek Kabelac [Fri, 8 Nov 2019 14:42:42 +0000 (15:42 +0100)]
cov: missing checks of syscalls

Check for sigprocmask errors

5 years agogcc: avoid declaration shadowing
Zdenek Kabelac [Fri, 1 Nov 2019 18:35:28 +0000 (19:35 +0100)]
gcc: avoid declaration shadowing

dev_name is global in device.h

5 years agoman: adjust 'disks' to 'devices' as used throughout
Heinz Mauelshagen [Thu, 7 Nov 2019 16:45:37 +0000 (17:45 +0100)]
man: adjust 'disks' to 'devices' as used throughout

5 years agotest: Fix metadata-zero-space with long VG names
Marian Csontos [Thu, 24 Oct 2019 11:55:23 +0000 (13:55 +0200)]
test: Fix metadata-zero-space with long VG names

5 years agotests: be happy with less then 90 percent
Zdenek Kabelac [Fri, 1 Nov 2019 15:21:52 +0000 (16:21 +0100)]
tests: be happy with less then 90 percent

Thin metadata evolve between kernel version, so it's not always
precisely predictible its usage - so let's met test happy,
when it gets bellow 90%.

5 years agotests: skip test if scsi_debug is not available
Zdenek Kabelac [Fri, 1 Nov 2019 15:07:20 +0000 (16:07 +0100)]
tests: skip test if scsi_debug is not available

5 years agotests: slowdown delay of raid
Zdenek Kabelac [Fri, 1 Nov 2019 15:04:09 +0000 (16:04 +0100)]
tests: slowdown delay of raid

Slowdown 'delay' more.

5 years agotests: conversion only of exclusive lv
Zdenek Kabelac [Fri, 1 Nov 2019 14:59:17 +0000 (15:59 +0100)]
tests: conversion only of exclusive lv

We can 'cache' only exclusively active LV in cluster.

5 years agotests: avoid checking command result in cluster
Zdenek Kabelac [Fri, 1 Nov 2019 14:46:16 +0000 (15:46 +0100)]
tests: avoid checking command result in cluster

When running cluster test with clvmd, the actual 'monitoring'
happens in cluster - so the 'already monitored' message
is also logged within clvmd code and the command cannot
see such effect.

clvmd was incapable to report this information back to command
so it cannot be displayed this way.

Add 'lvs -o+seg_monitor' validation which also works in clustered mode.

5 years agoWHATS_NEW: update
Zdenek Kabelac [Thu, 31 Oct 2019 14:43:02 +0000 (15:43 +0100)]
WHATS_NEW: update

5 years agoactivation: drop removed declaration
Zdenek Kabelac [Thu, 31 Oct 2019 14:33:09 +0000 (15:33 +0100)]
activation: drop removed declaration

Seems this function has been removed long time ago with:
3e781ea446bb7ddc9a494cbba6b6104dd51c3910

5 years agotests: reduce space requirements
Zdenek Kabelac [Thu, 31 Oct 2019 12:14:50 +0000 (13:14 +0100)]
tests: reduce space requirements

Test well runs on smaller test machines.

5 years agoraid: drop internal error
Zdenek Kabelac [Thu, 31 Oct 2019 10:47:39 +0000 (11:47 +0100)]
raid: drop internal error

Fix some internal error reports and debug trace returns

5 years agomanip: optimize lvs_using_lv
Zdenek Kabelac [Thu, 31 Oct 2019 11:38:56 +0000 (12:38 +0100)]
manip: optimize lvs_using_lv

Instead of checking all LVs in a VG - do just a direct copy of LVs
from the existing list ->segs_using_thin_lv.

TODO: maybe it could be better to expose seg_list to /tools...

5 years agomirror: remove unused code
Zdenek Kabelac [Thu, 31 Oct 2019 11:10:00 +0000 (12:10 +0100)]
mirror: remove unused code

5 years agomirror: directly activate updated mirror
Zdenek Kabelac [Thu, 31 Oct 2019 09:05:40 +0000 (10:05 +0100)]
mirror: directly activate updated mirror

5 years agomirror: fix leg splitting
Zdenek Kabelac [Thu, 31 Oct 2019 10:45:28 +0000 (11:45 +0100)]
mirror: fix leg splitting

Enhance lv_info with lv_info_with_name_check.
This 'variant' not only check existance if UUID in DM table
but also compares its  DM name  whether it's matching expected LV name.
Otherwise activation may 'skip' activation with rename in case the
DM UUID already exists, just device is different name.

This change make fairly easier manipulation with i.e. detached mirror
leg which ATM is using same UUID - just the LV name have been changed.

Used code was not able to run 'activation' (and do a rename) and just
skipped the call. So the code used to do a workaround and 'tried'
to deactivate such LV firts - this however work only in non-clvmd case,
as cluster was not having the lock for deactivated LV.

With this extended lv_info code will run 'activation' and will
synchronize the name to match expected LV name.

Patch extends _lv_info() with new paramter 'with_name_check',
which is later translated into 'name_check' argument for
_info_run() which in case of name mismatch evaluates the
check as if device does not exists.

Such call is only used in one place _lv_activate() which then
let activation run.  All other invocation of _info() calls
are left intact.

TODO: fix mirror table manipulation (and raid)....

5 years agoExperimental VDO lvmdbusd support
Tony Asleson [Wed, 30 Oct 2019 15:55:06 +0000 (10:55 -0500)]
Experimental VDO lvmdbusd support

5 years agolvmdbustest.py: Use local data instead of fetching
Tony Asleson [Mon, 14 Oct 2019 19:33:16 +0000 (14:33 -0500)]
lvmdbustest.py: Use local data instead of fetching

Avoid making more dbus calls to get information we already have.  This
also avoids us getting an error where a dbus object representation is
being deleted by another process while we are trying to gather information
about it across the wire.

5 years agolvmdbustest.py: Improve concurrent test handling
Tony Asleson [Mon, 14 Oct 2019 19:31:27 +0000 (14:31 -0500)]
lvmdbustest.py: Improve concurrent test handling

Filter out LVs too, so that we can run more than 1 instance of the
unit test at the same time.

5 years agolvmdbustest.py: Add tests for LV interface
Tony Asleson [Fri, 11 Oct 2019 15:49:10 +0000 (10:49 -0500)]
lvmdbustest.py: Add tests for LV interface

Add tests for all the different LV types with the standard LV dbus
interface.  These tests shook out a couple of new bugs.

5 years agolvmdbusd: Debug msg. improvements.
Tony Asleson [Fri, 11 Oct 2019 15:46:22 +0000 (10:46 -0500)]
lvmdbusd: Debug msg. improvements.

5 years agolvmdbusd: Fix model inconsistency when LV loses interface
Tony Asleson [Thu, 10 Oct 2019 21:53:10 +0000 (16:53 -0500)]
lvmdbusd: Fix model inconsistency when LV loses interface

When a LV loses an interface it ends up getting removed and recreated.
This happens after the VGs have been processed and updated.  Thus when
this happens we need to re-check the VGs.

5 years agolvmdbusd: Bug fix for activate/deactivate
Tony Asleson [Thu, 10 Oct 2019 21:49:09 +0000 (16:49 -0500)]
lvmdbusd: Bug fix for activate/deactivate

Prevent the daemon from stalling when it gets stuck on a y/n prompt.

5 years agotestlib.py: Add interface instance vars.
Tony Asleson [Thu, 10 Oct 2019 14:01:27 +0000 (09:01 -0500)]
testlib.py: Add interface instance vars.

5 years agotestlib.py: WS corrections
Tony Asleson [Thu, 10 Oct 2019 00:59:44 +0000 (19:59 -0500)]
testlib.py: WS corrections

5 years agolvmdbustest.py: Add basic vdo test
Tony Asleson [Wed, 9 Oct 2019 21:55:39 +0000 (16:55 -0500)]
lvmdbustest.py: Add basic vdo test

5 years agotestlib.py: Correct dbus signature verification
Tony Asleson [Wed, 9 Oct 2019 21:53:34 +0000 (16:53 -0500)]
testlib.py: Correct dbus signature verification

This allows us to fully verify introspection data matches what we are
getting.

5 years agolvmdbusd: VDO Pool LV representation
Tony Asleson [Wed, 9 Oct 2019 12:49:58 +0000 (07:49 -0500)]
lvmdbusd: VDO Pool LV representation

VDO pool LVs are represented by a new dbus interface VgVdo.  Currently
the interface only has additional VDO properties, but when the
ability to support additional LV creation is added we can add a method
to the interface.

5 years agolvmdbustest.py: Create common func. _create_cache_lv
Tony Asleson [Wed, 9 Oct 2019 17:29:52 +0000 (12:29 -0500)]
lvmdbustest.py: Create common func. _create_cache_lv

5 years agolvmdbustest.py: Add nested helper function major_minor
Tony Asleson [Wed, 9 Oct 2019 16:48:00 +0000 (11:48 -0500)]
lvmdbustest.py: Add nested helper function major_minor

5 years agolvmdbustest.py: WS corrections
Tony Asleson [Wed, 9 Oct 2019 16:45:41 +0000 (11:45 -0500)]
lvmdbustest.py: WS corrections

5 years agolvmdbusd: Prevent running --nojson with VDO support
Tony Asleson [Wed, 9 Oct 2019 16:20:18 +0000 (11:20 -0500)]
lvmdbusd: Prevent running --nojson with VDO support

5 years agolvmdbustest.py: Add cache LV rename test
Tony Asleson [Tue, 8 Oct 2019 13:03:50 +0000 (08:03 -0500)]
lvmdbustest.py: Add cache LV rename test

5 years agolvmdbusd: Add VgVdo class & assoc. interface
Tony Asleson [Mon, 7 Oct 2019 21:58:10 +0000 (16:58 -0500)]
lvmdbusd: Add VgVdo class & assoc. interface

When VDO support is available we will create VG object instances
which will allow the API user to create VDO pool LVs.

5 years agolvmdbusd: Add cfg.vdo_support
Tony Asleson [Mon, 7 Oct 2019 21:57:05 +0000 (16:57 -0500)]
lvmdbusd: Add cfg.vdo_support

Will be used to add vdo interfaces on demand.

5 years agolvmdbustest.py: Remove 2 TODOs
Tony Asleson [Thu, 3 Oct 2019 22:01:27 +0000 (17:01 -0500)]
lvmdbustest.py: Remove 2 TODOs

This issue has been resolved, sizes > 2**32-1 not supported.

5 years agolvmdbustest.py: Add func. _pv_scan
Tony Asleson [Thu, 3 Oct 2019 21:11:18 +0000 (16:11 -0500)]
lvmdbustest.py: Add func. _pv_scan

5 years agolvmdbustest.py: Use existing _create_lv
Tony Asleson [Thu, 3 Oct 2019 20:56:45 +0000 (15:56 -0500)]
lvmdbustest.py: Use existing _create_lv

5 years agolvmdbustest.py: Add func. _create_thin_lv
Tony Asleson [Thu, 3 Oct 2019 20:50:08 +0000 (15:50 -0500)]
lvmdbustest.py: Add func. _create_thin_lv

5 years agolvmdbustest.py: Add func. _all_pv_object_paths
Tony Asleson [Thu, 3 Oct 2019 20:25:17 +0000 (15:25 -0500)]
lvmdbustest.py: Add func. _all_pv_object_paths

This is needed in a number of places.

5 years agolvmdbustest.py: Add function for lv path check
Tony Asleson [Thu, 3 Oct 2019 20:19:51 +0000 (15:19 -0500)]
lvmdbustest.py: Add function for lv path check

5 years agolvmdbusdtest.py: Use common function for tag add
Tony Asleson [Thu, 3 Oct 2019 20:05:37 +0000 (15:05 -0500)]
lvmdbusdtest.py: Use common function for tag add

5 years agolvmdbustest.py: Remove duplicate setup code
Tony Asleson [Thu, 3 Oct 2019 19:55:51 +0000 (14:55 -0500)]
lvmdbustest.py: Remove duplicate setup code

Remove the same copy & pasted code which simply creates a VG to
use.

5 years agoman lvmvdo: Correct spellings
Tony Asleson [Wed, 9 Oct 2019 14:35:14 +0000 (09:35 -0500)]
man lvmvdo: Correct spellings

5 years agoman: Include '_vdata' as reserved name
Tony Asleson [Thu, 3 Oct 2019 17:30:18 +0000 (12:30 -0500)]
man: Include '_vdata' as reserved name

5 years agolvmdbusd: Add check for reserved name '_vdata'
Tony Asleson [Thu, 3 Oct 2019 17:19:07 +0000 (12:19 -0500)]
lvmdbusd: Add check for reserved name '_vdata'

Added for vdo support.

5 years agolvmdbustest.py: Add blurb about scan_lvs = 1
Tony Asleson [Thu, 3 Oct 2019 16:57:10 +0000 (11:57 -0500)]
lvmdbustest.py: Add blurb about scan_lvs = 1

When developing and testing on a local system, to get the unit
test to pass the test_nesting test, editing the test conf will achieve
the success too.

5 years agolvmdbusd: Add d and D to type map for VolumeType
Tony Asleson [Tue, 1 Oct 2019 21:36:11 +0000 (16:36 -0500)]
lvmdbusd: Add d and D to type map for VolumeType

These were added for vdo integration.

5 years agolvmdbusd: Remove use of tmp variables
Tony Asleson [Tue, 1 Oct 2019 20:18:46 +0000 (15:18 -0500)]
lvmdbusd: Remove use of tmp variables

We can use tuple expansion from the command handler functions
directly.

5 years agolvmdbusd: Remove duplicate error handling code
Tony Asleson [Tue, 1 Oct 2019 20:17:30 +0000 (15:17 -0500)]
lvmdbusd: Remove duplicate error handling code

vg, lv, pv code had the same function for handling command execution.
Move to utility function and abstract the difference.

5 years ago[bcache] bcache_invalidate_fd, only remove prefixes on success.
Joe Thornber [Tue, 29 Oct 2019 15:21:11 +0000 (15:21 +0000)]
[bcache] bcache_invalidate_fd, only remove prefixes on success.

5 years ago[bcache] reverse earlier patch.
Joe Thornber [Tue, 29 Oct 2019 15:14:07 +0000 (15:14 +0000)]
[bcache] reverse earlier patch.

It broke some unit tests, for v. little benefit

5 years ago[bcache] pass up the error from io_submit rather than using generic -EIO
Joe Thornber [Tue, 29 Oct 2019 10:39:20 +0000 (10:39 +0000)]
[bcache] pass up the error from io_submit rather than using generic -EIO

Author: Heming Zhao

5 years ago[bcache] add unit test
Joe Thornber [Tue, 29 Oct 2019 10:33:31 +0000 (10:33 +0000)]
[bcache] add unit test

abort-forces-read

5 years ago[label] Use bcache_abort_fd() to ensure blocks are no longer in the cache.
Joe Thornber [Mon, 28 Oct 2019 15:01:47 +0000 (15:01 +0000)]
[label] Use bcache_abort_fd() to ensure blocks are no longer in the cache.

The return value from bcache_invalidate_fd() was not being checked.

So I've introduced a little function, _invalidate_fd() that always
calls bcache_abort_fd() if the write fails.

5 years ago[bcache] add bcache_abort()
Joe Thornber [Mon, 28 Oct 2019 14:29:47 +0000 (14:29 +0000)]
[bcache] add bcache_abort()

This gives us a way to cope with write failures.

5 years agoWHATS_NEW
Zdenek Kabelac [Fri, 25 Oct 2019 22:48:00 +0000 (00:48 +0200)]
WHATS_NEW

5 years agotests: explicit testing of thin snapshot
Zdenek Kabelac [Fri, 25 Oct 2019 22:15:31 +0000 (00:15 +0200)]
tests: explicit testing of thin snapshot

Check merging of old snapshot of thin LV.

5 years agosnapshot: use single merging sequence
Zdenek Kabelac [Fri, 25 Oct 2019 21:29:16 +0000 (23:29 +0200)]
snapshot: use single merging sequence

The resume of 'released' 'COW' should preceed the resume of origin.
The fact we need to do the sequence differently for merge was
cause by bugs fixed in 2 previous commits - so we no longer need
to recognize 'merging' and we should always go with single
sequence.

The importance of this order is - to properly remove  '-real' device
from origin LV. When COW is activated as 2nd. '-real' device is
kept in table as it cannot be removed during 1st. resume of origin,
and later activation of COW LV no longer builds tree associated
with origin LV.

5 years agosnapshot: fix checking of merged thin volume
Zdenek Kabelac [Fri, 25 Oct 2019 21:30:26 +0000 (23:30 +0200)]
snapshot: fix checking of merged thin volume

When merging of thin snapshot is taking place, the origin target will
be of thin type.

5 years agosnapshot: correctly check device id of merged thin
Zdenek Kabelac [Fri, 25 Oct 2019 21:31:08 +0000 (23:31 +0200)]
snapshot: correctly check device id of merged thin

When checking device id of a thin device that is just being
merged - the snapshot actually could have been already finished
which means  '-real' suffix for the LV is already gone and just LV
is there - so check explicitely for this condition and use
correct UUID for this case.

5 years agolvmlockd: fix cachevol locking
David Teigland [Thu, 24 Oct 2019 22:09:00 +0000 (17:09 -0500)]
lvmlockd: fix cachevol locking

When a cachevol LV is attached, have the LV keep it's lock
allocated.  The lock on the cachevol won't be used while
it's attached.  When the cachevol is split a new lock does
not need to be allocated.  (Applies to cachevol usage by
both dm-cache and dm-writecache.)

5 years agotests: lvmlockd-lv-types handle new cpool renaming
David Teigland [Thu, 24 Oct 2019 18:26:33 +0000 (13:26 -0500)]
tests: lvmlockd-lv-types handle new cpool renaming

5 years agoman lvmthin: change wording about mounting xfs
David Teigland [Thu, 24 Oct 2019 15:09:41 +0000 (10:09 -0500)]
man lvmthin: change wording about mounting xfs

5 years agopost-release
Marian Csontos [Wed, 23 Oct 2019 07:47:26 +0000 (09:47 +0200)]
post-release

5 years agopre-release v2_03_06
Marian Csontos [Wed, 23 Oct 2019 07:46:23 +0000 (09:46 +0200)]
pre-release

5 years agocov: Fix memory leak
Marian Csontos [Wed, 28 Aug 2019 08:45:04 +0000 (10:45 +0200)]
cov: Fix memory leak

5 years agobuild: make generate
Marian Csontos [Wed, 23 Oct 2019 07:51:07 +0000 (09:51 +0200)]
build: make generate

5 years agoimprove command definition matching using type
David Teigland [Mon, 21 Oct 2019 21:42:06 +0000 (16:42 -0500)]
improve command definition matching using type

When a user includes "--type foo" in a command, only
look at command definitions with matching type, as
opposed to using matching/mismatching --type as a
vote for/against a given command def.  This means a
command with --type foo will prioritize a command def
with --type foo over other command defs that have
more matching options but an unmatching type.  This
makes it more likely that a closely matching command
def will be recommended.

5 years agocache: _cpool is protected suffix now
Zdenek Kabelac [Tue, 22 Oct 2019 14:07:21 +0000 (16:07 +0200)]
cache: _cpool is protected suffix now

5 years agotests: enable with 6.2.1
Zdenek Kabelac [Tue, 22 Oct 2019 14:06:19 +0000 (16:06 +0200)]
tests: enable with 6.2.1

Package vdo-6.2.2.18  goes with  kvdo version 6.2.1
Hopefully will get fixed soon.
Meanwhile to get test coverage...

5 years agodm: fix compilation of dmsetup
Marian Csontos [Mon, 21 Oct 2019 14:31:53 +0000 (16:31 +0200)]
dm: fix compilation of dmsetup

Fix: 889c88e9dab33195efc4dc0400a4b0aaa3383948
Use correct enum DM_DEVICE_GET_TARGET_VERSION.

5 years agotests: more suffixes
Zdenek Kabelac [Tue, 22 Oct 2019 11:31:23 +0000 (13:31 +0200)]
tests: more suffixes

5 years agogcc: older version can't see udev is always set
Zdenek Kabelac [Tue, 22 Oct 2019 08:43:11 +0000 (10:43 +0200)]
gcc: older version can't see udev is always set

5 years agovgchange: remove bogus option restriction
David Teigland [Mon, 21 Oct 2019 18:27:29 +0000 (13:27 -0500)]
vgchange: remove bogus option restriction

for -A with -a

5 years agocachevol: use cachepool code for metadata size
David Teigland [Mon, 21 Oct 2019 17:13:33 +0000 (12:13 -0500)]
cachevol: use cachepool code for metadata size

Based on a more detailed calculation, but because of
extent size rounding, the final result is about the
same.

5 years agoman: lvmcache naming updates
David Teigland [Mon, 21 Oct 2019 16:35:28 +0000 (11:35 -0500)]
man: lvmcache naming updates

5 years agogcc: avoid warning: declaration of xxx shadows a global declaration
Zdenek Kabelac [Mon, 21 Oct 2019 10:32:11 +0000 (12:32 +0200)]
gcc: avoid warning: declaration of xxx shadows a global declaration

Fix some gcc complaints again shadowing global declarations

5 years agogcc: all paths will set ret
Zdenek Kabelac [Mon, 21 Oct 2019 10:25:04 +0000 (12:25 +0200)]
gcc: all paths will set ret

Set success on common path.
Fixes random failure on writecache uncaching path.

5 years agogcc: older compiler is happier with this initilizer
Zdenek Kabelac [Mon, 21 Oct 2019 10:24:40 +0000 (12:24 +0200)]
gcc: older compiler is happier with this initilizer

5 years agotests: used cache_pool adds _cpool
Zdenek Kabelac [Mon, 21 Oct 2019 13:11:51 +0000 (15:11 +0200)]
tests: used cache_pool adds _cpool

5 years agocache: use _cpool for used cache-pools
Zdenek Kabelac [Mon, 21 Oct 2019 10:03:19 +0000 (12:03 +0200)]
cache: use _cpool for used cache-pools

When LV gets cached and uses cache-pool - such cache-pool
will now get _cpool suffix automatically.

Thus 'Pool' column for cached LV will now show either _cvol
or _cpool LV.

5 years agocache: drop _cpool suffix from unused cache-pool
Zdenek Kabelac [Mon, 21 Oct 2019 07:22:32 +0000 (09:22 +0200)]
cache: drop _cpool suffix from unused cache-pool

Drop _cpool prefix if present and cache-pool is going to be unused.

5 years agolvconvert: use new functions
Zdenek Kabelac [Mon, 21 Oct 2019 07:18:34 +0000 (09:18 +0200)]
lvconvert: use new functions

5 years agolvm-string: add drop_lvname_suffix
Zdenek Kabelac [Mon, 21 Oct 2019 07:17:57 +0000 (09:17 +0200)]
lvm-string: add drop_lvname_suffix

Internal function to drop suffix out of lvname.

5 years agolv_manip: add lv_uniq_rename_update
Zdenek Kabelac [Mon, 21 Oct 2019 07:16:45 +0000 (09:16 +0200)]
lv_manip: add lv_uniq_rename_update

Add function to rename LV to either passed name or if
the name is already in use, generate new lvol% name.

5 years agopvck: dump metadata search
David Teigland [Thu, 17 Oct 2019 22:24:22 +0000 (17:24 -0500)]
pvck: dump metadata search

Improve the implementation of extracting all text metadata
copies from the metadata area.  Use this for the existing
metadata_all dump option.

Add a new metadata_search dump option which does not use
lvm headers to find metadata, but looks in standard
locations.  This is useful if headers are damaged and
can't be used to locate metadata.

Adding '-v' to metadata_all or metadata_search will add
the description and creation_time to the printed list of
metadata instances that are found.

5 years agotests: cachevol needs FORMAT2
Zdenek Kabelac [Wed, 16 Oct 2019 19:58:57 +0000 (21:58 +0200)]
tests: cachevol needs FORMAT2

FORMAT2 is mandatory with cachevols...

5 years agotests: skip when raid is not present
Zdenek Kabelac [Wed, 16 Oct 2019 19:58:39 +0000 (21:58 +0200)]
tests: skip when raid is not present

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