]> sourceware.org Git - lvm2.git/log
lvm2.git
13 years agoReplacei sleep wait with udev settle
Zdenek Kabelac [Fri, 28 Jan 2011 16:12:45 +0000 (16:12 +0000)]
Replacei sleep wait with udev settle

Use new udev_wait command instead of unpredictable sleep waiting.
As with more devices in the system, udev processing is slower.

13 years agoQuery only test related vg name
Zdenek Kabelac [Fri, 28 Jan 2011 16:11:14 +0000 (16:11 +0000)]
Query only test related vg name

13 years agoAdd command to wait for udevadm settle
Zdenek Kabelac [Fri, 28 Jan 2011 16:10:21 +0000 (16:10 +0000)]
Add command to wait for udevadm settle

13 years agoDo not break pipes
Zdenek Kabelac [Fri, 28 Jan 2011 16:08:39 +0000 (16:08 +0000)]
Do not break pipes

As the option 'set -e -o pipefail' is very sensite on pipe breaking
stop using '-q' for grep commands.

Otherwise this command (with large enough table) would fail:

 dmsetup table | egrep -q

with exit code 141 (128 + SIGPIPE)

As Peter suggested, he prefers to keep '-o pipefail' - so make sure all
piped commands will read the whole output and will not exit too early.

13 years agoAccelerate mirror tests
Zdenek Kabelac [Fri, 28 Jan 2011 16:07:04 +0000 (16:07 +0000)]
Accelerate mirror tests

Instead of recreation of whole device set for each test round,
just cleanup created LVs to empty VG.
Lower the size of PV devices to 16MB

13 years agoDisplay duration of tests when it passed.
Zdenek Kabelac [Fri, 28 Jan 2011 16:05:38 +0000 (16:05 +0000)]
Display duration of tests when it passed.

Enhance output with info about the test duration.
Cleanup few declarations in the code.

13 years agoUpdating man pages
Zdenek Kabelac [Fri, 28 Jan 2011 16:03:38 +0000 (16:03 +0000)]
Updating man pages

13 years agoCompile code for memory debuging only with DEBUG_MEM
Zdenek Kabelac [Fri, 28 Jan 2011 16:01:32 +0000 (16:01 +0000)]
Compile code for memory debuging only with DEBUG_MEM

When it's not in use - do not compile this code.
Improves lcov code coverage results for this code a lot :)

13 years agoSet DM_UDEV_DISABLE_OTHER_RULES_FLAG for suspended DM devices in udev rules.
Peter Rajnoha [Fri, 28 Jan 2011 11:41:51 +0000 (11:41 +0000)]
Set DM_UDEV_DISABLE_OTHER_RULES_FLAG for suspended DM devices in udev rules.

This is to avoid any scanning and processing of DM devices while they are in
suspended state (e.g. a rename while the device is suspended - a CHANGE event
is generated!). Otherwise, any scanning in the rules could end up with locking
the calling process until the device is resumed and so we don't receive a
notification about udev rules completion until then (and that effectively
locks out the process awaiting the notification!).

However, we still keep 'disk' and any 'subsystem' related udev rules running.
We trust these and these should check themselves whether a device is suspended
or not, not trying to run any scanning if it is.

13 years agoUse memcpy and add error message
Zdenek Kabelac [Fri, 28 Jan 2011 10:19:00 +0000 (10:19 +0000)]
Use memcpy and add error message

strncpy (which check each byte for \0) is not need as we always copy
the length size - so using memcpy is a bit cheaper.

Add missing log_error message for failed allocation.

13 years agoSkip NULL check before dm_free
Zdenek Kabelac [Fri, 28 Jan 2011 10:16:04 +0000 (10:16 +0000)]
Skip NULL check before dm_free

dm_free checks for NULL itself.

13 years agoAvoid rebuilding of uuid validation table
Zdenek Kabelac [Fri, 28 Jan 2011 10:14:08 +0000 (10:14 +0000)]
Avoid rebuilding of uuid validation table

Small CPU relax...

13 years agoImprove lvcreate "insufficient extents" errors to "insufficient free space".
Mike Snitzer [Fri, 28 Jan 2011 02:58:00 +0000 (02:58 +0000)]
Improve lvcreate "insufficient extents" errors to "insufficient free space".

13 years agoUse O_DIRECT when reading block devices.
Alasdair Kergon [Thu, 27 Jan 2011 00:21:37 +0000 (00:21 +0000)]
Use O_DIRECT when reading block devices.

