]> sourceware.org Git - lvm2.git/log
lvm2.git
13 years agoAdd aclocal.m4 (for pkgconfig).
Alasdair Kergon [Fri, 7 Jan 2011 16:27:05 +0000 (16:27 +0000)]
Add aclocal.m4 (for pkgconfig).

13 years agoSkip the api/percent test on kernels <= 2.6.32.
Petr Rockai [Fri, 7 Jan 2011 15:04:52 +0000 (15:04 +0000)]
Skip the api/percent test on kernels <= 2.6.32.

13 years agoAdd a test for the interaction of snapshots of mirrors and lvconvert --repair.
Petr Rockai [Fri, 7 Jan 2011 14:56:52 +0000 (14:56 +0000)]
Add a test for the interaction of snapshots of mirrors and lvconvert --repair.

13 years agoAdd a test for the interaction of transient errors and dmeventd mirror repair.
Petr Rockai [Fri, 7 Jan 2011 14:56:10 +0000 (14:56 +0000)]
Add a test for the interaction of transient errors and dmeventd mirror repair.

13 years agoFix a typo in the new relaxed mirror check (test/lib/check.sh).
Petr Rockai [Fri, 7 Jan 2011 14:42:35 +0000 (14:42 +0000)]
Fix a typo in the new relaxed mirror check (test/lib/check.sh).

13 years agoUsing Fedora 14's autoreconf.
Alasdair Kergon [Fri, 7 Jan 2011 14:38:34 +0000 (14:38 +0000)]
Using Fedora 14's autoreconf.

13 years agoRemove *.t in test/api's make clean target.
Petr Rockai [Fri, 7 Jan 2011 13:07:10 +0000 (13:07 +0000)]
Remove *.t in test/api's make clean target.

13 years agoDisable activation/monitoring in testing lvm.conf by default.
Petr Rockai [Fri, 7 Jan 2011 13:04:17 +0000 (13:04 +0000)]
Disable activation/monitoring in testing lvm.conf by default.

13 years agoRelax the mirror test in test/lib/check.sh.
Petr Rockai [Fri, 7 Jan 2011 13:03:46 +0000 (13:03 +0000)]
Relax the mirror test in test/lib/check.sh.

13 years agoIn aux, exit 200 no longer works as skip -- replace with real skip call.
Petr Rockai [Fri, 7 Jan 2011 13:03:04 +0000 (13:03 +0000)]
In aux, exit 200 no longer works as skip -- replace with real skip call.

13 years agoFix up the make clean target in test/.
Petr Rockai [Fri, 7 Jan 2011 12:26:02 +0000 (12:26 +0000)]
Fix up the make clean target in test/.

13 years agoFix memory leak in filter creation error path
Zdenek Kabelac [Thu, 6 Jan 2011 15:29:24 +0000 (15:29 +0000)]
Fix memory leak in filter creation error path

If some allocation for peristent filter fails its memory reference
was lost, fix it by calling filter's destructor.

Fix log_error messages for failing allocation.

13 years agoIntentionaly ignore result from get_config_uint32
Zdenek Kabelac [Thu, 6 Jan 2011 15:25:07 +0000 (15:25 +0000)]
Intentionaly ignore result from get_config_uint32

13 years agoRemove dead assignment of 'ret' value
Zdenek Kabelac [Thu, 6 Jan 2011 10:45:41 +0000 (10:45 +0000)]
Remove dead assignment of 'ret' value

Variable 'ret' assigned from _do_event() was actually not used and replaced with next
assignment without any read of the returned value.

Code is reformated - so the error path is put in the if() branch and normal
code is put after the 'if' together with FIXME comment.

FIXME lowprio: logging needs to be fixed in this code,
 - multiple log_errors are printed, stacks are missing...

13 years agoRemove unneeded stack prints after log_error
Zdenek Kabelac [Thu, 6 Jan 2011 09:45:05 +0000 (09:45 +0000)]
Remove unneeded stack prints after log_error

