]> sourceware.org Git - lvm2.git/log
lvm2.git
4 years agointegrity: fix segfault reporting integrity for other lvs
David Teigland [Wed, 9 Sep 2020 15:22:07 +0000 (10:22 -0500)]
integrity: fix segfault reporting integrity for other lvs

4 years agoman: correcting vdo issues
Zdenek Kabelac [Wed, 9 Sep 2020 13:14:22 +0000 (15:14 +0200)]
man: correcting vdo issues

Fixing reported bugs within provided examples - so examples
can be used via cut&paste.

4 years agoman: correctly use configured directories
Zdenek Kabelac [Wed, 9 Sep 2020 11:22:37 +0000 (13:22 +0200)]
man: correctly use configured directories

4 years agoRevert "raid: add _rimage and _rmeta as origin_only"
Zdenek Kabelac [Tue, 8 Sep 2020 22:58:52 +0000 (00:58 +0200)]
Revert "raid: add _rimage and _rmeta as origin_only"

This reverts commit 3388e194892e9ab7a36b72e512796c2d218dae6e.
More thinking needed.

4 years agoRevert "raid: do not enforce flushing of raids when it is not required"
Zdenek Kabelac [Tue, 8 Sep 2020 22:58:32 +0000 (00:58 +0200)]
Revert "raid: do not enforce flushing of raids when it is not required"

This reverts commit ce5ea07411d57a2bd276d8d29e46ce30b957f657.
More thinking needed.

4 years agotests: tune extend test
Zdenek Kabelac [Mon, 7 Sep 2020 22:22:16 +0000 (00:22 +0200)]
tests: tune extend test

For proper checking of extension progress require version 1.15

It looks with older versoin extension happens during very slow
resume within lvm command - although speed is still somewhat slow
with latest version.

4 years agotests: check for writecache being compiled in
Zdenek Kabelac [Fri, 4 Sep 2020 19:08:32 +0000 (21:08 +0200)]
tests: check for writecache being compiled in

4 years agotests: check for cache_version that supports v2
Zdenek Kabelac [Fri, 4 Sep 2020 18:35:55 +0000 (20:35 +0200)]
tests: check for cache_version that supports v2

4 years agoraid: do not enforce flushing of raids when it is not required
Zdenek Kabelac [Tue, 8 Sep 2020 19:09:06 +0000 (21:09 +0200)]
raid: do not enforce flushing of raids when it is not required

This is probably somewhat experimantal patch - but when i.e. raid device
is just extend, there should not be a technical need for flush,
unless the target would stricly need it.  It should allow faster
processing of lvm command not being blocked by possibly longer flush.

4 years agoraid: add _rimage and _rmeta as origin_only
Zdenek Kabelac [Tue, 8 Sep 2020 19:06:23 +0000 (21:06 +0200)]
raid: add _rimage and _rmeta as origin_only

Since we do not support rimage & rmeta for snapshots - we can
avoid quering for -cow devices and add them as origin_only -
since their snapshots (-cow) could have never existed.
This redumes several ioctl operation during table preloading.

4 years agolv_manip: add synchronization points
Zdenek Kabelac [Tue, 8 Sep 2020 13:20:50 +0000 (15:20 +0200)]
lv_manip: add synchronization points

4 years agolvconvert: flip return value of _raid_split_image_conversion
Zdenek Kabelac [Fri, 4 Sep 2020 18:55:02 +0000 (20:55 +0200)]
lvconvert: flip return value of _raid_split_image_conversion

Use '0' for error and '1' as success.
Also drop INTERNAL_ERROR from path - as this error
is ATM used for invalid devices.
(i.e. test lvconvert-raid1-split-trackchanges.sh)

4 years agotests: fix pvck repair in hints.sh
David Teigland [Fri, 4 Sep 2020 16:22:42 +0000 (11:22 -0500)]
tests: fix pvck repair in hints.sh

4 years agotests: use delayzero_dev
Zdenek Kabelac [Fri, 4 Sep 2020 16:05:01 +0000 (18:05 +0200)]
tests: use delayzero_dev

Speed-up a bit the first synchronization with just 50ms write delay,
but later set also delay on read to slowdown lvextend.

FIXME: there are still things to look at:

