]> sourceware.org Git - lvm2.git/log
lvm2.git
14 years agoSwitch to use Requires.private for devmapper.pc and lvm2app.pc
Zdenek Kabelac [Tue, 11 May 2010 08:54:11 +0000 (08:54 +0000)]
Switch to use Requires.private for devmapper.pc and lvm2app.pc

Use Requires.private: instead of Libs.private:
Use UDEV_PC and SELINUX_PC for Require.private:

It looks like usage of Requires.private is prefered from Libs.private.
However pkg-config documentation is really poor here. But here is
short outcome:

There is a difference in Libs.private: and Requires.private: where
we specify libselinux instead of  -lselinux -lsepol.

We leave resolving of query like 'pkg-config --libs --static devmapper'
on taking proper selinux and udev libs to their .pc files instead of
hardcoding them into our .pc file which is might give incorrect answer.
- i.e. dependency of libselinux package might change and we may return
wrong list of linked libraries.

http://bugs.freedesktop.org/show_bug.cgi?id=4738
http://err.no/personal/blog/tech/2008-03-25-18-07_pkg-config,_sonames_and_Requires.private

14 years agoAdd UDEV_PC and SELINUX_PC substituted variables
Zdenek Kabelac [Tue, 11 May 2010 08:48:43 +0000 (08:48 +0000)]
Add UDEV_PC and SELINUX_PC substituted variables

14 years agoUse Require.private: field for devmapper-event.pc
Zdenek Kabelac [Tue, 11 May 2010 08:47:02 +0000 (08:47 +0000)]
Use Require.private: field for devmapper-event.pc

Move devmapper to Require.private: field and remove unneeded libs
from Libs.private: as they are dependencies of devmapper library.

14 years agoSkip unneeded 'cat' command execution.
Zdenek Kabelac [Tue, 11 May 2010 08:43:18 +0000 (08:43 +0000)]
Skip unneeded 'cat' command execution.

14 years agoPlugins do not use pthread or lvm2cmd directly.
Zdenek Kabelac [Tue, 11 May 2010 08:41:58 +0000 (08:41 +0000)]
Plugins do not use pthread or lvm2cmd directly.

Plugins are using pthread and lvm2cmd libraries indirectly
through devmapper-event-lvm2, so link only with libraries used by them.

14 years agoLink libdevmapper-event.so with libdevmapper.so.
Zdenek Kabelac [Tue, 11 May 2010 08:38:10 +0000 (08:38 +0000)]
Link libdevmapper-event.so with libdevmapper.so.
For now using $(LIBS) for a list of linked libraries to $(LIB_SHARED) library.

14 years agoLink liblvm2cmd.so with devmapper-event and devmapper libs.
Zdenek Kabelac [Tue, 11 May 2010 08:34:38 +0000 (08:34 +0000)]
Link liblvm2cmd.so with devmapper-event and devmapper libs.
and remove generic %.so: %.a target.

14 years agoHeaderfile <pthread.h> is no longer needed here
Zdenek Kabelac [Tue, 11 May 2010 08:32:22 +0000 (08:32 +0000)]
Headerfile <pthread.h> is no longer needed here

14 years agoFix truncated total size displayed by pvscan.
Alasdair Kergon [Fri, 7 May 2010 15:24:17 +0000 (15:24 +0000)]
Fix truncated total size displayed by pvscan.

14 years agoAdd a basic test for dmeventd triggering lvconvert --repair. Needs improvement.
Petr Rockai [Thu, 6 May 2010 19:01:26 +0000 (19:01 +0000)]
Add a basic test for dmeventd triggering lvconvert --repair. Needs improvement.

14 years agoAdd some basic provisions for automated testing of dmeventd.
Petr Rockai [Thu, 6 May 2010 18:54:51 +0000 (18:54 +0000)]
Add some basic provisions for automated testing of dmeventd.