13 years agoReverting recent commit to disallow adding/removing mirror log while
Jonathan Earl Brassow [Wed, 5 Jan 2011 23:18:46 +0000 (23:18 +0000)]
Reverting recent commit to disallow adding/removing mirror log while
removing/adding mirror images... There was already code in there to
do the job - I just didn't find it in WHATS_NEW (or in the code right
away).

13 years agoPrevent the user from simultaneously adding a mirror log while removing
Jonathan Earl Brassow [Wed, 5 Jan 2011 20:02:45 +0000 (20:02 +0000)]
Prevent the user from simultaneously adding a mirror log while removing
a mirror image (or removing a log while adding a mirror).  Advise the
user to use two separate commands instead.

This issue become especially problematic when PVs are specified, as they
tend to mean different things when adding vs removing.  In a command that
mixes adding and removing, it is impossible to decern exactly what the
user wants.

This change prevents bug 603912.

13 years agoCheck result of dm_snprintf for error
Zdenek Kabelac [Wed, 5 Jan 2011 15:10:30 +0000 (15:10 +0000)]
Check result of dm_snprintf for error

13 years agoAdd sys_debug loging for unlink
Zdenek Kabelac [Wed, 5 Jan 2011 15:06:10 +0000 (15:06 +0000)]
Add sys_debug loging for unlink

This unlink intentionally silently ignores any errors.
It's still worth to trace its error status in debug mode.

13 years agoFix gcc warnings for missing headers and prototypes
Zdenek Kabelac [Wed, 5 Jan 2011 15:03:43 +0000 (15:03 +0000)]
Fix gcc warnings for missing headers and prototypes

Add missing header  string.h (strcmp, strndup).
Add 'static' to fix missing prototypes gcc warning.
Remove unused variables verbose_off, TESTDIR, PREFIX.

13 years agoRemove obsolete bits of support code from test/.
Petr Rockai [Wed, 5 Jan 2011 14:15:26 +0000 (14:15 +0000)]
Remove obsolete bits of support code from test/.

13 years agoRe-enable t-lvconvert-repair-transient, avoiding the deadlock by running mkfs
Petr Rockai [Wed, 5 Jan 2011 14:15:01 +0000 (14:15 +0000)]
Re-enable t-lvconvert-repair-transient, avoiding the deadlock by running mkfs
asynchronously.

13 years agoAdd missing error path tests
Zdenek Kabelac [Wed, 5 Jan 2011 14:03:36 +0000 (14:03 +0000)]
Add missing error path tests

13 years agoFail deamonization if lvmcache_init fail
Zdenek Kabelac [Wed, 5 Jan 2011 12:59:46 +0000 (12:59 +0000)]
Fail deamonization if lvmcache_init fail

FIXME Add proper cleanup

13 years agoReturn PERCENT_INVALID for error case
Zdenek Kabelac [Wed, 5 Jan 2011 12:33:51 +0000 (12:33 +0000)]
Return PERCENT_INVALID for error case

If the percent value could not be determined return PERCENT_INVALID.
Indent function with tabs.

13 years agoRemove unused variable mirr_state and its assignment
Zdenek Kabelac [Wed, 5 Jan 2011 12:27:56 +0000 (12:27 +0000)]
Remove unused variable mirr_state and its assignment

13 years agoRemove dead assignment to thisfd
Zdenek Kabelac [Wed, 5 Jan 2011 12:17:19 +0000 (12:17 +0000)]
Remove dead assignment to thisfd

Value of 'thisfd' is not read again after its assigment

13 years agoFix another bug in t-pvcreate-operation-md (should pass now).
Petr Rockai [Wed, 5 Jan 2011 01:04:47 +0000 (01:04 +0000)]
Fix another bug in t-pvcreate-operation-md (should pass now).

13 years agoAdd a test for RHBZ 640621 (metadata/dirs + no PV MDAs broken).
Petr Rockai [Wed, 5 Jan 2011 01:00:34 +0000 (01:00 +0000)]
Add a test for RHBZ 640621 (metadata/dirs + no PV MDAs broken).