0 229376 raid raid1 2 AA 229376/229376 idle 0 0
0 229376 raid raid1 2 AA 0/229376 frozen 0 0 -
0 262144 raid raid1 2 AA 229376/262144 repair 0 0 -
0 262144 raid raid1 2 AA 229376/262144 repair 0 0 -
0 262144 raid raid1 2 AA 245888/262144 repair 0 0 -

4 years agotests: add aux delayzero_dev support
Zdenek Kabelac [Fri, 4 Sep 2020 11:50:05 +0000 (13:50 +0200)]
tests: add aux delayzero_dev  support

Just like we have 'writeerror_dev' supporting creation of device
which 'readable' segment and segments where write will fail we
have now support for delay zero mappings.

This is useful if we want to 'fake' large writing areas where we do
not really care about the actual 'disk' content - since we test
operation logic and it doesn't matter we read and write zeroes.
With combination with 'delay' target we can create specific mappings
and avoid using large memory areas of ramdisk.

4 years agowritecache: allow pvmove on origin
David Teigland [Wed, 2 Sep 2020 19:45:52 +0000 (14:45 -0500)]
writecache: allow pvmove on origin

The removed check didn't actually prevent pvmoving the origin,
which was possible by naming the wcorig lv, or naming no lv.

4 years agopvck: repair should clear hints
David Teigland [Wed, 2 Sep 2020 19:21:17 +0000 (14:21 -0500)]
pvck: repair should clear hints

repairing a pv can cause the hint file to become incorrect

4 years agohints: remove warning when clearing hint file
David Teigland [Wed, 2 Sep 2020 19:06:46 +0000 (14:06 -0500)]
hints: remove warning when clearing hint file

When the hint file cannot be accessed, silently
ignore hints, like other instances do.

4 years agointegrity: improve lv type checks
David Teigland [Wed, 2 Sep 2020 17:40:45 +0000 (12:40 -0500)]
integrity: improve lv type checks

4 years agointegrity: fix segfault for lv with no seg
David Teigland [Wed, 2 Sep 2020 14:15:58 +0000 (09:15 -0500)]
integrity: fix segfault for lv with no seg

in lv_raid_has_integrity

4 years agotests: add new integrity reporting fields
David Teigland [Tue, 1 Sep 2020 22:07:36 +0000 (17:07 -0500)]
tests: add new integrity reporting fields

4 years agointegrity: report mismatches
David Teigland [Tue, 1 Sep 2020 21:15:31 +0000 (16:15 -0500)]
integrity: report mismatches

with lvs -o integritymismatches

reported for integrity images, which may report
different values

4 years agointegrity: report raidintegritymode randintegrityblocksize
David Teigland [Tue, 1 Sep 2020 19:39:34 +0000 (14:39 -0500)]
integrity: report raidintegritymode randintegrityblocksize

reported for the raid lv and the integrity images

4 years agointegrity: always default to journal mode
David Teigland [Tue, 1 Sep 2020 17:53:00 +0000 (12:53 -0500)]
integrity: always default to journal mode

lvconvert was defaulting to bitmap mode,
and lvcreate was defaulting to journal mode.

4 years agotests: skip this test for current 5.8 5.9 kernels
Zdenek Kabelac [Tue, 1 Sep 2020 21:14:47 +0000 (23:14 +0200)]
tests: skip this test for current 5.8 5.9 kernels

Kernel is hitting not yet fixed kernel bug.
Skip the test to avoid killing testing machine.

4 years agotests: slightly faster
Zdenek Kabelac [Tue, 1 Sep 2020 21:05:11 +0000 (23:05 +0200)]
tests: slightly faster

Use lvm shell to agregrate lots of lvm commands
Reduce initial zeroing.

4 years agotests: set skipping autoactivation
Zdenek Kabelac [Tue, 1 Sep 2020 20:45:17 +0000 (22:45 +0200)]
tests: set skipping autoactivation

On test system with 'default' filter  (aka accept all) test
after enabling device can suffer from automatic system
activation - so for created LVs setup skipping this automatic
activation. This should prevent getting LVs into table
with pvscan service.

4 years agotests: skip test when gcore cannot catch securetest
Zdenek Kabelac [Tue, 1 Sep 2020 19:39:47 +0000 (21:39 +0200)]
tests: skip test when gcore cannot catch securetest