14 years agoAdd new --sysinit option for vgchange and lvchange.
Peter Rajnoha [Thu, 6 May 2010 11:15:55 +0000 (11:15 +0000)]
Add new --sysinit option for vgchange and lvchange.

A shortcut for --ignorelockingfailure, --ignoremonitoring, --poll n options
and LVM_SUPPRESS_LOCKING_FAILURE_MESSAGES environment variable used all at
once in initialisation scripts (e.g. rc.sysinit or initrd).

14 years agoAdd dm_list_splice() to join two lists.
Zdenek Kabelac [Thu, 6 May 2010 10:10:15 +0000 (10:10 +0000)]
Add dm_list_splice() to join two lists.

14 years agoInstall plugins to subdirs
Zdenek Kabelac [Thu, 6 May 2010 10:07:46 +0000 (10:07 +0000)]
Install plugins to subdirs

Target install_dm_plugin installs files to libdir/device-mapper.
Target install_lvm2_plugin installs files to libdir/lvm2.

Both targets creates relative links to libdir to keep the code
compatible with current dlopen handling.

Once we will be able to read plugins from subdir, links
could be removed.

14 years agoWhat's new.
Petr Rockai [Wed, 5 May 2010 22:38:31 +0000 (22:38 +0000)]
What's new.

14 years agoSuppress duplicate error messages about read failures and missing devices.
Petr Rockai [Wed, 5 May 2010 22:37:52 +0000 (22:37 +0000)]
Suppress duplicate error messages about read failures and missing devices.

14 years agoSpecify exactly which ioctl doesn't have a cookie set (for better debugging).
Peter Rajnoha [Mon, 3 May 2010 22:08:38 +0000 (22:08 +0000)]
Specify exactly which ioctl doesn't have a cookie set (for better debugging).

14 years agoSynchronize "remove" dm task while reverting unsuccessful "create" dm task
Peter Rajnoha [Mon, 3 May 2010 21:06:53 +0000 (21:06 +0000)]
Synchronize "remove" dm task while reverting unsuccessful "create" dm task
(with table provided).

This remove ioctl generates udev events like any other hence it needs to be
synchronized properly as well. Also, add dm task type in debug log when
setting a cookie (for better debugging).

14 years agopost-release
Alasdair Kergon [Fri, 30 Apr 2010 15:48:38 +0000 (15:48 +0000)]
post-release

14 years agotypo
Alasdair Kergon [Fri, 30 Apr 2010 14:51:58 +0000 (14:51 +0000)]
typo

14 years agopre-release
Alasdair Kergon [Fri, 30 Apr 2010 14:49:42 +0000 (14:49 +0000)]
pre-release

14 years agoAdd a "should" alongside "not" to the test utilities. When a "should" command
Petr Rockai [Fri, 30 Apr 2010 14:33:39 +0000 (14:33 +0000)]
Add a "should" alongside "not" to the test utilities. When a "should" command
fails, the test will carry on but will issue a warning. The harness detects
such warnings from tests and marks tests that passed with warnings with a
special status.

14 years agochange awk path
Alasdair Kergon [Fri, 30 Apr 2010 13:58:08 +0000 (13:58 +0000)]
change awk path

14 years agoAnd be consistent with return code as well (previous commit).
Peter Rajnoha [Fri, 30 Apr 2010 13:47:11 +0000 (13:47 +0000)]
And be consistent with return code as well (previous commit).

14 years agoDon't run any complex initialisation for the "version" lvm2 command.
Peter Rajnoha [Fri, 30 Apr 2010 13:28:44 +0000 (13:28 +0000)]
Don't run any complex initialisation for the "version" lvm2 command.

We can use it even in read-only environment where a try to initialise
file-based locking fails (not to mention other processing related with
lvm2 init). Simply, we want to output the version only, nothing else.
And this should always work.

