1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-22 17:35:59 +03:00
Commit Graph

16002 Commits

Author SHA1 Message Date
Zdenek Kabelac
4f8c928253 gcc: ensure sector is initilized
Some older gcc errnously report the variable can be used uninitlized.
Quite warning by explicit initalization.
2018-12-04 14:33:38 -06:00
Zdenek Kabelac
8ef634d1f9 gcc: avoid shadowing use_aio
Function use_aio() is already declared, avoid its shadowing.
lvm-globals.h:59: warning: shadowed declaration is here
2018-12-04 14:33:38 -06:00
Zdenek Kabelac
e9eac41b31 gcc: avoid shadowing activate_lv
Function activate_lv() is already declared, avoid its shadowing.
activate.h:133: warning: shadowed declaration is here
2018-12-04 14:33:38 -06:00
Zdenek Kabelac
98472b2579 gcc: avoid shadowing index
Some older headers were declaring 'index' so avoid its usage.
/usr/include/string.h:489: warning: shadowed declaration is here
2018-12-04 14:33:38 -06:00
Zdenek Kabelac
76624d1a8c makefiles: ensure test dir can run unit-test 2018-12-04 14:33:38 -06:00
Zdenek Kabelac
d910edfb37 makefiles: avoid clustering out
When ctags package is not installed, avoid cluttering output
from failing 'which' command.
2018-12-04 14:33:38 -06:00
Zdenek Kabelac
aae7f09d11 device_mapper: move internal header to front 2018-12-04 14:33:38 -06:00
Zdenek Kabelac
2fc9a4c291 libdm: optimize dm_pool_strndup 2018-12-04 14:33:38 -06:00
Zdenek Kabelac
484fb43584 device_mapper: optimize dm_pool_strndup 2018-12-04 14:33:38 -06:00
Zdenek Kabelac
1e5142d3ca device_mapper: fix incorrect dm_strncpy usage
Patch 668c9d0762 introduced regression,
since the code here would actually always return failing result.
Replace it with more simple call to strndup().
2018-12-04 14:33:38 -06:00
Zdenek Kabelac
da04f97e02 rpm: install lvm2-pvscan again
Let's repeat history once more 13d5c78a8d.
2018-12-04 14:33:38 -06:00
Zdenek Kabelac
8b13867548 tests: extend sleep 2018-12-04 14:33:38 -06:00
Zdenek Kabelac
cc7169df30 makefiles: clean unit-test 2018-12-04 14:33:38 -06:00
Zdenek Kabelac
99ded4c6e0 makefiles: ignore missing files 2018-12-04 14:33:38 -06:00
Zdenek Kabelac
855f5b5e72 configure: update 2018-12-04 14:33:38 -06:00
Zdenek Kabelac
1781344b6b tests: drop use_lvmetad from unit test 2018-12-04 14:33:38 -06:00
Zdenek Kabelac
e5ae9b0d2f tests: reduce memory footprint 2018-12-04 14:33:38 -06:00
Zdenek Kabelac
bb8e22d9cc tests: updates 2018-12-04 14:33:38 -06:00
Zdenek Kabelac
9a9cf22aa0 tests: requires at least 2 iterations 2018-12-04 14:33:38 -06:00
Zdenek Kabelac
0172a76622 tests: use select with dmsetup
Use 'dmsetup -S' to greatly simplify such loops.
2018-12-04 14:33:38 -06:00
Zdenek Kabelac
b252c20eb9 tests: add mising udev_wait
mdadm does not handle udev waiting so it may exit earlier,
while devices are still 'running'.
2018-12-04 14:33:38 -06:00
Zdenek Kabelac
4f32c4fbcd make: generate man update 2018-12-04 14:33:38 -06:00
Zdenek Kabelac
9f705a7a64 make: generate config update 2018-12-04 14:33:38 -06:00
Zdenek Kabelac
72aa4941af makefiles: add missing srcdir 2018-12-04 14:33:38 -06:00
Zdenek Kabelac
224bdce3eb makefiles: improving cleaning rules 2018-12-04 14:33:37 -06:00
Zdenek Kabelac
ae9cadd535 makefiles: avoid dependency calcs for base dir
For some targets we do not want to generate dependencies.
Also add note about usage of such Makefile - it might be
possibly better to rename it to different filename to avoid
any confusion.
2018-12-04 14:33:37 -06:00
Zdenek Kabelac
325d09a60e makefiles: updates for less verbosity 2018-12-04 14:33:37 -06:00
Zdenek Kabelac
afabce13f6 makefiles: improve lcov generator
Simplify generation of lcov report.
2018-12-04 14:33:37 -06:00
Zdenek Kabelac
a75a9dcb58 base: use calloc
Make zalloc a wrapper over calloc
2018-12-04 14:33:37 -06:00
Peter Rajnoha
b6a767930f scan: md metadata version 0.90 is at the end of disk
commit de28637
  scan: use full md filter when md 1.0 devices are present