4 years agogcc: avoid shadowing of dev_name and pvs
Zdenek Kabelac [Tue, 1 Sep 2020 19:17:14 +0000 (21:17 +0200)]
gcc: avoid shadowing of dev_name and pvs

Since we declare dev_name in lib/device/device.h
and pvs in commands.h
rename local dev_name to device_name
and pvs to pvs_list to prevent shadowing warning.

m

4 years agogcc: hide warn about possible uninitialized use of dev_ret
Zdenek Kabelac [Tue, 1 Sep 2020 18:46:18 +0000 (20:46 +0200)]
gcc: hide warn about possible uninitialized use of dev_ret

Older gcc reports this fp problem.

4 years agopvck: add simple check for fwrite
Zdenek Kabelac [Tue, 1 Sep 2020 19:14:39 +0000 (21:14 +0200)]
pvck: add simple check for fwrite

Add at least very light check for result code of fwrite().

4 years agopvck: use array of bytes
Zdenek Kabelac [Tue, 1 Sep 2020 19:08:12 +0000 (21:08 +0200)]
pvck: use array of bytes

Fix typo in use array of pointers instead of array of bytes.
This fixes 'break strict-aliasing rules' warning printed with older gcc.

4 years agocleanup: better expressing passing key arg to _hash
Zdenek Kabelac [Sat, 29 Aug 2020 20:37:17 +0000 (22:37 +0200)]
cleanup: better expressing passing key arg to _hash

4 years agocleanup: add spaces between literals
Zdenek Kabelac [Sat, 29 Aug 2020 19:53:31 +0000 (21:53 +0200)]
cleanup: add spaces between literals

4 years agocleanup: user force_t enums instead of ints
Zdenek Kabelac [Sat, 29 Aug 2020 19:53:05 +0000 (21:53 +0200)]
cleanup: user force_t enums instead of ints

4 years agocleanup: matching declaration order
Zdenek Kabelac [Sat, 29 Aug 2020 19:37:39 +0000 (21:37 +0200)]
cleanup: matching declaration order

Cosmetic

4 years agocov: avoid duplicated assign
Zdenek Kabelac [Sat, 29 Aug 2020 18:40:20 +0000 (20:40 +0200)]
cov: avoid duplicated assign

4 years agocov: always initialized values
Zdenek Kabelac [Sat, 29 Aug 2020 18:27:32 +0000 (20:27 +0200)]
cov: always initialized values

Make sure values are initialized for all possible paths.

4 years agocov: explicitely ignore function result
Zdenek Kabelac [Tue, 1 Sep 2020 15:53:36 +0000 (17:53 +0200)]
cov: explicitely ignore function result

4 years agocov: always sure we end with '0'
Zdenek Kabelac [Sat, 29 Aug 2020 17:56:37 +0000 (19:56 +0200)]
cov: always sure we end with '0'

Use easier dm_strncpy().

4 years agogcc: keep using unsigned type
Zdenek Kabelac [Sat, 29 Aug 2020 20:24:34 +0000 (22:24 +0200)]
gcc: keep using unsigned type

4 years agogcc: preserve constness of buffer
Zdenek Kabelac [Sat, 29 Aug 2020 20:02:41 +0000 (22:02 +0200)]
gcc: preserve constness of buffer

4 years agogcc: zero-sized array to fexlible array C99
Zdenek Kabelac [Fri, 28 Aug 2020 17:15:01 +0000 (19:15 +0200)]
gcc: zero-sized array to fexlible array C99

Switch remaining zero sized struct to flexible arrays to be C99
complient.

These simple rules should apply:

- The incomplete array type must be the last element within the structure.
- There cannot be an array of structures that contain a flexible array member.
- Structures that contain a flexible array member cannot be used as a member of another structure.
- The structure must contain at least one named member in addition to the flexible array member.

Although some of the code pieces should be still improved.

4 years agogcc: change zero-sized array to fexlible array
Zhao Heming [Thu, 20 Aug 2020 16:05:04 +0000 (00:05 +0800)]
gcc: change zero-sized array to fexlible array

this patch makes gcc happy with compiling option: [-Wstringop-overflow=]