14 years agoInitialise _vginfos list staticaly so there is no problem with using uninitialised
Zdenek Kabelac [Fri, 30 Apr 2010 12:54:31 +0000 (12:54 +0000)]
Initialise _vginfos list staticaly so there is no problem with using uninitialised
variables in case, lvmcache_destory() is called without lvmcache_init().

14 years agoRelease pools for regex if there is error during processing
Zdenek Kabelac [Fri, 30 Apr 2010 12:37:04 +0000 (12:37 +0000)]
Release pools for regex if there is error during processing
(fixes error messages about unreleased pools).

14 years agoShow string with invalid pattern
Zdenek Kabelac [Fri, 30 Apr 2010 12:31:32 +0000 (12:31 +0000)]
Show string with invalid pattern
and start error message with capital letter.

14 years ago.
Alasdair Kergon [Thu, 29 Apr 2010 01:48:19 +0000 (01:48 +0000)]
.

14 years ago.
Alasdair Kergon [Thu, 29 Apr 2010 01:45:30 +0000 (01:45 +0000)]
.

14 years agoRemove no-longer-used arg_ptr_value.
Alasdair Kergon [Thu, 29 Apr 2010 01:38:12 +0000 (01:38 +0000)]
Remove no-longer-used arg_ptr_value.
Fix -M and --type to use strings not pointers that change on config refresh.

14 years agoTest all combinations of mirror conversion, both while the LV
Jonathan Earl Brassow [Wed, 28 Apr 2010 17:46:34 +0000 (17:46 +0000)]
Test all combinations of mirror conversion, both while the LV
is active and while it is in-active.

+for i in $(seq 0 4); do
+       for j in $(seq 0 4); do
+               for k in core disk mirrored; do
+                       for l in core disk mirrored; do

The testing code still needs some improvement.  I'd like to add
the ability to test specifying the PVs to be added/removed during
a convert.  It will also be important to test partial PV
specification during down converts (i.e. request to remove more
mirror images than we have provided PVs for).

14 years agoDon't attempt to convert the log type of an LV if the LV
Jonathan Earl Brassow [Wed, 28 Apr 2010 17:41:30 +0000 (17:41 +0000)]
Don't attempt to convert the log type of an LV if the LV
is not a mirror.

14 years agoAdd support for new IMPORT{db} udev rule.
Peter Rajnoha [Wed, 28 Apr 2010 13:37:36 +0000 (13:37 +0000)]
Add support for new IMPORT{db} udev rule.

This rule appeared in udev v152 and it helps us to support spurious events
where we didn't have any flags set (events originated in udevadm trigger
or the watch rule). These flags are important to direct the rule application.
Now, with the help of this rule, we can regenerate old udev db content.
To implement this correctly, we need to flag all proper DM udev events with
DM_UDEV_PRIMARY_SOURCE_FLAG. That happens automatically for all ioctls
generating events originated in libdevmapper.

14 years agoSmall indent change
Zdenek Kabelac [Wed, 28 Apr 2010 12:23:11 +0000 (12:23 +0000)]
Small indent change

14 years agoFix comment from last commit. Additionally, there is no need
Jonathan Earl Brassow [Tue, 27 Apr 2010 15:26:58 +0000 (15:26 +0000)]
Fix comment from last commit.  Additionally, there is no need
to put a comment into the WHATS_NEW file if it is a regression
that was created and fixed inside the same release window.

14 years agoPatch to fix bug 586021 and mantain historical behavior of
Jonathan Earl Brassow [Tue, 27 Apr 2010 14:57:49 +0000 (14:57 +0000)]
Patch to fix bug 586021 and mantain historical behavior of
being able to remove more images from a mirror than the
number of PVs directly specified for removal.

The effort to fix bug 581611 corrected a bug that was unnoticed
at the time.  The loop in _remove_mirror_images that looks over
the specified PVs was allowing devices that were previously
counted and moved to the end of the list to be double-counted.
This resulted in the number of devices needed for removal always
being satisfied - even if the user did not specify enough PVs
for removal to satisfy the request.  When 581611 was fixed, this
double-counting no longer took place and the result was to remove
only the minimum of the number of PVs specified or the number
that was asked to be removed.

