]> sourceware.org Git - lvm2.git/log
lvm2.git
6 years agolvmlockd: update method for changing clustered VG
David Teigland [Wed, 13 Jun 2018 20:30:28 +0000 (15:30 -0500)]
lvmlockd: update method for changing clustered VG

The previous method for forcibly changing a clustered VG
to a local VG involved using -cn and locking_type 0.
Since those options are deprecated, replace it with
the same command used for other forced lock type changes:
vgchange --locktype none --lockopt force.

6 years agoRemove makefile entries for removed script
David Teigland [Wed, 13 Jun 2018 20:02:12 +0000 (15:02 -0500)]
Remove makefile entries for removed script

6 years agoRemove systemd script for starting shared VG
David Teigland [Tue, 12 Jun 2018 19:35:27 +0000 (14:35 -0500)]
Remove systemd script for starting shared VG

Shared VGs will generally be started and activated by
the resource agent.  Without the agent, this script doesn't
have a good way to know which LVs to activate.

6 years agotests: remove vgconvert usage
David Teigland [Wed, 13 Jun 2018 19:16:28 +0000 (14:16 -0500)]
tests: remove vgconvert usage

6 years agotests: remove metadata-dirs
David Teigland [Wed, 13 Jun 2018 19:14:23 +0000 (14:14 -0500)]
tests: remove metadata-dirs

metadata dirs are removed

6 years agoRemove vgconvert
David Teigland [Wed, 13 Jun 2018 19:12:46 +0000 (14:12 -0500)]
Remove vgconvert

it has no use without lvm1

6 years agofilters: remove cache file in persistent filter
David Teigland [Wed, 13 Jun 2018 19:00:47 +0000 (14:00 -0500)]
filters: remove cache file in persistent filter

It creates problems because it's not always correct,
and it doesn't actually help much.

6 years agoRemove independent metadata areas
David Teigland [Wed, 13 Jun 2018 17:25:19 +0000 (12:25 -0500)]
Remove independent metadata areas

in which metadata is stored in files on the local fs
instead of on PVs.

6 years agoRemove code for loading other metadata formats
David Teigland [Wed, 13 Jun 2018 16:32:29 +0000 (11:32 -0500)]
Remove code for loading other metadata formats

other formats are not used.

6 years agotests: lvmetad-pvscan-cache expect command to fail
David Teigland [Tue, 12 Jun 2018 17:44:23 +0000 (12:44 -0500)]
tests: lvmetad-pvscan-cache expect command to fail

6 years agotests: lvconvert-repair remove cluster test
David Teigland [Tue, 12 Jun 2018 16:35:45 +0000 (11:35 -0500)]
tests: lvconvert-repair remove cluster test

6 years agoRemove the unused lock_hash in lvmcache
David Teigland [Tue, 12 Jun 2018 16:29:56 +0000 (11:29 -0500)]
Remove the unused lock_hash in lvmcache

It kept track of which VGs were locked, but is
no longer used, so remove it.

6 years agoClean up repair and result values in vg_read
David Teigland [Tue, 12 Jun 2018 14:44:37 +0000 (09:44 -0500)]
Clean up repair and result values in vg_read

Fix the confusing mix of input and output values
in the single variable.

6 years agoFix use of orphan lock in commands
David Teigland [Mon, 11 Jun 2018 20:08:23 +0000 (15:08 -0500)]
Fix use of orphan lock in commands

vgreduce, vgremove and vgcfgrestore were acquiring
the orphan lock in the midst of command processing
instead of at the start of the command.  (The orphan
lock moved to being acquired at the start of the
command back when pvcreate/vgcreate/vgextend were
reworked based on pvcreate_each_device.)

vgsplit also needed a small update to avoid reacquiring
a VG lock that it already held (for the new VG name).

6 years agoRemove checking for locked VGs
David Teigland [Mon, 11 Jun 2018 17:25:52 +0000 (12:25 -0500)]
Remove checking for locked VGs

A few places were calling a function to check if a
VG lock was held.  The only place it was actually
needed is for pvcreate which wants to do its own
locking (and scanning) around process_each_pv.

The locking/scanning exceptions for pvcreate in
process_each_pv/vg_read can be enabled by just passing
a couple of flags instead of checking if the VG is
already locked.  This also means that these special
cases won't be enabled unknowingly in other places
where they shouldn't be used.