Signed-off-by: Zhao Heming <heming.zhao@suse.com>
4 years agodmsetup: initilize winsize struct
Zdenek Kabelac [Sat, 29 Aug 2020 18:35:49 +0000 (20:35 +0200)]
dmsetup: initilize winsize struct

Ensure winsize struct is always defined.

4 years agotests: filefrag needs to support -e
Zdenek Kabelac [Sat, 29 Aug 2020 13:33:57 +0000 (15:33 +0200)]
tests: filefrag needs to support -e

Skip on systems with 'too old' filefrag without -e support

4 years agocachevol: correcting 64b math
Zdenek Kabelac [Sat, 29 Aug 2020 18:08:49 +0000 (20:08 +0200)]
cachevol: correcting 64b math

Widen to 64bit for correct 64b multiplication math.

4 years agoWHATS_NEW: update
Zdenek Kabelac [Fri, 28 Aug 2020 19:42:12 +0000 (21:42 +0200)]
WHATS_NEW: update

4 years agogcc: drop bogus ;
Zdenek Kabelac [Fri, 28 Aug 2020 19:14:06 +0000 (21:14 +0200)]
gcc: drop bogus ;

4 years agogcc: do not use return with void function
Zdenek Kabelac [Fri, 28 Aug 2020 17:33:49 +0000 (19:33 +0200)]
gcc: do not use return with void function

Follow C norm and do not use 'return' in void function to call other
functions.

4 years agogcc: use apropriate type for reading and printing values
Zdenek Kabelac [Fri, 28 Aug 2020 17:35:25 +0000 (19:35 +0200)]
gcc: use apropriate type for reading and printing values

4 years agotools: move struct element before variable lenght list
Zdenek Kabelac [Fri, 28 Aug 2020 17:15:42 +0000 (19:15 +0200)]
tools: move struct element before variable lenght list

Move prio field before 'variable' struct array field.
Interesting why this has not been catched yet.

TODO: think about test case

4 years agogcc: calc size in compile time
Zdenek Kabelac [Fri, 28 Aug 2020 16:58:55 +0000 (18:58 +0200)]
gcc: calc size in compile time

4 years agogcc: avoid stack alloc arithmetic
Zdenek Kabelac [Fri, 28 Aug 2020 16:46:06 +0000 (18:46 +0200)]
gcc: avoid stack alloc arithmetic

4 years agogcc: keep unsigned arithmetic
Zdenek Kabelac [Fri, 28 Aug 2020 17:55:01 +0000 (19:55 +0200)]
gcc: keep unsigned arithmetic

Avoid conversion to int.

4 years agolv_manip: get_default_region_size return uint32_t
Zdenek Kabelac [Fri, 28 Aug 2020 18:07:34 +0000 (20:07 +0200)]
lv_manip: get_default_region_size return uint32_t

4 years agolvmcache: use uint32_t for seqno caching
Zdenek Kabelac [Fri, 28 Aug 2020 17:48:40 +0000 (19:48 +0200)]
lvmcache: use uint32_t for seqno caching

4 years agowritecache: correct usage of const struct
Zdenek Kabelac [Fri, 28 Aug 2020 16:26:40 +0000 (18:26 +0200)]
writecache: correct usage of const struct

4 years agocontainer_of: drop needless const converion
Zdenek Kabelac [Fri, 28 Aug 2020 16:26:07 +0000 (18:26 +0200)]
container_of: drop needless const converion

4 years agotests: check we detect lvm.conf read failure
Zdenek Kabelac [Thu, 27 Aug 2020 10:55:22 +0000 (12:55 +0200)]
tests: check we detect lvm.conf read failure

No coredumps with unreadable lvm.conf.

4 years agoconfig: drop reading file with mmap
Zdenek Kabelac [Thu, 27 Aug 2020 10:49:03 +0000 (12:49 +0200)]
config: drop reading file with mmap

While normally the 'mmap' file reading is better utilizing resources,
it has also its odd side with handling errors - so while we normally
use the mmap only for reading regular files from root filesystem
(i.e. lvm.conf) we can't prevent error to happen during the read
of these file - and such error unfortunately ends with SIGBUS error.
Maintaing signal handler would be compilated - so switch to slightly
less effiecient but more error resistant read() functinality.