By simply always setting 'new_area_count' (as used to be done
only in the else statement), we return to the previous behavior.
Indeed, this is exactly what the double-counting was allowing
to happen before the fix of 581611.

14 years agoMention how to get PV to LV mappings.
Alasdair Kergon [Tue, 27 Apr 2010 13:34:56 +0000 (13:34 +0000)]
Mention how to get PV to LV mappings.

14 years agoFix lvconvert error message when existing mirrored LV is not found.
Alasdair Kergon [Mon, 26 Apr 2010 18:31:58 +0000 (18:31 +0000)]
Fix lvconvert error message when existing mirrored LV is not found.

14 years agoadd comments
Alasdair Kergon [Mon, 26 Apr 2010 18:12:40 +0000 (18:12 +0000)]
add comments

14 years agoAlso include udev libs in libdevmapper.pc when udev_sync is enabled.
Peter Rajnoha [Mon, 26 Apr 2010 09:05:50 +0000 (09:05 +0000)]
Also include udev libs in libdevmapper.pc when udev_sync is enabled.

14 years agoDisallow the direct removal of a merging snapshot.
Mike Snitzer [Fri, 23 Apr 2010 19:27:10 +0000 (19:27 +0000)]
Disallow the direct removal of a merging snapshot.

Allow lv_remove_with_dependencies() to know the top-level LV that was
requested to be removed (otherwise it recurses and we lose context).

A merging snapshot cannot be removed directly but the associated origin
can be.  Disallow removal of a merging snapshot unless the associated
origin is also being removed.

14 years agoRemove redundant check in _lvs_single now that the caller
Mike Snitzer [Fri, 23 Apr 2010 19:10:20 +0000 (19:10 +0000)]
Remove redundant check in _lvs_single now that the caller
(process_each_lv_in_vg) provides it.

Also, removing this check from _lvs_single now allows displaying hidden
LVs that are specifically named on the command line.

14 years agoSet appropriate udev flags for reserved LVs.
Peter Rajnoha [Fri, 23 Apr 2010 14:16:32 +0000 (14:16 +0000)]
Set appropriate udev flags for reserved LVs.

There's no need for foreign udev rules to touch LVM reserved devices
(snapshot, pvmove, _mlog, _mimage, _vorigin) even if they happen to
be visible. The same applies for /dev/disk content - no need to create
any content for these devices (and so no need to run any "blkid" etc.).
This also prevents setting any inotify "watch" from udev rules on such
devices that is a source of race conditions (the rules need to honor
DM_UDEV_DISABLE_OTHER_RULES_FLAG for this to work though).

14 years agoWhen removing a snapshot avoid preloading the origin if the
Mike Snitzer [Fri, 23 Apr 2010 02:57:39 +0000 (02:57 +0000)]
When removing a snapshot avoid preloading the origin if the
snapshot-merge target is not active.

14 years agodon't optimise anything with TARGET_TRANS to avoid intefering with the matcher's...
Alasdair Kergon [Thu, 22 Apr 2010 23:09:18 +0000 (23:09 +0000)]
don't optimise anything with TARGET_TRANS to avoid intefering with the matcher's counting

14 years agoCache bitset locations to speed up _calc_states. (kabi)
Alasdair Kergon [Thu, 22 Apr 2010 20:35:24 +0000 (20:35 +0000)]
Cache bitset locations to speed up _calc_states. (kabi)

14 years agoavoid ORs rightmost
Alasdair Kergon [Thu, 22 Apr 2010 20:15:00 +0000 (20:15 +0000)]
avoid ORs rightmost