13 years agoFix typo in t-pvcreate-operation-md.sh.
Petr Rockai [Wed, 5 Jan 2011 00:38:41 +0000 (00:38 +0000)]
Fix typo in t-pvcreate-operation-md.sh.

13 years agoMove the mkdtemp functionality into test/lib/utils.sh.
Petr Rockai [Wed, 5 Jan 2011 00:26:19 +0000 (00:26 +0000)]
Move the mkdtemp functionality into test/lib/utils.sh.

13 years agoFix a couple of bugs in the new (test/lib/)aux.sh.
Petr Rockai [Wed, 5 Jan 2011 00:25:07 +0000 (00:25 +0000)]
Fix a couple of bugs in the new (test/lib/)aux.sh.

13 years agoSubstantial rework of the functional test support code. Some new features:
Petr Rockai [Wed, 5 Jan 2011 00:16:18 +0000 (00:16 +0000)]
Substantial rework of the functional test support code. Some new features:

- somewhat neater, more consistent and more readable output
- possible to set any lvm.conf value: aux lvmconf "section/key = value"
- LVM_TEST_NODEBUG to suppress the (lengthy) "## DEBUG" output
- back-substitution on test output ($TESTDIR/$PREFIX -> @TESTDIR@/@PREFIX@)
- support code moved from test/ to test/lib/ --> less clutter

13 years agoFix bug 635949: lvconvert man page clarification
Jonathan Earl Brassow [Tue, 4 Jan 2011 21:41:35 +0000 (21:41 +0000)]
Fix bug 635949: lvconvert man page clarification

13 years agoChange to correct cmirrord return code is user visible - update WHATS_NEW
Jonathan Earl Brassow [Tue, 4 Jan 2011 21:33:06 +0000 (21:33 +0000)]
Change to correct cmirrord return code is user visible - update WHATS_NEW
file.

13 years agoFix bug 632681: cmirrord shouldn't fail 'start' if already started
Jonathan Earl Brassow [Tue, 4 Jan 2011 21:16:54 +0000 (21:16 +0000)]
Fix bug 632681: cmirrord shouldn't fail 'start' if already started

Return 0 from the cmirrord init script if the daemon is already
running.

http://refspecs.freestandards.org/LSB_3.1.1/LSB-Core-generic/LSB-Core-generic/iniscrptact.html

13 years agoExport DM_CONTROL_NODE_UMASK and use it while creating /dev/mapper/control.
Peter Rajnoha [Tue, 4 Jan 2011 14:43:53 +0000 (14:43 +0000)]
Export DM_CONTROL_NODE_UMASK and use it while creating /dev/mapper/control.

13 years agoUse system assert in test/api/percent.c, for now.
Petr Rockai [Mon, 3 Jan 2011 15:07:39 +0000 (15:07 +0000)]
Use system assert in test/api/percent.c, for now.

13 years agoFix wrongly paired unlocking of global lock in pvchange. (2.02.66)
Milan Broz [Thu, 23 Dec 2010 14:23:30 +0000 (14:23 +0000)]
Fix wrongly paired unlocking of global lock in pvchange. (2.02.66)

13 years agoRemove check for existance of vg pointer
Zdenek Kabelac [Wed, 22 Dec 2010 15:44:09 +0000 (15:44 +0000)]
Remove check for existance of vg pointer

Checking for vg being != NULL in this place is not needed.
Pointer vg is already dereferced in this function above this code line.
Also this internal function _read_pv is always called with valid 'vg' pointer.

13 years agoAdd backtraces for backup and backup_remove fail paths
Zdenek Kabelac [Wed, 22 Dec 2010 15:36:41 +0000 (15:36 +0000)]
Add backtraces for backup and backup_remove fail paths

13 years agoHide unused code into if 0
Zdenek Kabelac [Wed, 22 Dec 2010 15:32:15 +0000 (15:32 +0000)]
Hide unused code into if 0