6 years agolvmlockd: skip repair lock upgrade for non shared vgs
David Teigland [Tue, 12 Jun 2018 14:25:51 +0000 (09:25 -0500)]
lvmlockd: skip repair lock upgrade for non shared vgs

Only attempt lvmlockd lock upgrade for shared VGs.

6 years agobuild: ensure configure.h comes first
Zdenek Kabelac [Mon, 11 Jun 2018 20:38:51 +0000 (22:38 +0200)]
build: ensure configure.h comes first

Fix header order so configure.h is 1st. included header.

6 years agosnapshot: improve checking of merging snapshot
Zdenek Kabelac [Mon, 11 Jun 2018 20:19:20 +0000 (22:19 +0200)]
snapshot: improve checking of merging snapshot

Add runtime detection for 'lvs -o+seg_monitor' and 'vgchange --monitor'.
This fix should avoid unnecessary timeout on systemd shutdown.

6 years agovgchange: start polling with option
Zdenek Kabelac [Mon, 11 Jun 2018 20:18:00 +0000 (22:18 +0200)]
vgchange: start polling with option

Polling start either with '--refresh'
or with '--poll' option specified.

6 years agobuild: use internal libs for lvm2cmd
Zdenek Kabelac [Mon, 11 Jun 2018 20:15:49 +0000 (22:15 +0200)]
build: use internal libs for lvm2cmd

6 years agobuild: link dmeventd plugins with internal libs
Zdenek Kabelac [Mon, 11 Jun 2018 19:09:45 +0000 (21:09 +0200)]
build: link dmeventd plugins with internal libs

6 years agobuild: make generate
Zdenek Kabelac [Fri, 8 Jun 2018 20:16:00 +0000 (22:16 +0200)]
build: make generate

6 years agobuild: update configure
Zdenek Kabelac [Fri, 8 Jun 2018 20:15:05 +0000 (22:15 +0200)]
build: update configure

6 years agoRemove lvmcache CACHE_LOCKED flag
David Teigland [Fri, 8 Jun 2018 20:11:47 +0000 (15:11 -0500)]
Remove lvmcache CACHE_LOCKED flag

and the functions that set it.  It's no longer used.

6 years agoRemove locking for non-vgs
David Teigland [Fri, 8 Jun 2018 19:34:50 +0000 (14:34 -0500)]
Remove locking for non-vgs

Locks for VGs are the only thing that locking.[ch]
now handles, so references to other variations
can be removed.

6 years agotests: remove vgsplit-usage cluster test
David Teigland [Fri, 8 Jun 2018 18:08:32 +0000 (13:08 -0500)]
tests: remove vgsplit-usage cluster test

6 years agoRemove unused cluster-related locking flags
David Teigland [Fri, 8 Jun 2018 17:38:43 +0000 (12:38 -0500)]
Remove unused cluster-related locking flags

6 years agoRemove unused cache management from locking
David Teigland [Fri, 8 Jun 2018 17:30:43 +0000 (12:30 -0500)]
Remove unused cache management from locking

This code was for managing lvmcache for clvm
and it no longer does anything.

6 years agoRemoving locking layer from sync_local_dev_names
David Teigland [Fri, 8 Jun 2018 17:15:22 +0000 (12:15 -0500)]
Removing locking layer from sync_local_dev_names

the indirection is not needed without clvm

6 years agotests: remove use of vgcreate -c option
David Teigland [Fri, 8 Jun 2018 15:51:07 +0000 (10:51 -0500)]
tests: remove use of vgcreate -c option

6 years agoRemove python bindings for liblvm2app
David Teigland [Fri, 8 Jun 2018 15:33:47 +0000 (10:33 -0500)]
Remove python bindings for liblvm2app

6 years agoRemove header declarations for removed functions
David Teigland [Fri, 8 Jun 2018 15:01:05 +0000 (10:01 -0500)]
Remove header declarations for removed functions

6 years agotests: don't look for liblvm
David Teigland [Fri, 8 Jun 2018 14:36:03 +0000 (09:36 -0500)]
tests: don't look for liblvm