14 years agoMove regex printing code from test to main tree (may use in debug messages).
Alasdair Kergon [Thu, 22 Apr 2010 17:42:38 +0000 (17:42 +0000)]
Move regex printing code from test to main tree (may use in debug messages).
Yet another optimiser fix attempt.

14 years agoThe following tests in the testsuite have race conditions:
Jonathan Earl Brassow [Thu, 22 Apr 2010 15:39:40 +0000 (15:39 +0000)]
The following tests in the testsuite have race conditions:
1) Test that the primary mirror image cannot be removed while
   the mirror set is sync'ing.
2) Test that you cannot start a second mirror up-convert while
   one is already in progress.

The trouble is that if the sync/conversion finishes before the
tests occur, the tests will fail by why of success where there
should have been failure.  This means the sync/conversion must
happen very quickly, but this is possible because the test
mirrors we are creating are so small.

In order to decrease the likelyhood of these test failing (or
more correctly, failing to test the right thing), I've increase
the size of the mirrors.  It will still be remotely possible that
the tests will fail (by way of failing to test the right thing).
If this continues to happen, more involved mechanisms will need
to be put in place.  (Perhaps these will still be created, but
this change should be a remedy until that time.)

14 years agoDon't walk rightmost through NULL pointers.
Alasdair Kergon [Thu, 22 Apr 2010 14:33:14 +0000 (14:33 +0000)]
Don't walk rightmost through NULL pointers.

14 years agoFix rightmost rotation, and use LEFT and RIGHT to make symmetry more obvious.
Alasdair Kergon [Thu, 22 Apr 2010 13:42:34 +0000 (13:42 +0000)]
Fix rightmost rotation, and use LEFT and RIGHT to make symmetry more obvious.

14 years agofix leftmost rotation
Alasdair Kergon [Thu, 22 Apr 2010 13:18:27 +0000 (13:18 +0000)]
fix leftmost rotation

14 years agoisprint
Alasdair Kergon [Thu, 22 Apr 2010 03:42:00 +0000 (03:42 +0000)]
isprint

14 years agoStill not satisfactory...
Alasdair Kergon [Thu, 22 Apr 2010 03:24:24 +0000 (03:24 +0000)]
Still not satisfactory...

14 years agoadd -r to print out closer to original regex format
Alasdair Kergon [Thu, 22 Apr 2010 03:12:01 +0000 (03:12 +0000)]
add -r to print out closer to original regex format

14 years agoDisallow the addition of mirror images while a mirror up-convert
Jonathan Earl Brassow [Wed, 21 Apr 2010 14:04:24 +0000 (14:04 +0000)]
Disallow the addition of mirror images while a mirror up-convert
is already occurring.  The addition of new legs can be retried
once the current conversion is complete.

14 years agoDisallow the primary mirror image from being removed when the
Jonathan Earl Brassow [Wed, 21 Apr 2010 13:55:08 +0000 (13:55 +0000)]
Disallow the primary mirror image from being removed when the
mirror is not in-sync.  This restriction is not extended to
repair operations (i.e. it will not limit what 'lvconvert --repair'
can do).

14 years agoMake matcher_t and parse_t compilable
Zdenek Kabelac [Wed, 21 Apr 2010 08:01:51 +0000 (08:01 +0000)]
Make matcher_t and parse_t compilable

These two old-test/regex utils are usable for testing output of regex
processing at core level. For getting them usable configure need to create
Makefile. This is currently disable by default.

14 years agoAdd a regex optimisation pass for shared character prefixes.
Alasdair Kergon [Tue, 20 Apr 2010 22:31:22 +0000 (22:31 +0000)]
Add a regex optimisation pass for shared character prefixes.

14 years agoRe-enable t-topology-support.sh
Mike Snitzer [Tue, 20 Apr 2010 18:18:59 +0000 (18:18 +0000)]
Re-enable t-topology-support.sh

Reintroduce split teardown (teardown() calls teardown_devs()) because
t-topology-support.sh only needs the teardown_devs() subset of the full
teardown() between each iteration of the topology tests -- in particular
the $TESTDIR must not get removed between each topology test iteration.