Make it obvious for lcov coverage and static analyzis we
are not interested in this piece of code.

13 years agoDetect errors from dm_task_set calls
Zdenek Kabelac [Wed, 22 Dec 2010 15:28:44 +0000 (15:28 +0000)]
Detect errors from dm_task_set calls

Check for errors in dm_task_set calls.
Use  goto_bad macro with stack trace.
Replace  label  failed: with bad:.

13 years agoFix last pthread_join fix commit
Zdenek Kabelac [Wed, 22 Dec 2010 14:00:28 +0000 (14:00 +0000)]
Fix last pthread_join fix commit

Call for pthread_join() does not set errno value even though return values
looks like that. For now assign errno from return value and still use
strerror() to print some error message as this seems to be commonly used.

Add also log_sys_error() message for error close of local pipe.

13 years agoAdd backtraces for archive and backup_locally
Zdenek Kabelac [Wed, 22 Dec 2010 13:45:33 +0000 (13:45 +0000)]
Add backtraces for archive and backup_locally

If archive or back_locally fails - add stack trace.

13 years agoFix memory leak in debug mode of restart_clvmd() error path
Zdenek Kabelac [Wed, 22 Dec 2010 12:14:11 +0000 (12:14 +0000)]
Fix memory leak in debug mode of restart_clvmd() error path

13 years agoLog error state from pthread_join operation
Zdenek Kabelac [Wed, 22 Dec 2010 12:10:56 +0000 (12:10 +0000)]
Log error state from pthread_join operation

Value jstat is unused - so replace it with logging via log_sys_error().

13 years agoRemove dead assignment of lv_total and lv_capasity_total
Zdenek Kabelac [Wed, 22 Dec 2010 12:06:54 +0000 (12:06 +0000)]
Remove dead assignment of lv_total and lv_capasity_total

Variables 'lv_total' and 'lv_capasity_total' are unused.

13 years agopost-release
Alasdair Kergon [Tue, 21 Dec 2010 21:08:51 +0000 (21:08 +0000)]
post-release

13 years agoCopyright notices for new files.
Alasdair Kergon [Tue, 21 Dec 2010 01:14:34 +0000 (01:14 +0000)]
Copyright notices for new files.

13 years agopre-release
Alasdair Kergon [Tue, 21 Dec 2010 01:08:29 +0000 (01:08 +0000)]
pre-release

13 years agoAdd missing test for reallocation error.
Zdenek Kabelac [Mon, 20 Dec 2010 14:38:22 +0000 (14:38 +0000)]
Add missing test for reallocation error.

13 years agoRemove dead assignment
Zdenek Kabelac [Mon, 20 Dec 2010 14:36:12 +0000 (14:36 +0000)]
Remove dead assignment

Variable 'r' is never read so remove it and just cast result from
_error_device function to (void).

13 years agoVerbose log old_umask value
Zdenek Kabelac [Mon, 20 Dec 2010 14:34:49 +0000 (14:34 +0000)]
Verbose log old_umask value

Use old_umask value and print its content through verbose log.

13 years agoAdd internal error if pointer is uninitialized
Zdenek Kabelac [Mon, 20 Dec 2010 14:20:52 +0000 (14:20 +0000)]
Add internal error if pointer is uninitialized

Add simple check for existance of 'pl' and printer internal error message
if device is missing instead of plain crash.

13 years agoAdd check for unlink errors
Zdenek Kabelac [Mon, 20 Dec 2010 14:08:46 +0000 (14:08 +0000)]
Add check for unlink errors

13 years agoRemove unused variable label
Zdenek Kabelac [Mon, 20 Dec 2010 14:06:33 +0000 (14:06 +0000)]
Remove unused variable label

Variable 'label' is unused in _format1_pv_write().

13 years agoRemove unused variable dev_dir_provided
Zdenek Kabelac [Mon, 20 Dec 2010 14:05:31 +0000 (14:05 +0000)]
Remove unused variable dev_dir_provided

