]>
sourceware.org Git - lvm2.git/log
Joe Thornber [Mon, 14 May 2018 11:16:43 +0000 (12:16 +0100)]
device-mapper: Fork libdm internally.
The device-mapper directory now holds a copy of libdm source. At
the moment this code is identical to libdm. Over time code will
migrate out to appropriate places (see doc/refactoring.txt).
The libdm directory still exists, and contains the source for the
libdevmapper shared library, which we will continue to ship (though
not neccessarily update).
All code using libdm should now use the version in device-mapper.
Joe Thornber [Mon, 14 May 2018 09:30:20 +0000 (10:30 +0100)]
build: Don't generate symlinks in include/ dir
As we start refactoring the code to break dependencies (see doc/refactoring.txt),
I want us to use full paths in the includes (eg, #include "base/data-struct/list.h").
This makes it more obvious when we're breaking abstraction boundaries, eg, including a file in
metadata/ from base/
Joe Thornber [Fri, 11 May 2018 13:40:05 +0000 (14:40 +0100)]
Revert "Revert "build: Calculate dependencies at same time as compiling.""
This reverts commit
ed837e6971ee84aa5b112e021df19901ae400216 .
Joe Thornber [Fri, 11 May 2018 10:40:47 +0000 (11:40 +0100)]
radix-tree: fix a function decl
Joe Thornber [Fri, 11 May 2018 08:46:34 +0000 (09:46 +0100)]
radix-tree: remove some unneccessary includes
Joe Thornber [Fri, 11 May 2018 05:46:25 +0000 (06:46 +0100)]
doc: add a little document describing new directory structure.
Joe Thornber [Fri, 11 May 2018 05:10:01 +0000 (06:10 +0100)]
radix-tree: First drop of radix tree.
An implementation of an adaptive radix tree. Has the following nice
properties:
- At least as fast as the hash table
- Uses less memory
- You don't need to give an expected size when you create
- It scales nicely (ie. no large reallocations like the hash table).
- You can iterate the keys in lexicographical order.
Only insert and lookup are implemented so far. Plus there's a lot
more performance to come.
Joe Thornber [Fri, 11 May 2018 04:39:27 +0000 (05:39 +0100)]
Merge branch 'master' of git+ssh://sourceware.org/git/lvm2
Joe Thornber [Fri, 11 May 2018 04:37:47 +0000 (05:37 +0100)]
bcache/sync io engine: handle short ios
David Teigland [Thu, 10 May 2018 21:25:33 +0000 (16:25 -0500)]
io: write log header with bcache
David Teigland [Thu, 10 May 2018 21:18:36 +0000 (16:18 -0500)]
pvscan: remove unused var warning
David Teigland [Thu, 3 May 2018 22:12:07 +0000 (17:12 -0500)]
filter: use bcache for filter reads
Filters are still applied before any device reading or
the label scan, but any filter checks that want to read
the device are skipped and the device is flagged.
After bcache is populated, but before lvm looks for
devices (i.e. before label scan), the filters are
reapplied to the devices that were flagged above.
The filters will then find the data they need in
bcache.
Joe Thornber [Thu, 10 May 2018 14:14:39 +0000 (15:14 +0100)]
label/lv_manip: squash some warnings
Joe Thornber [Thu, 10 May 2018 13:31:16 +0000 (14:31 +0100)]
functional-tests/vdo: fix mem leak in test
Joe Thornber [Thu, 10 May 2018 13:29:26 +0000 (14:29 +0100)]
bcache: Add sync io engine
Something to fall back to when testing.
Joe Thornber [Thu, 10 May 2018 12:26:08 +0000 (13:26 +0100)]
bcache: knock out err param.
Dave used this for debugging. Not needed in general.
Joe Thornber [Thu, 10 May 2018 12:02:27 +0000 (13:02 +0100)]
Merge branch 'master' of git+ssh://sourceware.org/git/lvm2
Joe Thornber [Thu, 10 May 2018 12:01:26 +0000 (13:01 +0100)]
vdo status: Unit tests + fix bugs
Joe Thornber [Thu, 10 May 2018 11:34:04 +0000 (12:34 +0100)]
Merge branch 'master' into 2018-04-30-vdo-support
David Teigland [Wed, 9 May 2018 16:14:05 +0000 (11:14 -0500)]
doc: add filter info to scanning
David Teigland [Wed, 9 May 2018 15:34:28 +0000 (10:34 -0500)]
io: replace dev_set with bcache equivalents
Joe Thornber [Wed, 9 May 2018 10:07:24 +0000 (11:07 +0100)]
Merge branch 'master' of git+ssh://sourceware.org/git/lvm2
Joe Thornber [Wed, 9 May 2018 10:05:29 +0000 (11:05 +0100)]
bcache-utils: bcache_set_bytes()
Joe Thornber [Wed, 9 May 2018 09:50:31 +0000 (10:50 +0100)]
unit-test/bcache-utils: Tweak zero tests
David Teigland [Fri, 26 Jan 2018 12:50:52 +0000 (06:50 -0600)]
doc: lvm disk reading
Heinz Mauelshagen [Fri, 4 May 2018 14:56:38 +0000 (16:56 +0200)]
tests: bump raid target version in reshape tests
Adjust to target version allowing tests to succeed.
Heinz Mauelshagen [Fri, 4 May 2018 14:53:16 +0000 (16:53 +0200)]
tests: don't rely on cache target in component-raid.sh
Lead to unnecessary skips of the test.
Joe Thornber [Fri, 4 May 2018 12:32:07 +0000 (13:32 +0100)]
Merge branch 'master' into 2018-04-30-vdo-support
Joe Thornber [Fri, 4 May 2018 08:49:55 +0000 (09:49 +0100)]
Merge branch 'master' of git+ssh://sourceware.org/git/lvm2
Joe Thornber [Fri, 4 May 2018 08:48:40 +0000 (09:48 +0100)]
Revert "build: Calculate dependencies at same time as compiling."
This reverts commit
0931067dc5549c443e144d599683b53220021f44 .
The dep files should be in the build dir, which is not necc. the src dir.
Easy to fix, but reverting for now until I have time to revisit.
David Teigland [Thu, 3 May 2018 16:41:10 +0000 (11:41 -0500)]
clvmd: saved_vg code and comment formatting
David Teigland [Thu, 3 May 2018 15:50:38 +0000 (10:50 -0500)]
clvmd: don't save cft and buf for saved_vg
David Teigland [Wed, 2 May 2018 21:58:49 +0000 (16:58 -0500)]
clvmd: separate saved_vg from vginfo
The clvmd saved_vg data is independent from the normal lvm
lvmcache vginfo data, so separate saved_vg from vginfo.
Normal lvm doesn't need to use save_vg at all, and in clvmd,
lvmcache changes on vginfo can be made without worrying
about unwanted effects on saved_vg.
David Teigland [Mon, 30 Apr 2018 21:48:53 +0000 (16:48 -0500)]
clvmd: defer freeing saved vgs
To avoid the chance of freeing a saved vg while another
code path is using it, defer freeing saved vgs until
all the lvmcache content is dropped for the vg.
Heinz Mauelshagen [Thu, 3 May 2018 19:35:32 +0000 (21:35 +0200)]
raid: use new internal APIs
Use APIs introduced with commit
4ebfd8e8eb68442efc334b35bc1f22eda3e4dd3d
where appropriate to minimize redundant code.
Joe Thornber [Thu, 3 May 2018 19:15:13 +0000 (20:15 +0100)]
Merge branch '2018-05-03-improve-bcache-utils'
Joe Thornber [Thu, 3 May 2018 19:13:13 +0000 (20:13 +0100)]
unit-test: a bunch of tests for bcache-utils
Heinz Mauelshagen [Thu, 3 May 2018 16:00:21 +0000 (18:00 +0200)]
lvconvert: don't return success on degraded -m raid1 conversion
In case "lvconvert -mN RaidLV" was used on a degraded
raid1 LV, success was returned instead of an error.
Provide message to inform about the need to repair first
before changing number of mirrors and exit with error.
Add new lvconvert-m-raid1-degraded.sh test.
Resolves: rhbz1573960
Joe Thornber [Thu, 3 May 2018 14:38:05 +0000 (15:38 +0100)]
configure.ac: bad configure generated due to stray ;;
Joe Thornber [Thu, 3 May 2018 13:23:12 +0000 (14:23 +0100)]
Merge branch 'master' of git+ssh://sourceware.org/git/lvm2
Joe Thornber [Thu, 3 May 2018 13:22:24 +0000 (14:22 +0100)]
functional tests: Update have_raid function
No need to check if it's built in.
Joe Thornber [Thu, 3 May 2018 13:21:21 +0000 (14:21 +0100)]
configure.ac: Remove some more remnants of optional RAID
(It's now always 'internal')
Joe Thornber [Thu, 3 May 2018 10:36:15 +0000 (11:36 +0100)]
bcache-utils: rewrite
They take care to avoid redundant reads now.
Joe Thornber [Thu, 3 May 2018 09:21:14 +0000 (10:21 +0100)]
bcache: rename bcache_write_zeroes() -> bcache_zero_bytes()
Now matches the other util functions:
bcache_{prefetch,read,write,zero}_bytes()
Joe Thornber [Thu, 3 May 2018 09:14:56 +0000 (10:14 +0100)]
bcache: rewrite bcache_write_zeros()
It now uses GF_ZERO to avoid reading blocks that are going to be
completely zeroed.
Joe Thornber [Thu, 3 May 2018 08:37:43 +0000 (09:37 +0100)]
bcache: switch off_t -> uint64_t
We always want it to be 64bit
Joe Thornber [Thu, 3 May 2018 08:34:41 +0000 (09:34 +0100)]
bcache: Move the utils to a separate file.
This makes it clearer that they don't access the cache internals.
Joe Thornber [Thu, 3 May 2018 08:33:55 +0000 (09:33 +0100)]
bcache: add bcache_block_sectors() query fn
Joe Thornber [Thu, 3 May 2018 08:14:59 +0000 (09:14 +0100)]
bcache: add a comment
David Teigland [Wed, 2 May 2018 19:10:30 +0000 (14:10 -0500)]
filters: increase MAX_FILTERS for new filter
The new signature filter was added without increasing this.
Joe Thornber [Wed, 2 May 2018 18:45:06 +0000 (19:45 +0100)]
bcache: reorder includes in .c file too
Joe Thornber [Wed, 2 May 2018 17:59:43 +0000 (18:59 +0100)]
device/bcache: reorder includes
Joe Thornber [Wed, 2 May 2018 17:40:38 +0000 (18:40 +0100)]
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.
Joe Thornber [Wed, 2 May 2018 12:53:43 +0000 (13:53 +0100)]
unit-test/matcher_t: Fixup Kabi's test
The matcher matches the regexes in reverse order.
Joe Thornber [Wed, 2 May 2018 12:31:57 +0000 (13:31 +0100)]
unit-test/matcher_t: add another (failing!) test for Kabi
Joe Thornber [Wed, 2 May 2018 10:15:35 +0000 (11:15 +0100)]
vdo: get status parser compiling
Joe Thornber [Wed, 2 May 2018 09:09:20 +0000 (10:09 +0100)]
Merge branch 'master' into 2018-04-30-vdo-support
David Teigland [Tue, 1 May 2018 20:24:42 +0000 (15:24 -0500)]
tests: add gfs-pool test
Put back a test like the old one that was removed
in
d709d8445f206b67cfc06266ce7553f9cb6f3df5 .
It verifies that lvm will ignore and not use a
gfs-pool device.
David Teigland [Tue, 1 May 2018 19:32:15 +0000 (14:32 -0500)]
devices: ignore lvm1 and pool devices
Joe Thornber [Tue, 1 May 2018 19:04:30 +0000 (20:04 +0100)]
Merge branch 'master' of git+ssh://sourceware.org/git/lvm2
Joe Thornber [Tue, 1 May 2018 19:03:51 +0000 (20:03 +0100)]
Revert "build: Stop creating the symlinks in include/ on the fly."
This reverts commit
cdcea0bf55c170f538c3ffc114792eb3c993f4ac .
David Teigland [Tue, 1 May 2018 18:28:10 +0000 (13:28 -0500)]
tests: remove use of lvm1 metadatatype
David Teigland [Tue, 1 May 2018 18:25:40 +0000 (13:25 -0500)]
tests: remove gfs pool test
David Teigland [Tue, 1 May 2018 16:32:15 +0000 (11:32 -0500)]
tests: update lvmetad-disabled to not use lvm1
David Teigland [Tue, 1 May 2018 14:33:55 +0000 (09:33 -0500)]
bcache_write_bytes needs to be followed by flush
The improved bcache_write_bytes is not flushing, so
the caller needs to do that.
David Teigland [Tue, 1 May 2018 14:06:04 +0000 (09:06 -0500)]
lvmcache: fix typo in lvmcache_get_saved_vg
Joe Thornber [Tue, 1 May 2018 13:17:12 +0000 (14:17 +0100)]
unit-test/bcache_t: test was using too large a block size
Joe Thornber [Tue, 1 May 2018 12:21:53 +0000 (13:21 +0100)]
bcache: squash some warnings on rhel6
Joe Thornber [Tue, 1 May 2018 11:54:57 +0000 (12:54 +0100)]
unit-test/bcache_t: Use a stripped down fixture for some tests
Joe Thornber [Tue, 1 May 2018 11:12:07 +0000 (12:12 +0100)]
build: update ./configure and configure.h.in
Fallout from Dave's removal of format1 and pool.
Joe Thornber [Tue, 1 May 2018 11:07:33 +0000 (12:07 +0100)]
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.
Joe Thornber [Tue, 1 May 2018 09:48:42 +0000 (10:48 +0100)]
Merge branch 'master' of git+ssh://sourceware.org/git/lvm2
Joe Thornber [Tue, 1 May 2018 09:47:40 +0000 (10:47 +0100)]
unit-test/io_engine_t: add a little test for bcache_{read,write}_bytes
Joe Thornber [Tue, 1 May 2018 08:17:55 +0000 (09:17 +0100)]
unit-test/bcache_t: fixup a test.
Problem found with valgrind.
David Teigland [Fri, 27 Apr 2018 21:22:46 +0000 (16:22 -0500)]
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.
David Teigland [Mon, 30 Apr 2018 20:47:00 +0000 (15:47 -0500)]
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.)
David Teigland [Mon, 30 Apr 2018 18:10:52 +0000 (13:10 -0500)]
tests: fix THIN built-in check
David Teigland [Mon, 30 Apr 2018 18:00:05 +0000 (13:00 -0500)]
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.
Joe Thornber [Mon, 30 Apr 2018 16:09:24 +0000 (17:09 +0100)]
unit-test/io_engine_t: Improve the read test.
Now verifies what it reads.
Joe Thornber [Mon, 30 Apr 2018 15:55:19 +0000 (16:55 +0100)]
unit-test/io_engine_t: use posix_memalign() rather than aligned_alloc()
Not present on older systems.
Joe Thornber [Mon, 30 Apr 2018 15:33:57 +0000 (16:33 +0100)]
Merge branch 'master' of git+ssh://sourceware.org/git/lvm2
Joe Thornber [Mon, 30 Apr 2018 15:31:33 +0000 (16:31 +0100)]
configure: Remove --enable-testing
Joe Thornber [Mon, 30 Apr 2018 15:16:58 +0000 (16:16 +0100)]
vdo: Code drop for status parsing.
Doesn't even compile yet. Squash this patch.
Joe Thornber [Mon, 30 Apr 2018 14:31:57 +0000 (15:31 +0100)]
build: fix typo in dmeventd/plugins/Makefile.in
David Teigland [Mon, 30 Apr 2018 14:08:40 +0000 (09:08 -0500)]
toollib: fix wrong dev reference in process_each_label
Joe Thornber [Mon, 30 Apr 2018 13:58:45 +0000 (14:58 +0100)]
build: Remove unused Makefiles from configure.ac
Should have been in earlier patch.
Joe Thornber [Mon, 30 Apr 2018 09:11:23 +0000 (10:11 +0100)]
build: remove --with-{snapshots,mirrors,raid,thin,cache} options from ./configure
It now behaves as if the were all set as 'internal'
Joe Thornber [Mon, 30 Apr 2018 08:56:04 +0000 (09:56 +0100)]
Merge branch 'master' of git+ssh://sourceware.org/git/lvm2
Joe Thornber [Mon, 12 Feb 2018 16:14:32 +0000 (16:14 +0000)]
[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
Joe Thornber [Mon, 12 Feb 2018 14:14:40 +0000 (14:14 +0000)]
[metadata-liblvm.c] comment out some dead code and add a FIXME
Joe Thornber [Mon, 12 Feb 2018 13:41:27 +0000 (13:41 +0000)]
[lvmetad.h] Use static inline functions to stub out functions.
The macros were causing warnings because the arguments were percieved as
unused.
Joe Thornber [Mon, 12 Feb 2018 09:22:10 +0000 (09:22 +0000)]
[build] uncomment 'serial 3' in an m4 file.
Squashes another autoreconf warning
Joe Thornber [Mon, 30 Apr 2018 08:42:11 +0000 (09:42 +0100)]
build: rename configure.in -> configure.ac
Squashes a warning from autotools
Zdenek Kabelac [Sat, 28 Apr 2018 20:18:00 +0000 (22:18 +0200)]
tests: add also snapshot monitoring
Zdenek Kabelac [Sat, 28 Apr 2018 20:14:47 +0000 (22:14 +0200)]
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.
Zdenek Kabelac [Fri, 27 Apr 2018 21:23:45 +0000 (23:23 +0200)]
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.
Joe Thornber [Mon, 30 Apr 2018 08:34:12 +0000 (09:34 +0100)]
Merge branch 'master' of git+ssh://sourceware.org/git/lvm2 into merge
Joe Thornber [Mon, 30 Apr 2018 08:32:14 +0000 (09:32 +0100)]
build: Calculate dependencies at same time as compiling.
Speeds up the build slightly.
David Teigland [Fri, 27 Apr 2018 16:42:58 +0000 (11:42 -0500)]
test: remove pv-duplicate
This wasn't testing duplicate PVs, which are tested by
process-each-duplicate-pvs.sh.
Joe Thornber [Fri, 27 Apr 2018 15:55:07 +0000 (16:55 +0100)]
unit-tests: Move to test/unit
This page took 0.113847 seconds and 5 git commands to generate.