missed the fact that md superblock version 0.90 also puts
metadata at the end of the device, so the full md filter
needs to be used when either 0.90 or 1.0 is present.
2018-12-04 14:33:37 -06:00
David Teigland
d02a64cf36 config settings: fix version 3.0.0
version 3.0.0 was changed in the end to 2.3.0,
but config settings had previously been encoded
with version 3.0.0.
2018-12-04 14:33:37 -06:00
David Teigland
2c1e9d4956 lvmlockd: vgchange locktype with yes option
for auto response to yes/no prompt.
2018-12-04 14:33:37 -06:00
David Teigland
88ae03c38f lvmlockctl: wait by default when stopping
lvmlockctl --stop-lockspaces was by default not waiting
for all the lockspaces to be gone.
2018-12-04 14:33:37 -06:00
David Teigland
f6a77a894e blk_availability service drop lvmetad 2018-12-04 14:33:37 -06:00
David Teigland
8266d54a55 pvscan systemd service for event based activation
The pvscan systemd service for autoactivation was
mistakenly dropped along with the lvmetad related
services.

The activation generator program now looks at the new
lvm.conf setting "event_activation" (default 1) to
switch between event activation and direct activation.

Previously, the old use_lvmetad setting was used to
switch between event and direct activation.
2018-12-04 14:33:37 -06:00
David Teigland
263e34b9b6 bcache: sync io fixes
fix lseek error check
fix read/write error checks
handle zero return from read and write
don't return an error for short io
fix partial read/write loop
2018-12-04 14:33:37 -06:00
David Teigland
52502b1fba io: use sync io if aio fails
io_setup() for aio may fail if a system has reached the
aio request limit.  In this case, fall back to using
sync io.  Also, lvm use of aio can be disabled entirely
with config setting global/use_aio=0.

The system limit for aio requests can be seen from
  /proc/sys/fs/aio-max-nr

The current usage of aio requests can be seen from
  /proc/sys/fs/aio-nr

The system limit for aio requests can be increased by
setting fs.aio-max-nr using sysctl.

Also add last-byte limit to the sync io code.
2018-12-04 14:33:37 -06:00
Zdenek Kabelac
a4d72c9cb2 tests: update required raid target
For embeded reshaping operation require higher driver version.
(otherwise we get:

Converting vg/LV1 from raid6 (same as raid6_zr) is directly possible to the following layouts:
 raid6_nc
 raid6_nr
 raid6_la_6
 raid6_ls_6
 raid6_ra_6
 raid6_rs_6
 raid6_n_6
2018-12-04 14:33:37 -06:00
Zdenek Kabelac
b43c8a81cb tests: missing copyright 2018-12-04 14:33:37 -06:00
Zdenek Kabelac
d207abce9d sanlock: update headers 2018-12-04 14:33:37 -06:00
Zdenek Kabelac
5a057cb85b tests: generate slightly less volumes 2018-12-04 14:33:37 -06:00
Zdenek Kabelac
674eaa13ff tests: speed-up testing full of lvm2 metadata
Generate faster full metadata condition.

FIXME: vgremove is extremaly slow with larger set of LVs.
2018-12-04 14:33:37 -06:00
Zdenek Kabelac
63b4b38b8b tests: update parm for new kernel 2018-12-04 14:33:37 -06:00
Zdenek Kabelac
8955c1b4e5 tests: skip part of test
On kernel 4.8 this test piece oopses machine (fc23).
2018-12-04 14:33:37 -06:00
Zdenek Kabelac
d379754b44 tests: create whole path with mkdir
Create also 'lvm' upper this if such one is missing in /run dir
and use '-p' with mkdir.
2018-12-04 14:33:37 -06:00
Zdenek Kabelac
9a6bcbe195 tests: skip portion of test for lvmpolld
lvmpolld ATM is not desingned to preserve interval checking
in the same way the 'lvconvert' tool is doing - so the passed
'-i 40' is not respected and lvmpolld autonomously checks
state of conversion and updates lvm2 metadata and dm tables
when needed.

So skip portion of test that relayed on this and preserve this logic
only for command line invocation and forking of polling process
where the interval of checking is under full control.
2018-12-04 14:33:37 -06:00
Zdenek Kabelac
30d8077f7a tests: skip when gcore from gdb package is missing
gcore is needed for gathering all userspace mappings.
2018-12-04 14:33:37 -06:00
Zdenek Kabelac
ca6bb353c9 tests: prefer internal header
Although we primarily want to check externally used libdevmapper
library,   out internal  all.h is still keeping all symbols
as the original library has - so for simpler compilation keep
using this private copy for defining needed symbols.
2018-12-04 14:33:37 -06:00
Zdenek Kabelac
8f0364ccd2 tests: correcting header file enclosure
Use "" for internal header file.
2018-12-04 14:33:37 -06:00
Zdenek Kabelac
e52b5f9ab2 tests: still more libs needs 2018-12-04 14:33:37 -06:00