13 years agoRemove dead assignment of segh
Zdenek Kabelac [Mon, 20 Dec 2010 14:04:43 +0000 (14:04 +0000)]
Remove dead assignment of segh

Variable 'segh' is never read again after this assignment.

13 years agoRemove dead store in lvm_run_command
Zdenek Kabelac [Mon, 20 Dec 2010 13:59:52 +0000 (13:59 +0000)]
Remove dead store in lvm_run_command

Variable 'ret' is not read before its next assignment.

13 years agoRemoved unused pointer
Zdenek Kabelac [Mon, 20 Dec 2010 13:58:38 +0000 (13:58 +0000)]
Removed unused pointer

Pointer 'duplicate' is unused.

13 years agoUse dm_free for dm_malloc-ed areas in _clog_ctr/_clog_dtr (cmirrord).
Zdenek Kabelac [Mon, 20 Dec 2010 13:57:19 +0000 (13:57 +0000)]
Use dm_free for dm_malloc-ed areas in _clog_ctr/_clog_dtr (cmirrord).

Use dm_zalloc to obtain zeroed memory block.
Use dm_free for dm_ allocated memory blocks.
Test close() for error.

13 years agoAdd checks for allocation errors in config node clonning.
Zdenek Kabelac [Mon, 20 Dec 2010 13:53:10 +0000 (13:53 +0000)]
Add checks for allocation errors in config node clonning.

Add checks for clonning allocation a fail-out when something is
not allocated correctly.

Also move var declaration to the begining of the function
and fix log_error messages.

13 years agoReplace multiple fprintf calls with one large string parameter
Zdenek Kabelac [Mon, 20 Dec 2010 13:48:28 +0000 (13:48 +0000)]
Replace multiple fprintf calls with one large string parameter

13 years agoFix error path if regex engine cannot be created in _build_matcher().
Zdenek Kabelac [Mon, 20 Dec 2010 13:45:39 +0000 (13:45 +0000)]
Fix error path if regex engine cannot be created in _build_matcher().

Fix only 'stack' printing with full function error exit.

13 years agoUse const char * for name and old_name in vg
Zdenek Kabelac [Mon, 20 Dec 2010 13:40:46 +0000 (13:40 +0000)]
Use const char * for name and old_name in vg

Switch to use const char pointers to avoid changes of these structure
members and having better control over, were these members could
be modified.

13 years agoUse const char* for offset calculation
Zdenek Kabelac [Mon, 20 Dec 2010 13:39:12 +0000 (13:39 +0000)]
Use const char* for offset calculation

As 'const' types are also passed to macro dm_list_struct_base -
keep offset calculation with const char pointers.
Fixes several gcc constness warnings.

13 years agoSwitch void* to char* arithmetic
Zdenek Kabelac [Mon, 20 Dec 2010 13:37:26 +0000 (13:37 +0000)]
Switch void* to char* arithmetic

13 years agoRemove const usage from destroy callbacks
Zdenek Kabelac [Mon, 20 Dec 2010 13:32:49 +0000 (13:32 +0000)]
Remove const usage from destroy callbacks

As const segment_type or const format_type are never released
use their non-const version and remove const downcast from dm_free calls.
This change fixes many gcc warnings we were getting from them.

13 years agoFix wrong cast to char*
Zdenek Kabelac [Mon, 20 Dec 2010 13:28:04 +0000 (13:28 +0000)]
Fix wrong cast to char*

As cmd->cmd_line is already const char pointer it's not needed to cast already
const char pointer to char pointer.

13 years agoUse const char* const * for dm_regex_create()
Zdenek Kabelac [Mon, 20 Dec 2010 13:23:11 +0000 (13:23 +0000)]
Use const char* const * for dm_regex_create()

Change API interface to accept even completely const array patterns.

This should present no change for libdm users and allows to pass
pattern arrays without cast to const char **.

13 years agoSome const cleanups
Zdenek Kabelac [Mon, 20 Dec 2010 13:19:13 +0000 (13:19 +0000)]
Some const cleanups