4 years agoRevert "lvdisplay: dispaly correct status when underlying devs missing"
David Teigland [Fri, 28 Aug 2020 18:26:50 +0000 (13:26 -0500)]
Revert "lvdisplay: dispaly correct status when underlying devs missing"

This reverts commit 1d0dc74f9147e3c1f3681efa4166cbe2edcb6571.

We should avoid adding anything new to lvdisplay and report
new information via lvs reporting fields.

4 years agolvdisplay: dispaly correct status when underlying devs missing
Zhao Heming [Mon, 24 Aug 2020 14:47:04 +0000 (09:47 -0500)]
lvdisplay: dispaly correct status when underlying devs missing

reproducible steps:
1. vgcreate vg1 /dev/sda /dev/sdb
2. lvcreate --type raid0 -l 100%FREE -n raid0lv vg1
3. do remove the /dev/sdb action
4. lvdisplay show wrong 'LV Status'

After removing raid0 type LV underlying dev, lvdisplay still display
'available'. This is wrong status for raid0.

This patch add a new function raid_is_available(), which will handle
all raid case.

With this patch, lvdisplay will show
from:
  LV Status              available
to:
  LV Status              NOT available (partial)

Reviewed-by: Enzo Matsumiya <ematsumiya@suse.com>
Signed-off-by: Zhao Heming <heming.zhao@suse.com>
4 years agowipe_lv: close devices on error path
Zdenek Kabelac [Wed, 19 Aug 2020 12:40:08 +0000 (14:40 +0200)]
wipe_lv: close devices on error path

Device was kept open preventing its deactivated and removed
on error path.

4 years agoman: vdo improvals
Zdenek Kabelac [Tue, 21 Jul 2020 22:41:35 +0000 (00:41 +0200)]
man: vdo improvals

Add some more notes about discard.
Correct enumeration.

4 years agoconfig: move some config setting into commented part
Zdenek Kabelac [Thu, 9 Jul 2020 21:22:52 +0000 (23:22 +0200)]
config: move some config setting into commented part

It's better to set most of option as 'commented' with some
documented defaults instead of providing strict values.

This has the advantage we can eventually 'change' defualts
and get them working in future. Otherwise once the setting
is stored in lvm.conf in /etc, such setting has strictly
defined value and that can be only change with file update.

4 years agoUpdate README
Marian Csontos [Wed, 12 Aug 2020 10:05:36 +0000 (12:05 +0200)]
Update README

4 years agopost-release
Marian Csontos [Sun, 9 Aug 2020 14:16:39 +0000 (16:16 +0200)]
post-release

4 years agopre-release v2_03_10
Marian Csontos [Sun, 9 Aug 2020 14:15:31 +0000 (16:15 +0200)]
pre-release

4 years agoWHATS_NEW
Marian Csontos [Sun, 9 Aug 2020 14:15:13 +0000 (16:15 +0200)]
WHATS_NEW

4 years agobuild: make generate
Marian Csontos [Sun, 9 Aug 2020 13:20:22 +0000 (15:20 +0200)]
build: make generate

4 years agoWHATS_NEW: Add writecache lvmdbusd
Tony Asleson [Thu, 6 Aug 2020 20:42:49 +0000 (15:42 -0500)]
WHATS_NEW: Add writecache lvmdbusd

4 years agolvmdbusd: Bump LVM DBus API version
Vojtech Trefny [Wed, 1 Jul 2020 11:27:47 +0000 (13:27 +0200)]
lvmdbusd: Bump LVM DBus API version

So users can check for writecache support.

4 years agolvmdbusd: Add support for LVM writecache
Vojtech Trefny [Wed, 1 Jul 2020 11:27:46 +0000 (13:27 +0200)]
lvmdbusd: Add support for LVM writecache

4 years agotests: Adapt RAID test to changes
Marian Csontos [Tue, 28 Jul 2020 15:36:57 +0000 (17:36 +0200)]
tests: Adapt RAID test to changes

Change 3c9177fdc0b8 causes a conversion of raid1 volume to a raid1 with
the same number of legs succeed with a warning.

4 years agocachevol: add LV type restrictions to command defs
David Teigland [Thu, 23 Jul 2020 20:10:35 +0000 (15:10 -0500)]
cachevol: add LV type restrictions to command defs

LV type restrictions were missed on the command definitions.