6 years agoRemove more code that was only used by liblvm2app
David Teigland [Fri, 8 Jun 2018 14:29:11 +0000 (09:29 -0500)]
Remove more code that was only used by liblvm2app

6 years agoMerge branch '2018-06-04-data-structs'
Joe Thornber [Fri, 8 Jun 2018 13:21:07 +0000 (14:21 +0100)]
Merge branch '2018-06-04-data-structs'

6 years agovarious: some missing #include zalloc.h
Joe Thornber [Fri, 8 Jun 2018 13:18:09 +0000 (14:18 +0100)]
various: some missing #include zalloc.h

6 years agodevice_mapper: move hash.[hc] to base/data-struct
Joe Thornber [Fri, 8 Jun 2018 12:54:19 +0000 (13:54 +0100)]
device_mapper: move hash.[hc] to base/data-struct

6 years agodevice_mapper: remove c++ guards from the header
Joe Thornber [Fri, 8 Jun 2018 12:44:43 +0000 (13:44 +0100)]
device_mapper: remove c++ guards from the header

This isn't a public header anymore, so not needed.

6 years agodevice_mapper: remove dbg_malloc.
Joe Thornber [Fri, 8 Jun 2018 12:40:53 +0000 (13:40 +0100)]
device_mapper: remove dbg_malloc.

I wrote dbg_malloc before we had valgrind.  These days there's just
no need.

6 years agotests: check pvresize with metadata size
Zdenek Kabelac [Fri, 8 Jun 2018 12:28:47 +0000 (14:28 +0200)]
tests: check pvresize with metadata size

Test new size of a PV can keep also metadata.

6 years agotests: updates test for raid scanning
Zdenek Kabelac [Tue, 5 Jun 2018 16:45:08 +0000 (18:45 +0200)]
tests: updates test for raid scanning

6 years agotests: drop unit subdir
Zdenek Kabelac [Fri, 8 Jun 2018 10:37:57 +0000 (12:37 +0200)]
tests: drop unit subdir

Until we resolve top-level making, drop inclusion of subdir Makefile
written for top-level usage so at least integrational tests are running.

6 years agotests: initial testing code for lvs while pvmove runs
Zdenek Kabelac [Fri, 8 Jun 2018 10:51:27 +0000 (12:51 +0200)]
tests: initial testing code for lvs while pvmove runs

6 years agotests: check proper support of fmt2 with cleaner policy
Zdenek Kabelac [Fri, 8 Jun 2018 10:46:47 +0000 (12:46 +0200)]
tests: check proper support of fmt2 with cleaner policy

6 years agocleanup: updates message with dots
Zdenek Kabelac [Tue, 5 Jun 2018 16:47:03 +0000 (18:47 +0200)]
cleanup: updates message with dots

6 years agobuild: drop exported symbols
Zdenek Kabelac [Thu, 7 Jun 2018 21:23:06 +0000 (23:23 +0200)]
build: drop exported symbols

This libs are no longer possible to create,
drop maintanence of exported symbols.

6 years agocache: cleaner policy also uses fmt2
Zdenek Kabelac [Fri, 8 Jun 2018 10:37:07 +0000 (12:37 +0200)]
cache:  cleaner policy also uses fmt2

Format 2 is also with cleaner policy.

6 years agopvresize: update message
Zdenek Kabelac [Tue, 5 Jun 2018 21:09:55 +0000 (23:09 +0200)]
pvresize: update message

