Joe Thornber
90d0ff6636
bcache: reorder includes in .c file too
2018-05-02 19:45:06 +01:00
Joe Thornber
8fd300f7df
device/bcache: reorder includes
2018-05-02 18:59:43 +01:00
Joe Thornber
972b535220
build: add -D_FILE_OFFSET_BITS=64
...
I don't like having this in a common header because it means you end
up including too much and causing unneccessary dependencies. eg,
lib/misc/lib.h includes libdevmapper.h, internationalisation, and
logging stuff.
2018-05-02 18:40:38 +01:00
Joe Thornber
9fe0be871c
unit-test/matcher_t: Fixup Kabi's test
...
The matcher matches the regexes in reverse order.
2018-05-02 13:53:43 +01:00
Joe Thornber
506ab29bfd
unit-test/matcher_t: add another (failing!) test for Kabi
2018-05-02 13:31:57 +01:00
Joe Thornber
6abc3f10ae
vdo: get status parser compiling
2018-05-02 11:15:35 +01:00
Joe Thornber
11d9b0cae7
Merge branch 'master' into 2018-04-30-vdo-support
2018-05-02 10:09:20 +01:00
David Teigland
11436b00e0
tests: add gfs-pool test
...
Put back a test like the old one that was removed
in d709d8445f
.
It verifies that lvm will ignore and not use a
gfs-pool device.
2018-05-01 15:24:42 -05:00
David Teigland
24e7745d7a
devices: ignore lvm1 and pool devices
2018-05-01 15:18:47 -05:00
Joe Thornber
db0560c1b0
Merge branch 'master' of git+ssh://sourceware.org/git/lvm2
2018-05-01 20:04:30 +01:00
Joe Thornber
1553993ea1
Revert "build: Stop creating the symlinks in include/ on the fly."
...
This reverts commit cdcea0bf55
.
2018-05-01 20:03:51 +01:00
David Teigland
39f05855c0
tests: remove use of lvm1 metadatatype
2018-05-01 13:29:57 -05:00
David Teigland
d709d8445f
tests: remove gfs pool test
2018-05-01 13:25:40 -05:00
David Teigland
9687ee2a74
tests: update lvmetad-disabled to not use lvm1
2018-05-01 11:33:39 -05:00
David Teigland
8dcc973bbb
bcache_write_bytes needs to be followed by flush
...
The improved bcache_write_bytes is not flushing, so
the caller needs to do that.
2018-05-01 09:33:55 -05:00
David Teigland
a418f88b76
lvmcache: fix typo in lvmcache_get_saved_vg
2018-05-01 09:06:57 -05:00
Joe Thornber
3ea862bdfc
unit-test/bcache_t: test was using too large a block size
2018-05-01 14:17:12 +01:00
Joe Thornber
bfc61a9543
bcache: squash some warnings on rhel6
2018-05-01 13:21:53 +01:00
Joe Thornber
de042fa13d
unit-test/bcache_t: Use a stripped down fixture for some tests
2018-05-01 12:54:57 +01:00
Joe Thornber
61153d90e5
build: update ./configure and configure.h.in
...
Fallout from Dave's removal of format1 and pool.
2018-05-01 12:12:07 +01:00
Joe Thornber
f564e78d98
bcache: rewrite bcache_{write,zero}_bytes
...
These are utility functions so should only use the public interface.
Also write_bytes was flushing, which will kill performance.
2018-05-01 12:07:33 +01:00
Joe Thornber
c863c9581d
Merge branch 'master' of git+ssh://sourceware.org/git/lvm2
2018-05-01 10:48:42 +01:00
Joe Thornber
7aba7fe68b
unit-test/io_engine_t: add a little test for bcache_{read,write}_bytes
2018-05-01 10:47:40 +01:00
Joe Thornber
f6459757af
unit-test/bcache_t: fixup a test.
...
Problem found with valgrind.
2018-05-01 09:17:55 +01:00
David Teigland
c1cd18f21e
Remove lvm1 and pool disk formats
...
There are likely more bits of code that can be removed,
e.g. lvm1/pool-specific bits of code that were identified
using FMT flags.
The vgconvert command can likely be reduced further.
The lvm1-specific config settings should probably have
some other fields set for proper deprecation.
2018-04-30 16:55:02 -05:00
David Teigland
029a76b4f8
clvmd: don't repair vg from vg_read in clvmd
...
The mixed up vg repair code in vg_read was trying
to repair a vg when vg_read was called by clvmd.
The clvmd daemon isn't supposed to be repairing
or writing a vg.
(This is a temporary workaround; vg repair will soon
be pulled out of vg_read so it can be called in a
controlled way and consolidated instead of spread
around.)
2018-04-30 15:56:51 -05:00
David Teigland
c365d7de4f
tests: fix THIN built-in check
2018-04-30 13:12:17 -05:00
David Teigland
89935ace29
clvmd: keep old saved_vg if it matches new
...
There is no need to release the old saved_vg
if it matches the new version.
2018-04-30 13:03:15 -05:00
Joe Thornber
39f24a169c
unit-test/io_engine_t: Improve the read test.
...
Now verifies what it reads.
2018-04-30 17:09:24 +01:00
Joe Thornber
ef79d639fe
unit-test/io_engine_t: use posix_memalign() rather than aligned_alloc()
...
Not present on older systems.
2018-04-30 16:55:19 +01:00
Joe Thornber
cca815d240
Merge branch 'master' of git+ssh://sourceware.org/git/lvm2
2018-04-30 16:33:57 +01:00
Joe Thornber
1b08797419
configure: Remove --enable-testing
2018-04-30 16:31:33 +01:00
Joe Thornber
52ebad31ba
vdo: Code drop for status parsing.
...
Doesn't even compile yet. Squash this patch.
2018-04-30 16:16:58 +01:00
Joe Thornber
1ddbbb67e0
build: fix typo in dmeventd/plugins/Makefile.in
2018-04-30 15:31:57 +01:00
David Teigland
bdf7479449
toollib: fix wrong dev reference in process_each_label
2018-04-30 09:08:40 -05:00
Joe Thornber
9384b2b5c5
build: Remove unused Makefiles from configure.ac
...
Should have been in earlier patch.
2018-04-30 14:58:45 +01:00
Joe Thornber
2bc896f2a3
build: remove --with-{snapshots,mirrors,raid,thin,cache} options from ./configure
...
It now behaves as if the were all set as 'internal'
2018-04-30 10:11:23 +01:00
Joe Thornber
545ca59468
Merge branch 'master' of git+ssh://sourceware.org/git/lvm2
2018-04-30 09:56:04 +01:00
Joe Thornber
0a2b5d5748
[scripts] remove scripts/vg_convert
...
- it doesn't do anything other than tell you to run vgconvert
- it used to convert from lvm1 format, which is obsolete
2018-04-30 09:46:05 +01:00
Joe Thornber
65d6118e47
[metadata-liblvm.c] comment out some dead code and add a FIXME
2018-04-30 09:45:39 +01:00
Joe Thornber
513e9e3264
[lvmetad.h] Use static inline functions to stub out functions.
...
The macros were causing warnings because the arguments were percieved as
unused.
2018-04-30 09:45:13 +01:00
Joe Thornber
475626fb6c
[build] uncomment 'serial 3' in an m4 file.
...
Squashes another autoreconf warning
2018-04-30 09:44:27 +01:00
Joe Thornber
865a9c5873
build: rename configure.in -> configure.ac
...
Squashes a warning from autotools
2018-04-30 09:42:11 +01:00
Zdenek Kabelac
b904d6653d
tests: add also snapshot monitoring
2018-04-30 10:41:51 +02:00
Zdenek Kabelac
fade45b1d1
mirror: improve table update
...
Shift refresh of mirror table right into monitor_dev_for_events().
Use !vg_write_lock_held() to recognize use of lvchange/vgchange.
(this shall change if this would no longer work, but requires
futher some API changes).
With this patch dm mirror table is only refreshed when necassary.
Also update WARNING message about mirror usage without monitoring
and display LV name.
2018-04-30 10:41:51 +02:00
Zdenek Kabelac
dd7ac793a0
aux: enhance teardown to better handle weird names
...
When 'dmsetup' reports result with --nameprefixes it currently
incorrectly 'escapes' problematic characters.
Letting pass such string though shell 'eval' function is hard task.
So instead cut away substring.
Once dmsetup will start to properly escape backslash and apostrophe
this function may need further tuning.
2018-04-30 10:41:51 +02:00
Joe Thornber
877c2f2ffb
Merge branch 'master' of git+ssh://sourceware.org/git/lvm2 into merge
2018-04-30 09:34:12 +01:00
Joe Thornber
0931067dc5
build: Calculate dependencies at same time as compiling.
...
Speeds up the build slightly.
2018-04-30 09:32:14 +01:00
David Teigland
138225a3a8
test: remove pv-duplicate
...
This wasn't testing duplicate PVs, which are tested by
process-each-duplicate-pvs.sh.
2018-04-27 16:25:41 -05:00
Joe Thornber
ab63923d19
unit-tests: Move to test/unit
2018-04-27 16:55:07 +01:00