Minor const warning fixes and internal API updates.

13 years agoupdate
Zdenek Kabelac [Mon, 20 Dec 2010 13:17:56 +0000 (13:17 +0000)]
update

13 years agoTest return value from read() and close() for an error.
Zdenek Kabelac [Mon, 20 Dec 2010 13:16:30 +0000 (13:16 +0000)]
Test return value from read() and close() for an error.

13 years agoAdd more strict const pointers around config tree
Zdenek Kabelac [Mon, 20 Dec 2010 13:12:55 +0000 (13:12 +0000)]
Add more strict const pointers around config tree

To have better control were the config tree could be modified use more
const pointers and very carefully downcast them back to non-const
(for config tree merge).

13 years agoMove var declarations to function begining
Zdenek Kabelac [Mon, 20 Dec 2010 12:29:39 +0000 (12:29 +0000)]
Move var declarations to function begining

As assert macro jumps to 'bad:' label - we need vg initialized.

13 years agoFix NULL pointer check for *buf
Zdenek Kabelac [Fri, 17 Dec 2010 12:37:49 +0000 (12:37 +0000)]
Fix NULL pointer check for *buf

As ternary operator has lower priority then add operation, this check
was not doing what seemed to be expected.

So enclose the test in braces and check for NULL in *buf.

13 years agoFix device.c #include to ensure 64-bit fopen64 use. (2.02.51) (robbat2)
Alasdair Kergon [Wed, 15 Dec 2010 12:49:55 +0000 (12:49 +0000)]
Fix device.c #include to ensure 64-bit fopen64 use. (2.02.51)  (robbat2)

13 years agoFix sed substitution in copying tests to builddir (test/Makefile.in).
Petr Rockai [Tue, 14 Dec 2010 23:23:45 +0000 (23:23 +0000)]
Fix sed substitution in copying tests to builddir (test/Makefile.in).

13 years agoAdd getters for copy_percent and snap_percent to the lvm2app API.
Petr Rockai [Tue, 14 Dec 2010 23:20:58 +0000 (23:20 +0000)]
Add getters for copy_percent and snap_percent to the lvm2app API.

13 years agoAdd further consistency checking to vg_validate, ensuring that all segment
Petr Rockai [Tue, 14 Dec 2010 17:51:09 +0000 (17:51 +0000)]
Add further consistency checking to vg_validate, ensuring that all segment
areas point to LVs or PVs that are listed in the respective VG.