prepare_loop() must return if prepare_scsi_debug_dev() already
established $LOOP.

Also fix (and simplify) the unsafe scsi-debug device discovery in
prepare_scsi_debug_dev().

14 years agoRemove -n argument from vgcfgrestore.
Milan Broz [Tue, 20 Apr 2010 18:17:56 +0000 (18:17 +0000)]
Remove -n argument from vgcfgrestore.

This is old lvm1 syntax, because arguments changed
from PVs to VGs compatibility is broken already.

name_ARG is not used in code.

14 years agoAdd device creation to basic nightly test.
Dave Wysochanski [Tue, 20 Apr 2010 15:19:36 +0000 (15:19 +0000)]
Add device creation to basic nightly test.

Ensure we can create devices for use in tests before running the real
tests.  This may in various cases, and may involve machine configuration
rather than a failure in some specific test.
For example, if a test is run with LVM_TEST_DIR=/tmp, selinux is enabled,
and the default security context is set to "<<none>>" for /tmp, all the
tests will fail, unable to create devices, since dmsetup will fail, a
result of machpathcon() returning an error code.

Signed-off-by: Dave Wysochanski <dwysocha@redhat.com>
14 years agoAdd -S command to clvmd, so it can restart itself and still
Christine Caulfield [Tue, 20 Apr 2010 14:07:37 +0000 (14:07 +0000)]
Add -S command to clvmd, so it can restart itself and still
preserve exlusive LV locks.

14 years agoAdd dm_bitset_equal to libdevmapper.
Alasdair Kergon [Tue, 20 Apr 2010 13:58:22 +0000 (13:58 +0000)]
Add dm_bitset_equal to libdevmapper.

14 years agotypo in comment
Alasdair Kergon [Tue, 20 Apr 2010 12:18:31 +0000 (12:18 +0000)]
typo in comment

14 years agoMove function up file
Alasdair Kergon [Tue, 20 Apr 2010 12:14:28 +0000 (12:14 +0000)]
Move function up file

14 years agomissed files from last commit
Alasdair Kergon [Tue, 20 Apr 2010 10:58:18 +0000 (10:58 +0000)]
missed files from last commit

