David Teigland
a163d5341a
tests: remove vgconvert usage
2018-06-13 14:16:28 -05:00
David Teigland
d067263f51
tests: remove metadata-dirs
...
metadata dirs are removed
2018-06-13 14:14:23 -05:00
David Teigland
5fca75877d
Remove vgconvert
...
it has no use without lvm1
2018-06-13 14:14:03 -05:00
David Teigland
22c5467add
filters: remove cache file in persistent filter
...
It creates problems because it's not always correct,
and it doesn't actually help much.
2018-06-13 14:00:47 -05:00
David Teigland
17f5572bc9
Remove independent metadata areas
...
in which metadata is stored in files on the local fs
instead of on PVs.
2018-06-13 12:25:19 -05:00
David Teigland
9df6f601e0
Remove code for loading other metadata formats
...
other formats are not used.
2018-06-13 12:03:42 -05:00
David Teigland
885e57cb27
tests: lvmetad-pvscan-cache expect command to fail
2018-06-12 12:44:23 -05:00
David Teigland
7824bb710d
tests: lvconvert-repair remove cluster test
2018-06-12 11:35:45 -05:00
David Teigland
be3af7f93e
Remove the unused lock_hash in lvmcache
...
It kept track of which VGs were locked, but is
no longer used, so remove it.
2018-06-12 11:29:56 -05:00
David Teigland
981a3ba98e
Clean up repair and result values in vg_read
...
Fix the confusing mix of input and output values
in the single variable.
2018-06-12 11:08:26 -05:00
David Teigland
9a8c36b891
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).
2018-06-12 09:46:11 -05:00
David Teigland
c4153a8dfc
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.
2018-06-12 09:46:04 -05:00
David Teigland
3b6b7f8f9b
lvmlockd: skip repair lock upgrade for non shared vgs
...
Only attempt lvmlockd lock upgrade for shared VGs.
2018-06-12 09:44:05 -05:00
Zdenek Kabelac
1c79cf9830
build: ensure configure.h comes first
...
Fix header order so configure.h is 1st. included header.
2018-06-11 22:38:51 +02:00
Zdenek Kabelac
77d5caae90
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.
2018-06-11 22:25:42 +02:00
Zdenek Kabelac
75fed05d3e
vgchange: start polling with option
...
Polling start either with '--refresh'
or with '--poll' option specified.
2018-06-11 22:25:42 +02:00
Zdenek Kabelac
e82b70e739
build: use internal libs for lvm2cmd
2018-06-11 22:25:42 +02:00
Zdenek Kabelac
9c7ee1e1c4
build: link dmeventd plugins with internal libs
2018-06-11 22:25:42 +02:00
Zdenek Kabelac
5c2f7f083c
build: make generate
2018-06-11 22:25:42 +02:00
Zdenek Kabelac
2a307ce33c
build: update configure
2018-06-11 22:25:42 +02:00
David Teigland
b48e10d9e6
Remove lvmcache CACHE_LOCKED flag
...
and the functions that set it. It's no longer used.
2018-06-08 15:11:47 -05:00
David Teigland
ebd147ff24
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.
2018-06-08 14:34:50 -05:00
David Teigland
4ce9579099
tests: remove vgsplit-usage cluster test
2018-06-08 14:01:05 -05:00
David Teigland
1c59140f5f
Remove unused cluster-related locking flags
2018-06-08 14:01:00 -05:00
David Teigland
a8759dc7a6
Remove unused cache management from locking
...
This code was for managing lvmcache for clvm
and it no longer does anything.
2018-06-08 12:30:43 -05:00
David Teigland
5e672df6ae
Removing locking layer from sync_local_dev_names
...
the indirection is not needed without clvm
2018-06-08 12:18:57 -05:00
David Teigland
8266b7e951
tests: remove use of vgcreate -c option
2018-06-08 10:51:07 -05:00
David Teigland
ae961a192a
Remove python bindings for liblvm2app
2018-06-08 10:33:47 -05:00
David Teigland
669b1295ae
Remove header declarations for removed functions
2018-06-08 10:01:05 -05:00
David Teigland
dbc3e62cc0
tests: don't look for liblvm
2018-06-08 09:36:03 -05:00
David Teigland
73b7e6fde7
Remove more code that was only used by liblvm2app
2018-06-08 09:29:11 -05:00
Joe Thornber
7c4b19c335
Merge branch '2018-06-04-data-structs'
2018-06-08 14:21:07 +01:00
Joe Thornber
0ac89fb860
various: some missing #include zalloc.h
2018-06-08 14:18:09 +01:00
Joe Thornber
61e67e51e1
device_mapper: move hash.[hc] to base/data-struct
2018-06-08 13:54:19 +01:00
Joe Thornber
962a3eb3fa
device_mapper: remove c++ guards from the header
...
This isn't a public header anymore, so not needed.
2018-06-08 13:44:43 +01:00
Joe Thornber
d5da55ed85
device_mapper: remove dbg_malloc.
...
I wrote dbg_malloc before we had valgrind. These days there's just
no need.
2018-06-08 13:40:53 +01:00
Zdenek Kabelac
0e2a358da9
tests: check pvresize with metadata size
...
Test new size of a PV can keep also metadata.
2018-06-08 14:37:31 +02:00
Zdenek Kabelac
59dc9b445d
tests: updates test for raid scanning
2018-06-08 14:37:31 +02:00
Zdenek Kabelac
f20e828ec2
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.
2018-06-08 14:37:31 +02:00
Zdenek Kabelac
bb7c064b23
tests: initial testing code for lvs while pvmove runs
2018-06-08 14:37:31 +02:00
Zdenek Kabelac
c93e0932e8
tests: check proper support of fmt2 with cleaner policy
2018-06-08 14:37:31 +02:00
Zdenek Kabelac
8b111f28b0
cleanup: updates message with dots
2018-06-08 14:37:31 +02:00
Zdenek Kabelac
bc8c8d2f87
build: drop exported symbols
...
This libs are no longer possible to create,
drop maintanence of exported symbols.
2018-06-08 14:37:31 +02:00
Zdenek Kabelac
5cb4b2a424
cache: cleaner policy also uses fmt2
...
Format 2 is also with cleaner policy.
2018-06-08 14:37:29 +02:00
Zdenek Kabelac
1f5f8382ae
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.
2018-06-08 14:36:59 +02:00
Zdenek Kabelac
fb171edd45
pvresize: add missing return
...
Log error path missed return 0.
Also fix some unneded bactraces (since log_error already shows
position).
2018-06-08 14:36:56 +02:00
Zdenek Kabelac
0c62ae3f89
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.
2018-06-08 14:35:42 +02:00
Joe Thornber
c78239d860
libdm: Stop libdm/misc/dmlib.h from including lib/misc/lib.h
2018-06-08 13:01:41 +01:00
Joe Thornber
286c1ba336
device_mapper: rename libdevmapper.h -> all.h
...
I'm paranoid a file will include the global one in /usr/include
by accident.
2018-06-08 12:31:45 +01:00
Joe Thornber
88ae928ca3
base: Move list to base/data-struct
2018-06-08 11:24:18 +01:00