There is always at least PV header update even if the size
of PV remains same (so it's not really resized).
Try to make it a slightly less confusing.

6 years agopvresize: add missing return
Zdenek Kabelac [Tue, 5 Jun 2018 19:21:26 +0000 (21:21 +0200)]
pvresize: add missing return

Log error path missed return 0.
Also fix some unneded bactraces (since log_error already shows
position).

6 years agopvmove: improve lvs
Zdenek Kabelac [Mon, 4 Jun 2018 09:05:28 +0000 (11:05 +0200)]
pvmove: improve lvs

When pvmoving LV - the target for LV is a mirror so the validation
that checked the type is matching was incorrect.

While we need a more generic enhancment of LVS output for pvmoved LVs,
for now at least stop showing internal errors and  'X' symbols in attrs.

6 years agolibdm: Stop libdm/misc/dmlib.h from including lib/misc/lib.h
Joe Thornber [Fri, 8 Jun 2018 12:01:41 +0000 (13:01 +0100)]
libdm: Stop libdm/misc/dmlib.h from including lib/misc/lib.h

6 years agodevice_mapper: rename libdevmapper.h -> all.h
Joe Thornber [Fri, 8 Jun 2018 11:31:45 +0000 (12:31 +0100)]
device_mapper: rename libdevmapper.h -> all.h

I'm paranoid a file will include the global one in /usr/include
by accident.

6 years agobase: Move list to base/data-struct
Joe Thornber [Fri, 8 Jun 2018 10:24:18 +0000 (11:24 +0100)]
base: Move list to base/data-struct

6 years agotest/unit: Rename Makefile.in -> Makefile
Joe Thornber [Fri, 8 Jun 2018 08:50:40 +0000 (09:50 +0100)]
test/unit: Rename Makefile.in -> Makefile

There's nothing being expanded.

6 years agoMerge branch '2018-06-05-remove-applib'
Joe Thornber [Fri, 8 Jun 2018 08:42:22 +0000 (09:42 +0100)]
Merge branch '2018-06-05-remove-applib'

6 years agoUpdate WHATS_NEW
Joe Thornber [Fri, 8 Jun 2018 08:42:05 +0000 (09:42 +0100)]
Update WHATS_NEW

6 years agoliblvm: remove lvmapi
Joe Thornber [Fri, 8 Jun 2018 08:38:05 +0000 (09:38 +0100)]
liblvm: remove lvmapi

This has been deprecated for a while.

6 years agoRework lock-override options and locking_type settings
David Teigland [Thu, 7 Jun 2018 20:33:02 +0000 (15:33 -0500)]
Rework lock-override options and locking_type settings

The last commit related to this was incomplete:
  "Implement lock-override options without locking type"

This is further reworking and reduction of the locking.[ch]
layer which handled all clustering, but is now only used
for file locking.  The "locking types" that this layer
implemented were removed previously, leaving only the
standard file locking.  (Some cluster-related artifacts
remain to be cleared out later.)

Command options to override or modify locking behavior
are reimplemented here without using the locking types.
Also, deprecated locking_type values are recognized,
and implemented as if one of the equivalent override
options was set.

Options that override file locking are:

. --nolocking disables all file locking.

. --readonly grants read lock requests without actually
  taking a file lock, and refuses write lock requests.

. --ignorelockingfailure tries to set up file locks and
  uses them normally if possible.  When not possible, it
  behaves like --readonly, but allows activation.

. --sysinit is the same as ignorelockingfailure.

. global/metadata_read_only acquires actual read file
  locks, and refuses write lock requests.

(Some of these options could probably be deprecated
because they were added as workarounds to various
locking_type behaviors that are now deprecated.)

The locking_type setting now has one valid value: 1 which
refers to standard file locking.  Configs that contain
deprecated values are recognized and still work in
largely the same way:

. 0 disabled all locking, now implemented like --nolocking
  is set.  Allow the nolocking option in all commands.

. 1 is the normal file locking setting and is unchanged.

. 2 was for external locking which was not used, and
  reverts to normal file locking.

. 3 was for cluster/clvm.  This reverts to normal file
  locking, and prints messages about lvmlockd.

. 4 was equivalent to readonly, now implemented like
  --readonly is set.

. 5 disabled all locking, now implemented like
  --nolocking is set.

6 years agoman lvmlockd: remove unnecessary reference to lvmetad
David Teigland [Thu, 7 Jun 2018 18:42:11 +0000 (13:42 -0500)]
man lvmlockd: remove unnecessary reference to lvmetad

it's optional to use it with lvmlockd

6 years agotest/unit: activation generator unit tests
Joe Thornber [Thu, 7 Jun 2018 15:24:42 +0000 (16:24 +0100)]
test/unit: activation generator unit tests

6 years agoMerge branch 'master' of git+ssh://sourceware.org/git/lvm2
Joe Thornber [Thu, 7 Jun 2018 15:20:49 +0000 (16:20 +0100)]
Merge branch 'master' of git+ssh://sourceware.org/git/lvm2

6 years agoImplement lock-override options without locking type
David Teigland [Wed, 6 Jun 2018 21:31:59 +0000 (16:31 -0500)]
Implement lock-override options without locking type

The options: --nolocking, --readonly, --sysinit
override, or make exceptions to, the normal file locking
behavior.  Implement these by just checking for the
options in the file locking path instead of using
special locking types.

6 years agotests: system_id remove clustered vg test
David Teigland [Wed, 6 Jun 2018 19:35:27 +0000 (14:35 -0500)]
tests: system_id remove clustered vg test

6 years agotests: remove -cn option from some commands
David Teigland [Wed, 6 Jun 2018 19:04:19 +0000 (14:04 -0500)]
tests: remove -cn option from some commands

6 years agoRemove locking infrastructure from activation paths
David Teigland [Tue, 5 Jun 2018 21:47:24 +0000 (16:47 -0500)]
Remove locking infrastructure from activation paths

Basic LV functions:

  activate_lv(), deactivate_lv(),
  suspend_lv(), resume_lv()

were routed through the locking infrastruture on the way to:

  lv_activate_with_filter(), lv_deactivate(),
  lv_suspend_if_active(), lv_resume_if_active()

This commit removes the locking infrastructure from the
middle and calls the later functions directly from the former.

There were a couple of ancillary steps that the locking
infrastructure added along the way which are still included:

  - critical section inc/dec during suspend/resume
  - checking for active component LVs during activate

The "activation" file lock (serializing activation) has not
been kept because activation commands have been changed to
take the VG file lock exclusively which makes the activation
lock unused and unnecessary.

6 years agouse exclusive file lock on VG for activation
David Teigland [Wed, 6 Jun 2018 16:14:39 +0000 (11:14 -0500)]
use exclusive file lock on VG for activation

Make activation commands:
  vgchange -ay, lvchange -ay, pvscan -aay

take an exclusive file lock on the VG to serialize
multiple concurrent activation commands which could
otherwise interfere with each other.

6 years agoRemove VG lock ordering check
David Teigland [Tue, 5 Jun 2018 20:16:58 +0000 (15:16 -0500)]
Remove VG lock ordering check

Four commands lock two VGs at a time:

- vgsplit and vgmerge already have their own logic to
  acquire the locks in the correct order.

- vgimportclone and vgrename disable this ordering check.

6 years agoRemove unused clvm variations for active LVs
David Teigland [Tue, 5 Jun 2018 18:21:28 +0000 (13:21 -0500)]
Remove unused clvm variations for active LVs

Different flavors of activate_lv() and lv_is_active()
which are meaningful in a clustered VG can be eliminated
and replaced with whatever that flavor already falls back
to in a local VG.

e.g. lv_is_active_exclusive_locally() is distinct from
lv_is_active() in a clustered VG, but in a local VG they
are equivalent.  So, all instances of the variant are
replaced with the basic local equivalent.

For local VGs, the same behavior remains as before.
For shared VGs, lvmlockd was written with the explicit
requirement of local behavior from these functions
(lvmlockd requires locking_type 1), so the behavior
in shared VGs also remains the same.

6 years agoRemove more clvm code
David Teigland [Tue, 5 Jun 2018 16:39:07 +0000 (11:39 -0500)]
Remove more clvm code

6 years agolvmlockd: fix missing lock_type null check
David Teigland [Wed, 6 Jun 2018 18:56:02 +0000 (13:56 -0500)]
lvmlockd: fix missing lock_type null check

Missed checking if vg->lock_type is NULL in commit db8d3bdfa:
  lvmlockd: enable mirror split and merge with dlm lock_type

6 years agodevices: clean up io error messages
David Teigland [Wed, 6 Jun 2018 15:05:08 +0000 (10:05 -0500)]
devices: clean up io error messages

Remove the io error message from bcache.c since it is not
very useful without the device path.

Make the io error messages from dev_read_bytes/dev_write_bytes
more user friendly.

6 years agoscripts/lvm2_activation_generator_systemd_red_hat: rewrite to use lvmconfig
Joe Thornber [Thu, 7 Jun 2018 15:15:04 +0000 (16:15 +0100)]
scripts/lvm2_activation_generator_systemd_red_hat: rewrite to use lvmconfig

Unit tested the new code, but not run functional tests (assuming they exist).

6 years agoImplement lock-override options without locking type
David Teigland [Wed, 6 Jun 2018 21:31:59 +0000 (16:31 -0500)]
Implement lock-override options without locking type

The options: --nolocking, --readonly, --sysinit
override, or make exceptions to, the normal file locking
behavior.  Implement these by just checking for the
options in the file locking path instead of using
special locking types.

6 years agotests: system_id remove clustered vg test
David Teigland [Wed, 6 Jun 2018 19:35:27 +0000 (14:35 -0500)]
tests: system_id remove clustered vg test

6 years agotests: remove -cn option from some commands
David Teigland [Wed, 6 Jun 2018 19:04:19 +0000 (14:04 -0500)]
tests: remove -cn option from some commands

6 years agoRemove locking infrastructure from activation paths
David Teigland [Tue, 5 Jun 2018 21:47:24 +0000 (16:47 -0500)]
Remove locking infrastructure from activation paths

Basic LV functions:

  activate_lv(), deactivate_lv(),
  suspend_lv(), resume_lv()

were routed through the locking infrastruture on the way to:

  lv_activate_with_filter(), lv_deactivate(),
  lv_suspend_if_active(), lv_resume_if_active()

This commit removes the locking infrastructure from the
middle and calls the later functions directly from the former.

There were a couple of ancillary steps that the locking
infrastructure added along the way which are still included:

  - critical section inc/dec during suspend/resume
  - checking for active component LVs during activate

The "activation" file lock (serializing activation) has not
been kept because activation commands have been changed to
take the VG file lock exclusively which makes the activation
lock unused and unnecessary.

6 years agouse exclusive file lock on VG for activation
David Teigland [Wed, 6 Jun 2018 16:14:39 +0000 (11:14 -0500)]
use exclusive file lock on VG for activation

Make activation commands:
  vgchange -ay, lvchange -ay, pvscan -aay

take an exclusive file lock on the VG to serialize
multiple concurrent activation commands which could
otherwise interfere with each other.

6 years agoRemove VG lock ordering check
David Teigland [Tue, 5 Jun 2018 20:16:58 +0000 (15:16 -0500)]
Remove VG lock ordering check

Four commands lock two VGs at a time:

- vgsplit and vgmerge already have their own logic to
  acquire the locks in the correct order.

- vgimportclone and vgrename disable this ordering check.

6 years agoRemove unused clvm variations for active LVs
David Teigland [Tue, 5 Jun 2018 18:21:28 +0000 (13:21 -0500)]
Remove unused clvm variations for active LVs

Different flavors of activate_lv() and lv_is_active()
which are meaningful in a clustered VG can be eliminated
and replaced with whatever that flavor already falls back
to in a local VG.

e.g. lv_is_active_exclusive_locally() is distinct from
lv_is_active() in a clustered VG, but in a local VG they
are equivalent.  So, all instances of the variant are
replaced with the basic local equivalent.

For local VGs, the same behavior remains as before.
For shared VGs, lvmlockd was written with the explicit
requirement of local behavior from these functions
(lvmlockd requires locking_type 1), so the behavior
in shared VGs also remains the same.

6 years agoRemove more clvm code
David Teigland [Tue, 5 Jun 2018 16:39:07 +0000 (11:39 -0500)]
Remove more clvm code

6 years agolvmlockd: fix missing lock_type null check
David Teigland [Wed, 6 Jun 2018 18:56:02 +0000 (13:56 -0500)]
lvmlockd: fix missing lock_type null check

Missed checking if vg->lock_type is NULL in commit db8d3bdfa:
  lvmlockd: enable mirror split and merge with dlm lock_type

6 years agodevices: clean up io error messages
David Teigland [Wed, 6 Jun 2018 15:05:08 +0000 (10:05 -0500)]
devices: clean up io error messages

Remove the io error message from bcache.c since it is not
very useful without the device path.

Make the io error messages from dev_read_bytes/dev_write_bytes
more user friendly.

6 years agodevice_mapper: fixup a couple of includes
Joe Thornber [Wed, 6 Jun 2018 13:45:16 +0000 (14:45 +0100)]
device_mapper: fixup a couple of includes

"libdevmapper.h" -> "device_mapper/libdevmapper.h"

6 years agoRemove clvmd and associated code
David Teigland [Tue, 5 Jun 2018 15:47:01 +0000 (10:47 -0500)]
Remove clvmd and associated code

More code reduction and simplification can follow.

6 years agoWHATS_NEW
Heinz Mauelshagen [Tue, 5 Jun 2018 14:24:19 +0000 (16:24 +0200)]
WHATS_NEW

6 years agotest: add convcenience conversion tests linear <-> striped
Heinz Mauelshagen [Wed, 30 May 2018 10:50:34 +0000 (12:50 +0200)]
test: add convcenience conversion tests linear <-> striped

Add tests for linear <-> striped|raid* conversions.

Add region_size config to reshape tests to avoid test
failures in case of it being defined unexpectedly in lvm.conf.

Related: rhbz1439925
Related: rhbz1447809

6 years agolvconvert: support linear <-> striped convenience conversions
Heinz Mauelshagen [Wed, 30 May 2018 10:49:15 +0000 (12:49 +0200)]
lvconvert: support linear <-> striped convenience conversions

"lvconvert --type {linear|striped|raid*} ..." on a striped/linear
LV provides convenience interim type to convert to the requested
final layout similar to the given raid* <-> raid* conveninece types.

Whilst on it, add missing raid5_n convenince type from raid5* to raid10.

Resolves: rhbz1439925
Resolves: rhbz1447809
Resolves: rhbz1573255

6 years agosegtype: add linear
Heinz Mauelshagen [Wed, 30 May 2018 10:44:24 +0000 (12:44 +0200)]
segtype: add linear

Add linear segtype addressing FIXME in preparation
for linear <-> striped convenience conversion support

6 years agobuild: base/Makefile
Joe Thornber [Mon, 4 Jun 2018 14:37:35 +0000 (15:37 +0100)]
build: base/Makefile

.gitignore hid it.

6 years agobuild: libbase.a
Joe Thornber [Mon, 4 Jun 2018 12:53:07 +0000 (13:53 +0100)]
build: libbase.a

6 years agobuild: get separate builddir working again
Joe Thornber [Mon, 4 Jun 2018 12:22:14 +0000 (13:22 +0100)]
build: get separate builddir working again

6 years agobuild: More tweaks to python include dirs.
Joe Thornber [Mon, 4 Jun 2018 11:28:17 +0000 (12:28 +0100)]
build: More tweaks to python include dirs.

6 years agoMerge branch 'master' of git+ssh://sourceware.org/git/lvm2
Joe Thornber [Mon, 4 Jun 2018 10:59:49 +0000 (11:59 +0100)]
Merge branch 'master' of git+ssh://sourceware.org/git/lvm2

6 years agobuild: Get python dir building without the include/ dir
Joe Thornber [Mon, 4 Jun 2018 10:59:13 +0000 (11:59 +0100)]
build: Get python dir building without the include/ dir

6 years agobuild: fixes
Zdenek Kabelac [Mon, 4 Jun 2018 10:25:48 +0000 (12:25 +0200)]
build: fixes

6 years agobuild: remove any leftover file
Zdenek Kabelac [Mon, 4 Jun 2018 10:16:30 +0000 (12:16 +0200)]
build: remove any leftover file

In case repository is used after building older version of lvm2
(i.e. git bisect) make sure clean erases any possible old symlinks.

6 years agobuild: link lvm2_activation_generator_systemd_red_hat with libdevice-mapper.a
Joe Thornber [Mon, 4 Jun 2018 09:00:44 +0000 (10:00 +0100)]
build: link lvm2_activation_generator_systemd_red_hat with libdevice-mapper.a

6 years agobuild: compile fixes
Zdenek Kabelac [Fri, 1 Jun 2018 18:24:45 +0000 (20:24 +0200)]
build: compile fixes

6 years agoMerge branch 'master' of git+ssh://sourceware.org/git/lvm2
Joe Thornber [Fri, 1 Jun 2018 18:19:11 +0000 (19:19 +0100)]
Merge branch 'master' of git+ssh://sourceware.org/git/lvm2

6 years agobuild: get clvmd building again
Joe Thornber [Fri, 1 Jun 2018 18:18:36 +0000 (19:18 +0100)]
build: get clvmd building again

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