14 years agoAdd additional test to start the snapshot merge (which had just failed
Mike Snitzer [Mon, 19 Apr 2010 22:44:42 +0000 (22:44 +0000)]
Add additional test to start the snapshot merge (which had just failed
because an FS was mounted -- origin was still open).

14 years agoAdd dm_bit_and. (ejt)
Alasdair Kergon [Mon, 19 Apr 2010 21:23:01 +0000 (21:23 +0000)]
Add dm_bit_and. (ejt)

14 years agofix last commit
Alasdair Kergon [Mon, 19 Apr 2010 21:10:20 +0000 (21:10 +0000)]
fix last commit

14 years agoSimplify dm_bitset_create. (ejt)
Alasdair Kergon [Mon, 19 Apr 2010 21:08:32 +0000 (21:08 +0000)]
Simplify dm_bitset_create. (ejt)

14 years agoSpeed up dm_bit_get_next with ffs().
Alasdair Kergon [Mon, 19 Apr 2010 17:17:55 +0000 (17:17 +0000)]
Speed up dm_bit_get_next with ffs().

14 years agoChange lvm2app version number from 1 to 2.
Dave Wysochanski [Mon, 19 Apr 2010 15:24:00 +0000 (15:24 +0000)]
Change lvm2app version number from 1 to 2.

This version number change reflects the memory handling change
for string-based pv/vg/lv string based attributes.
In addition, when adding support for tags, I forgot to increase
the version number.

Signed-off-by: Dave Wysochanski <dwysocha@redhat.com>
14 years agoUse vg->vgmem to allocate vg/lv/pv string properties instead of dm_malloc/fr
Dave Wysochanski [Mon, 19 Apr 2010 15:22:24 +0000 (15:22 +0000)]
Use vg->vgmem to allocate vg/lv/pv string properties instead of dm_malloc/fr

Everywhere else in the API the caller can rely on lvm2app taking care of
memory allocation and free, so make the 'name' and 'uuid' properties of a
vg/lv/pv use the vg handle to allocate memory.

Signed-off-by: Dave Wysochanski <dwysocha@redhat.com>
14 years agoChange daemon lock filename from lvm2_monitor to lvm2-monitor for consistency.
Alasdair Kergon [Thu, 15 Apr 2010 19:15:03 +0000 (19:15 +0000)]
Change daemon lock filename from lvm2_monitor to lvm2-monitor for consistency.

14 years agoInstall symbolic .so links with relative paths between usrlibdir and libdir.
Zdenek Kabelac [Thu, 15 Apr 2010 15:12:20 +0000 (15:12 +0000)]
Install symbolic .so links with relative paths between usrlibdir and libdir.

14 years agoFix double DESTDIR usage for infodir and mandir.
Zdenek Kabelac [Thu, 15 Apr 2010 15:09:35 +0000 (15:09 +0000)]
Fix double DESTDIR usage for infodir and mandir.

14 years agoAdded awk script relpath.awk to calculate relative paths.
Zdenek Kabelac [Thu, 15 Apr 2010 15:06:26 +0000 (15:06 +0000)]
Added awk script relpath.awk to calculate relative paths.

14 years agopost-release
Alasdair Kergon [Wed, 14 Apr 2010 21:47:48 +0000 (21:47 +0000)]
post-release

14 years agotouch file
Alasdair Kergon [Wed, 14 Apr 2010 20:03:46 +0000 (20:03 +0000)]
touch file

14 years agofix broken 'make install' for lvm_dump.sh
Alasdair Kergon [Wed, 14 Apr 2010 20:03:15 +0000 (20:03 +0000)]
fix broken 'make install' for lvm_dump.sh

14 years agopre-release
Alasdair Kergon [Wed, 14 Apr 2010 18:54:37 +0000 (18:54 +0000)]
pre-release

14 years agopre-release
Alasdair Kergon [Wed, 14 Apr 2010 18:53:04 +0000 (18:53 +0000)]
pre-release

14 years ago.
Alasdair Kergon [Wed, 14 Apr 2010 18:10:30 +0000 (18:10 +0000)]
.

14 years agopre-release
Alasdair Kergon [Wed, 14 Apr 2010 17:50:49 +0000 (17:50 +0000)]
pre-release

14 years agoAdd missing readline linkage to lvm2app test.
Dave Wysochanski [Wed, 14 Apr 2010 16:13:34 +0000 (16:13 +0000)]
Add missing readline linkage to lvm2app test.

14 years agoWhat's new.
Petr Rockai [Wed, 14 Apr 2010 13:52:20 +0000 (13:52 +0000)]
What's new.

14 years agoAllow incomplete mirror restore in lvconvert --repair upon insufficient space.
Petr Rockai [Wed, 14 Apr 2010 13:51:58 +0000 (13:51 +0000)]
Allow incomplete mirror restore in lvconvert --repair upon insufficient space.

14 years agoDo not reset position in metadata ring buffer on vgrename and vgcfgrestore.
Peter Rajnoha [Wed, 14 Apr 2010 13:09:16 +0000 (13:09 +0000)]
Do not reset position in metadata ring buffer on vgrename and vgcfgrestore.

We should write metadata into next position in the ring buffer while calling
vgrename and vgcfgrestore. At this code level (_vg_write_raw), we were not able
to determine if this is a rename or not. If yes, then accompanying VG structure
passed here has a new name set, not the old one.

When looking for a location where to put metadata next, we were given a NULL
value because of failed VG name comparison (in _find_vg_rlocn) between the
name in existing metadata and metadata we're just about to write.

This resets the position in the ring buffer, overwriting any existing metadata
(and also incorrectly updates the cache to "orphan" afterwards).

This patch just adds old_name item in struct volume_group that we can check and use
if necessary and detect renames at lower layers as well.

The same applies for vgcfgrestore, but here we're using a special value of
old_name, an empty string, to disable the check with existing metadata totally.

14 years agoAllow VGs with active LVs to be renamed.
Peter Rajnoha [Wed, 14 Apr 2010 13:03:06 +0000 (13:03 +0000)]
Allow VGs with active LVs to be renamed.

14 years agoUse UUIDs instead of names while processing event handlers.
Peter Rajnoha [Wed, 14 Apr 2010 13:01:38 +0000 (13:01 +0000)]
Use UUIDs instead of names while processing event handlers.

Internally, we used DM names instead of UUIDs while processing event
handlers. This caused problems while trying to vgrename a VG with active LVs
where the names are being changed and so the devices were not found then.
The patch also contains a little bit of refactoring, moving "build_dlid" code
found in dev_manager.c to "build_dm_uuid", now in lvm-string.c (so we have
build_dm_uuid and build_dm_name at one place).

14 years agoSIGTERM testing clvmd before SIGKILL-ing it.
Petr Rockai [Wed, 14 Apr 2010 12:04:23 +0000 (12:04 +0000)]
SIGTERM testing clvmd before SIGKILL-ing it.

14 years ago Only pass visible LVs to tools in cmdline VG name/tag expansions without -a
Alasdair Kergon [Wed, 14 Apr 2010 02:19:49 +0000 (02:19 +0000)]
  Only pass visible LVs to tools in cmdline VG name/tag expansions without -a

14 years agoUse typedefs for toollib process_each functions.
Alasdair Kergon [Tue, 13 Apr 2010 23:57:41 +0000 (23:57 +0000)]
Use typedefs for toollib process_each functions.

14 years agoFix teardown in t-pvcreate-operation-md.sh nightly test.
Dave Wysochanski [Tue, 13 Apr 2010 21:42:44 +0000 (21:42 +0000)]
Fix teardown in t-pvcreate-operation-md.sh nightly test.

14 years agoAdd error diagnostic for setenv failure.
Zdenek Kabelac [Tue, 13 Apr 2010 20:54:57 +0000 (20:54 +0000)]
Add error diagnostic for setenv failure.

14 years agoUse C locales and use_mlockall for clvmd.
Zdenek Kabelac [Tue, 13 Apr 2010 19:54:16 +0000 (19:54 +0000)]
Use C locales and use_mlockall for clvmd.

Use same steps for clvmd as for dmeventd - using C locales to avoid reading
large mmaps and use mlockall() for threaded version.

14 years agoUpdate WHATS_NEW
Dave Wysochanski [Tue, 13 Apr 2010 18:18:54 +0000 (18:18 +0000)]
Update WHATS_NEW

14 years agoAdd pv->vg to solidify link between a pv and a vg.
Dave Wysochanski [Tue, 13 Apr 2010 17:26:36 +0000 (17:26 +0000)]
Add pv->vg to solidify link between a pv and a vg.

lvm2app needs a link back to the vg in order to use the vg handle for
memory allocations as well as other things.  This patch adds the field
to struct physical_volume, and sets pv->vg when reading a vg from disk or
extending a vg by using the helper function previously added,
add_pvl_to_vgs().  Moves and renames are handled with separate code
inside move_pv() and vgmerge().  Add pv->vg check to vg_validate().

A NULL value in pv->vg signifies membership in the orphan VG.
Note though in the case of pv_read() on a device with metadatacopies == 0,
more devices may need to be read for an authoritative answer.

Signed-off-by: Dave Wysochanski <dwysocha@redhat.com>
This page took 0.065218 seconds and 5 git commands to generate.