13 years agoAdd missing lvm_quit in test
Zdenek Kabelac [Wed, 26 Jan 2011 21:21:56 +0000 (21:21 +0000)]
Add missing lvm_quit in test

Fix occasional confusing memory leak report in testing.

13 years agoInitialize pool object for each row
Zdenek Kabelac [Tue, 25 Jan 2011 21:51:30 +0000 (21:51 +0000)]
Initialize pool object for each row

Fix assert abort of dmsetup (when compiled with pool debug)
dmsetup splitname --nameprefixes --noheadings --rows gvg-a2

Move pool begin in the inner loop - otherwise it would using
already 'ended' pool object.

13 years agopost-release
Alasdair Kergon [Mon, 24 Jan 2011 23:34:46 +0000 (23:34 +0000)]
post-release

13 years agopre-release old-v2_02_82 v2_02_82
Alasdair Kergon [Mon, 24 Jan 2011 23:24:06 +0000 (23:24 +0000)]
pre-release

13 years agoBring lvscan man page up-to-date.
Alasdair Kergon [Mon, 24 Jan 2011 20:02:07 +0000 (20:02 +0000)]
Bring lvscan man page up-to-date.

13 years agoFix lvchange --test to exit cleanly.
Alasdair Kergon [Mon, 24 Jan 2011 14:19:05 +0000 (14:19 +0000)]
Fix lvchange --test to exit cleanly.

13 years agoAdd change_tag to toollib.
Alasdair Kergon [Mon, 24 Jan 2011 13:38:31 +0000 (13:38 +0000)]
Add change_tag to toollib.
Allow multiple pvchange command line options to be specified together.

13 years agoIf other process finishes (or aborts) pvmove operation and
Milan Broz [Wed, 19 Jan 2011 23:11:39 +0000 (23:11 +0000)]
If other process finishes (or aborts) pvmove operation and
polling function cannot find any lv with PVMOVE flag, return
success and do not print  "aborting" message.

Fixes https://bugzilla.redhat.com/show_bug.cgi?id=602389

13 years agoIn some versions (RHEL6) dlm_create_lockspace() always
Milan Broz [Wed, 19 Jan 2011 23:09:31 +0000 (23:09 +0000)]
In some versions (RHEL6) dlm_create_lockspace() always
return lockspace reference (even if lockspace already exists)
and thus increases DLM lockspace count. It means that after
clvmd restart the lockspace is still in use.

(The only way to clean environment to enable clean cluster
shutdown is call "dlm_tool leave clvmd" several times.)

Because only one clvmd can run in time, we can use simpler logic,
try to open lockspace with dlm_open_lockspace() and only if it fails
try to create new one. This way the lockspace reference doesn not
increase.

Very easily reproducible with  "clvmd -S" command.

Patch also fixes return code when clvmd_restart fails and fixes
double free if debug option was specified during restart.

Fixes https://bugzilla.redhat.com/show_bug.cgi?id=612862

13 years agoRemove duplicate statement (pasted twice by patch at some point?)
Jonathan Earl Brassow [Wed, 19 Jan 2011 19:24:07 +0000 (19:24 +0000)]
Remove duplicate statement (pasted twice by patch at some point?)

13 years agoAdd test to make sure that a log device is retained when a
Jonathan Earl Brassow [Wed, 19 Jan 2011 19:22:07 +0000 (19:22 +0000)]
Add test to make sure that a log device is retained when a
mirror image fails and the policies are set to:
 mirror_image_fault_policy = "replace"
 mirror_log_fault_policy = "remove"

13 years agoRemove DEBUGLOG from dmeventd.
Milan Broz [Mon, 17 Jan 2011 23:14:05 +0000 (23:14 +0000)]
Remove DEBUGLOG from dmeventd.