4 years agocachevol: generate a unique name when creating
David Teigland [Thu, 23 Jul 2020 18:07:32 +0000 (13:07 -0500)]
cachevol: generate a unique name when creating

When a cachevol is automatically created, if the default name
conflicts with an existing name, generate a new unique name.

4 years agolvconvert: display warning if raid1 LV image count does not change
Heinz Mauelshagen [Mon, 20 Jul 2020 13:36:25 +0000 (15:36 +0200)]
lvconvert: display warning if raid1 LV image count does not change

Fix "lvconvert -mN $RaidLV" to display a warning in
case the same number of images is being requested.

Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1774696

4 years agointegrity: allow type option to be set when changing mirrors
David Teigland [Wed, 15 Jul 2020 15:57:05 +0000 (10:57 -0500)]
integrity: allow type option to be set when changing mirrors

Allow the optional '--type raid1' to be included in the lvconvert
command when adding or removing raid images with integrity.
It does not change the meaning of the command (specifying a type
that matches the current type is redundant but generally allowed.)

4 years agolvmdbusd: recognize lv attr letter g for integrity
David Teigland [Wed, 15 Jul 2020 15:07:28 +0000 (10:07 -0500)]
lvmdbusd: recognize lv attr letter g for integrity

4 years agolvconvert: preset raid1 in case of striped conversions
Heinz Mauelshagen [Thu, 9 Jul 2020 16:51:33 +0000 (18:51 +0200)]
lvconvert: preset raid1 in case of striped conversions

Fixed invoking "lvconvert -m+1 $StripedLV" to cause errors
(preset raid conversion implied by '-m').

Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1781406

4 years agodevices: simplify md superblock checking code
David Teigland [Thu, 19 Sep 2019 17:17:36 +0000 (12:17 -0500)]
devices: simplify md superblock checking code

4 years agodevices: detect md ddf and imsm superblocks
David Teigland [Thu, 19 Sep 2019 16:33:59 +0000 (11:33 -0500)]
devices: detect md ddf and imsm superblocks

4 years agolvconvert: fix conversion to 'mirrored' mirror log with larger regionsize
Heinz Mauelshagen [Thu, 9 Jul 2020 12:09:46 +0000 (14:09 +0200)]
lvconvert: fix conversion to 'mirrored' mirror log with larger regionsize

merge.c:_check_lv_segment() was checking regionsize vs. mirrored LV size on
any 'mirror/raid1/raid10' segment type including type 'mirrored' mirror logs.

Avoid the check only for 'mirrored' mirror logs to allow conversion from log
type 'disk' with regionsize > mirror log SubLV size.

As we disabled support for 'mirrored' mirror logs with
commit e82303fd6abc3ae43168f8032806c7c17d181a3e which still conditionally
allows to enable it via global/support_mirrored_mirror_logs=1,
patch is mandatory for all distributions.

Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1712983

4 years agodebug: missing stacktrace
Zdenek Kabelac [Wed, 8 Jul 2020 09:06:39 +0000 (11:06 +0200)]
debug: missing stacktrace

4 years agoraid: no wiping when zeroing raid metadata device
Zdenek Kabelac [Wed, 8 Jul 2020 08:59:51 +0000 (10:59 +0200)]
raid: no wiping when zeroing raid metadata device

Currently lvm2 is not wiping signatures when creating 'metadata' volumes
and raid _rmeta was the only exception - so make the behavior consistent
with other metadata devices and drop wiping ATM.
Drop also some extra debug since they are now more explanatory in
wipe_lv() function.
Also note - although lvm2 now does not wipe signatures - the error
from such wipping used to be actually 'ignored' before wipe_lv()
started to return error (with recent commit) and raid creation
continued with 'unzeroed' metadata device.

TODO: Several issues to resolve:

1. We may want to flip to wipping with all LVs (in that case we need to
support passing --yet & --force).

2. Also we may want to clear whole metadata device - however current
function is also used for wipping i.e. snapshot COW device which
is likely not a good candidate for full device zeroing.
We may also need to think about better logic when extent size is
enforcing very large LVs, when only a small portion of LV is ever
being used.

3. Using TRIM instead of zeroing metadata device might be worth to
implement.

mm

4 years agolvconvert: more support for yes conversion
Zdenek Kabelac [Wed, 8 Jul 2020 08:57:52 +0000 (10:57 +0200)]
lvconvert: more support for yes conversion