13 years agoHack up the RUN_BASE computation in the test Makefile.in a bit more (so that it
Petr Rockai [Tue, 14 Dec 2010 17:38:42 +0000 (17:38 +0000)]
Hack up the RUN_BASE computation in the test Makefile.in a bit more (so that it
actually works... sometimes).

13 years agoAdd a validation step for pvmoveN internal LVs to vg_validate.
Petr Rockai [Tue, 14 Dec 2010 17:07:35 +0000 (17:07 +0000)]
Add a validation step for pvmoveN internal LVs to vg_validate.

13 years agoHAVE_SELINUX again
Peter Rajnoha [Mon, 13 Dec 2010 12:44:09 +0000 (12:44 +0000)]
HAVE_SELINUX again

13 years ago#ifdef HAVE_SELINUX and #ifdef HAVE_SELINUX_LABEL_H
Peter Rajnoha [Mon, 13 Dec 2010 12:30:04 +0000 (12:30 +0000)]
#ifdef HAVE_SELINUX and #ifdef HAVE_SELINUX_LABEL_H

13 years agoMissing #elif HAVE_SELINUX
Peter Rajnoha [Mon, 13 Dec 2010 12:18:38 +0000 (12:18 +0000)]
Missing #elif HAVE_SELINUX

13 years agoUpdate configure.
Milan Broz [Mon, 13 Dec 2010 11:03:10 +0000 (11:03 +0000)]
Update configure.

13 years agoCreate /var/run/lvm directory during clvmd initialisation if missing.
Peter Rajnoha [Mon, 13 Dec 2010 10:49:02 +0000 (10:49 +0000)]
Create /var/run/lvm directory during clvmd initialisation if missing.

We need to be sure that /var/run and /var/lock is always there.
(E.g. these two directories could be using tmpfs which then loose
all the content after reboot.)

13 years agoAdd new dm_prepare_selinux_context fn to libdevmapper and use it throughout.
Peter Rajnoha [Mon, 13 Dec 2010 10:43:56 +0000 (10:43 +0000)]
Add new dm_prepare_selinux_context fn to libdevmapper and use it throughout.
Detect existence of new SELinux selabel interface during configure.
Use new dm_prepare_selinux_context instead of dm_set_selinux_context.

We should set the SELinux context before the actual file system object creation.
The new dm_prepare_selinux_context function sets this using the selabel_lookup
fn in conjuction with the setfscreatecon fn. If selinux/label.h interface
(that should be a part of the selinux library) is not found during configure,
we fallback to the original matchpathcon function instead.

13 years agoRemove a redundant %.o: %.c rule from test/api/Makefile.in.
Petr Rockai [Sun, 12 Dec 2010 22:26:47 +0000 (22:26 +0000)]
Remove a redundant %.o: %.c rule from test/api/Makefile.in.

13 years agoFix the sed expression to get "base" names of tests.
Petr Rockai [Sun, 12 Dec 2010 21:17:25 +0000 (21:17 +0000)]
Fix the sed expression to get "base" names of tests.

13 years agoOnly build the required bits under api/ on make check.
Petr Rockai [Sun, 12 Dec 2010 21:08:00 +0000 (21:08 +0000)]
Only build the required bits under api/ on make check.

13 years agoDo not build vgtest (superseded by vgtest.t). Fix the build line for .t files.
Petr Rockai [Sun, 12 Dec 2010 20:49:38 +0000 (20:49 +0000)]
Do not build vgtest (superseded by vgtest.t). Fix the build line for .t files.

13 years agoFirst go at a somewhat more comprehensive mechanism to run "unit" tests for the
Petr Rockai [Sun, 12 Dec 2010 20:36:38 +0000 (20:36 +0000)]
First go at a somewhat more comprehensive mechanism to run "unit" tests for the
lvm2app API. Further factoring of the support code needed. RHBZ 654445

13 years agoFix scanning of VGs without in-PV mdas.
Alasdair Kergon [Fri, 10 Dec 2010 22:39:52 +0000 (22:39 +0000)]
Fix scanning of VGs without in-PV mdas.

Set cmd->independent_metadata_areas if metadata/dirs or disk_areas in use.
- Identify and record this state.

Don't skip full scan when independent mdas are present even if memlock is set.
- Clusters and OOM aren't supported, so no problem doing the proper scans.

Avoid revalidating the label cache immediately after scanning.
- A simple optimisation.

Support scanning for a single VG in independent mdas.
- Not used by the fix but I left it in anyway as later patches might use it.

13 years agoTry to detect fail in clvmd startup in tests.
Milan Broz [Thu, 9 Dec 2010 11:19:21 +0000 (11:19 +0000)]
Try to detect fail in clvmd startup in tests.

13 years ago.
Alasdair Kergon [Thu, 9 Dec 2010 00:10:24 +0000 (00:10 +0000)]
.

13 years ago.
Alasdair Kergon [Wed, 8 Dec 2010 23:09:45 +0000 (23:09 +0000)]
.

13 years agoRename vg_release to free_vg.
Alasdair Kergon [Wed, 8 Dec 2010 20:50:48 +0000 (20:50 +0000)]
Rename vg_release to free_vg.

13 years agoCope better with an undefined target_percent operation in _percent_run.
Alasdair Kergon [Wed, 8 Dec 2010 19:26:35 +0000 (19:26 +0000)]
Cope better with an undefined target_percent operation in _percent_run.

This page took 0.066907 seconds and 5 git commands to generate.