13 years agoAdd -f (don't fork) option to clvmd and fix clvmd -d<num> description.
Milan Broz [Mon, 17 Jan 2011 23:13:14 +0000 (23:13 +0000)]
Add -f (don't fork) option to clvmd and fix clvmd -d<num> description.

13 years agoremove unused definitions
Alasdair Kergon [Mon, 17 Jan 2011 19:02:44 +0000 (19:02 +0000)]
remove unused definitions

13 years agopost-release
Alasdair Kergon [Mon, 17 Jan 2011 18:16:18 +0000 (18:16 +0000)]
post-release

13 years agopre-release old-v2_02_81 v2_02_81
Alasdair Kergon [Mon, 17 Jan 2011 16:46:50 +0000 (16:46 +0000)]
pre-release

13 years agoRemove -f from list of targets for cleanup
Zdenek Kabelac [Mon, 17 Jan 2011 15:18:10 +0000 (15:18 +0000)]
Remove -f from list of targets for cleanup

rm -f is already in used for this cleanup.

13 years agoDo not scan devices unnecessarily for reseting error counter
Zdenek Kabelac [Mon, 17 Jan 2011 15:16:55 +0000 (15:16 +0000)]
Do not scan devices unnecessarily for reseting error counter

For reseting error counter use directly btree cached elements and do not
create whole dev_iterator.

13 years agoSet default value to counter_last
Zdenek Kabelac [Thu, 13 Jan 2011 15:03:28 +0000 (15:03 +0000)]
Set default value to counter_last

Missed in previous commit and could be using some random stack value.

13 years agoDo not log backtrace for correctly processed command
Zdenek Kabelac [Thu, 13 Jan 2011 15:00:29 +0000 (15:00 +0000)]
Do not log backtrace for correctly processed command

13 years agoInclude default make.tmpl
Zdenek Kabelac [Thu, 13 Jan 2011 14:58:59 +0000 (14:58 +0000)]
Include default make.tmpl

Use default clean targets for this Makefile
Use also same build flags for compiling testing tools like harness.

13 years agoEnable monitoring for cluster tests
Zdenek Kabelac [Thu, 13 Jan 2011 14:57:18 +0000 (14:57 +0000)]
Enable monitoring for cluster tests

13 years agoSkip unnecessary lock_vol() call after volume deactivation
Zdenek Kabelac [Thu, 13 Jan 2011 14:56:17 +0000 (14:56 +0000)]
Skip unnecessary lock_vol() call after volume deactivation

Improve condition within lock_vol so we are not calling extra unlock
if the volume just has been deactivated.

Patch uses lck_type and replaces negative 'and' condition to more
readable 'or' condition.
Few missing strace traces added.

13 years agoAdd exec_cmd paramater sync_needed
Zdenek Kabelac [Thu, 13 Jan 2011 14:51:32 +0000 (14:51 +0000)]
Add exec_cmd paramater  sync_needed

As sync_local_dev_names() cannot be called within activation context,
add new parametr which allows to select if the sync call is needed
before executing new command.

13 years agoCheck for file with clvmd pid
Zdenek Kabelac [Thu, 13 Jan 2011 11:05:27 +0000 (11:05 +0000)]
Check for file with clvmd pid

Instead of checking  $LOCAL_CLVMD set during some 'aux' execution which
doesn't seem to be propagated to this shell - check for existance of pid
file of clvmd process - so this test is skipped in singlenode cluster test.

13 years agoHotfix to stop harness busylooping
Zdenek Kabelac [Thu, 13 Jan 2011 11:02:55 +0000 (11:02 +0000)]
Hotfix to stop harness busylooping

Harness seems to be able to busyloop in while cycle and not moving forward
for certain buffer - so check whethere there was some progress.
This fix allows to continue after failed cluster test.

Fix gcc warning for hiding global variable 's' -> sig.

13 years agoReplace fs_unlock by sync_local_dev_names to notify local clvmd. (2.02.80)
Alasdair Kergon [Wed, 12 Jan 2011 20:42:50 +0000 (20:42 +0000)]
Replace fs_unlock by sync_local_dev_names to notify local clvmd. (2.02.80)
Introduce sync_local_dev_names and CLVMD_CMD_SYNC_NAMES to issue fs_unlock.

13 years agoKill clvmd properly after locking_type 3 tests (using clvmd/singlenode).
Petr Rockai [Wed, 12 Jan 2011 16:07:55 +0000 (16:07 +0000)]
Kill clvmd properly after locking_type 3 tests (using clvmd/singlenode).

13 years agoadd fio
Alasdair Kergon [Wed, 12 Jan 2011 15:28:33 +0000 (15:28 +0000)]
add fio

13 years agos/log_verbose/log_error/ - Increase log level on error message.
Jonathan Earl Brassow [Tue, 11 Jan 2011 17:21:01 +0000 (17:21 +0000)]
s/log_verbose/log_error/ - Increase log level on error message.

13 years agoAdd disk to mirrored log type conversion.
Jonathan Earl Brassow [Tue, 11 Jan 2011 17:05:08 +0000 (17:05 +0000)]
Add disk to mirrored log type conversion.

13 years agopost-release
Alasdair Kergon [Mon, 10 Jan 2011 21:12:54 +0000 (21:12 +0000)]
post-release

13 years agoreissue 2.02.80 old-v2_02_80 v2_02_80
Alasdair Kergon [Mon, 10 Jan 2011 21:12:18 +0000 (21:12 +0000)]
reissue 2.02.80

13 years agoFix missing declaration for fs_unlock
Zdenek Kabelac [Mon, 10 Jan 2011 19:49:42 +0000 (19:49 +0000)]
Fix missing declaration for fs_unlock

13 years agoAvoid cookie sharing between forked processes
Zdenek Kabelac [Mon, 10 Jan 2011 19:31:02 +0000 (19:31 +0000)]
Avoid cookie sharing between forked processes

Before fork, ensure cookie is reset so it's not shared between processes.

13 years agopost-release
Alasdair Kergon [Mon, 10 Jan 2011 14:51:33 +0000 (14:51 +0000)]
post-release

13 years agopre-release
Alasdair Kergon [Mon, 10 Jan 2011 14:28:17 +0000 (14:28 +0000)]
pre-release

13 years agoSpeedup consequent activation calls
Zdenek Kabelac [Mon, 10 Jan 2011 14:02:30 +0000 (14:02 +0000)]
Speedup consequent activation calls

Stop calling fs_unlock() from lv_de/activate().
Start using internal lvm fs cookie for dm_tree.
Stop directly calling dm_udev_wait() and
dm_tree_set/get_cookie() from activate code -
it's now called through fs_unlock() function.

Add lvm_do_fs_unlock()

Call fs_unlock() when unlocking vg where implicit unlock solves the
problem also for cluster - thus no extra command for clustering
environment is required - only lvm_do_fs_unlock() function is added
to call lvm's fs_unlock() while holding lvm_lock mutex in clvmd.

Add fs_unlock() also to set_lv() so the command waits until devices
are ready for regular open (i.e. wiping its begining).

Move fs_unlock() prototype to activation.h to keep fs.h private
in lib/activate dir and not expose other functions from this header.

13 years agoAdd internal fs cookie
Zdenek Kabelac [Mon, 10 Jan 2011 13:44:39 +0000 (13:44 +0000)]
Add internal fs cookie

Add functions for handling internal lvm cookie used for
all dm_tree operations until fs_unlock is called.

13 years agoDefine DM_COOKIE_AUTO_CREATE
Zdenek Kabelac [Mon, 10 Jan 2011 13:42:31 +0000 (13:42 +0000)]
Define DM_COOKIE_AUTO_CREATE

TODO: Use it also for already written code.

13 years agoUse strndup as GNU extension
Zdenek Kabelac [Mon, 10 Jan 2011 13:25:22 +0000 (13:25 +0000)]
Use strndup as GNU extension

strndup needs _GNU_SOURCE defined as it's GNU extension.
Remove duplicate string.h header added in previous harness commit.

13 years agoCache config_tree
Zdenek Kabelac [Mon, 10 Jan 2011 13:15:57 +0000 (13:15 +0000)]
Cache config_tree

Start to use config_tree for cache just like vgmetadata.
When vgmetadata are erased destroy its cached config tree.

13 years agoChange import_vg_from_buffer to use config_tree
Zdenek Kabelac [Mon, 10 Jan 2011 13:13:42 +0000 (13:13 +0000)]
Change import_vg_from_buffer to use config_tree

Change function import_vg_from_buffer() to import_vg_from_config_tree().
Instead of creating config tree inside the function allow config tree to
be passed as parameter - usable later for caching.

13 years agoAdd default error path for get_property
Zdenek Kabelac [Mon, 10 Jan 2011 13:07:58 +0000 (13:07 +0000)]
Add default error path for get_property

Set invalid property value for error path when NULL handler is passed.
Fixes use of uninitialized prop structure as we return 'v' by value.
---

13 years agoImprove OCF dir support
Zdenek Kabelac [Mon, 10 Jan 2011 13:00:53 +0000 (13:00 +0000)]
Improve OCF dir support

Add --with-ocfdir configurable option.
Fix superfluous /usr in ocf_scriptdir instalation path.

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

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