When converting volume to pool LV use also wiping of other signatures.
For writecache & pool conversion support --yet and --force
to bypass prompting for signature wiping.
For writecache drop unneded zero_sectors.

Note: currently we have lvconvert doing convertion and prompting
for confirmation of conversion - and then again wipe_lv() prompts
for removing i.e. filesystem signature - we should unify this
prompting into 1 message  - althought the 'filesystem' discovery
needs active volume - while the 1st. conversion prompt can
work without active converted volume.

4 years agowipe_lv: always zero at least 4K
Zdenek Kabelac [Wed, 8 Jul 2020 08:38:36 +0000 (10:38 +0200)]
wipe_lv: always zero at least 4K

When zero_sectors passed value like 1 - we could zero only 1 sector.
Reinstantiate we always zero at least 4K block.

4 years agowritecache: skip fs block size check in test mode
David Teigland [Tue, 7 Jul 2020 18:20:18 +0000 (13:20 -0500)]
writecache: skip fs block size check in test mode

if doing so requires activating the LV

4 years agointegrity: add initial size to metadata size
David Teigland [Tue, 30 Jun 2020 17:52:27 +0000 (12:52 -0500)]
integrity: add initial size to metadata size

The metadata device size needs to include space for
the dm-integrity "initial_sectors" which hold journals.

4 years agotests: check pool metadata are zeroed
Zdenek Kabelac [Wed, 24 Jun 2020 12:42:11 +0000 (14:42 +0200)]
tests: check pool metadata are zeroed

4 years agotests: failure of zeroing fails command
Zdenek Kabelac [Tue, 23 Jun 2020 12:10:18 +0000 (14:10 +0200)]
tests: failure of zeroing fails command

4 years agomake: make generate
Zdenek Kabelac [Tue, 23 Jun 2020 10:19:35 +0000 (12:19 +0200)]
make: make generate

update

4 years agoman: update cache page
Zdenek Kabelac [Tue, 23 Jun 2020 10:19:54 +0000 (12:19 +0200)]
man: update cache page

Few more sentences around migration threshold.

4 years agocov: avoid double call of free_hints() on error path
Zdenek Kabelac [Mon, 22 Jun 2020 09:07:34 +0000 (11:07 +0200)]
cov: avoid double call of free_hints() on error path

Since we 'free_hints()' on return error path from call of
_read_hint_file(), avoid calling it twice in the middle of
error path process.

4 years agocov: remove unused header
Zdenek Kabelac [Tue, 16 Jun 2020 14:38:15 +0000 (16:38 +0200)]
cov: remove unused header

4 years agocov: use 64bit arithmetic
Zdenek Kabelac [Wed, 10 Jun 2020 21:36:06 +0000 (23:36 +0200)]
cov: use 64bit arithmetic

Although values of VDO block_map_cache_size, index_memory_size, slab_size
should not overflow here - use proper 64bit math.

4 years agopool: zero metadata
Zdenek Kabelac [Wed, 24 Jun 2020 10:11:21 +0000 (12:11 +0200)]
pool: zero metadata

To avoid polution of metadata with some 'garbage' content or eventualy
some leak of stale data in case user want to upload metadata somewhere,
ensure upon allocation the metadata device is fully zeroed.

Behaviour may slow down allocation of thin-pool or cache-pool a bit
so the old behaviour can be restored with lvm.conf setting:
allocation/zero_metadata=0

TODO: add zeroing for extension of metadata volume.

4 years agowipe_lv: make error a fatal event
Zdenek Kabelac [Tue, 23 Jun 2020 11:56:15 +0000 (13:56 +0200)]
wipe_lv: make error a fatal event

Failure in wiping/zeroing stop the command.
If user wants to avoid command abortion he should use -Zn or -Wn
to avoid wiping.

Note: there is no easy way to distinguish which kind of failure has
happend - so it's safe to not proceed any futher.

4 years agobcache: support longer writes
Zdenek Kabelac [Wed, 24 Jun 2020 11:37:23 +0000 (13:37 +0200)]
bcache: support longer writes

When initiated larger write request, it may have happened, bcache
got out of free chunks - fix the loop, that is supposed to wait
until next free chunk becomes avain available.

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