]> sourceware.org Git - lvm2.git/log
lvm2.git
13 years agoFix debug logging of derived flag LCK_CACHE in clvmd.
Alasdair Kergon [Mon, 6 Dec 2010 17:37:09 +0000 (17:37 +0000)]
Fix debug logging of derived flag LCK_CACHE in clvmd.

13 years agoCheck str_list_add() success
Zdenek Kabelac [Wed, 1 Dec 2010 13:05:06 +0000 (13:05 +0000)]
Check str_list_add() success

Report error if str_list_add fails.

13 years agoCheck lv_info() success
Zdenek Kabelac [Wed, 1 Dec 2010 13:01:36 +0000 (13:01 +0000)]
Check lv_info() success

Add log_error message for lv_info failure and exit from futher
processing.

Replace 'leg' occurence in debug message with 'image' which
is used in other messages.

13 years agoAdd backtraces for errors
Zdenek Kabelac [Wed, 1 Dec 2010 12:56:39 +0000 (12:56 +0000)]
Add backtraces for errors

Add stack;  backtraces when error is reported from dev_set() or
dev_close_immediate().

13 years agoLog error from unlink failure
Zdenek Kabelac [Wed, 1 Dec 2010 12:41:49 +0000 (12:41 +0000)]
Log error from unlink failure

13 years agoTest lv_name is not NULL
Zdenek Kabelac [Wed, 1 Dec 2010 12:22:49 +0000 (12:22 +0000)]
Test lv_name is not NULL

Patch adds extra check for lv_name not being NULL.
Test avoids unneeded strlen call for this case.
Otherwise there is no functional change as test would fail on
size_t comparation even for NULL lv_name (thus there is no risk
of NULL dereference when taking 'true' if branch.

13 years agoAdd logging for pipe write() and close() error
Zdenek Kabelac [Wed, 1 Dec 2010 10:46:20 +0000 (10:46 +0000)]
Add logging for pipe write() and close() error

Check values from write() and close() system calls.

FIXME: Missing wrapper around 'write()'.

13 years agoCheck result of vginfo_from_vgname
Zdenek Kabelac [Wed, 1 Dec 2010 10:39:28 +0000 (10:39 +0000)]
Check result of vginfo_from_vgname

Check for some potential internal error.

13 years agoOptimize second call to strchr with same parameters
Zdenek Kabelac [Wed, 1 Dec 2010 10:36:25 +0000 (10:36 +0000)]
Optimize second call to strchr with same parameters

Small optimalization - reusing already known strchr result.

13 years agoFallback to full rescan for missing device
Zdenek Kabelac [Wed, 1 Dec 2010 10:33:55 +0000 (10:33 +0000)]
Fallback to full rescan for missing device

Fix bug when NULL could have been passsed as 'data'
to _add_pv_to_list() if 'dev' is NULL.

Now it fallbacks to complete scan.

13 years agoWhat's new.
Petr Rockai [Tue, 30 Nov 2010 23:03:35 +0000 (23:03 +0000)]
What's new.

13 years agoRemove unneeded test for NULL
Zdenek Kabelac [Tue, 30 Nov 2010 22:57:35 +0000 (22:57 +0000)]
Remove unneeded test for NULL

Remove check for system_id (it is defined as int8_t[], so cannot be NULL).

13 years agoTest uuid for NULL
Zdenek Kabelac [Tue, 30 Nov 2010 22:53:37 +0000 (22:53 +0000)]
Test uuid for NULL

Add test for NULL before passing uuid as src argument to memcpy.
As memcpy function is declared as function not accepting NULL.
Though we pass NULL only with zero length so this patch presents
no functional change to the code.

13 years agoAdd stack trace for error path
Zdenek Kabelac [Tue, 30 Nov 2010 22:40:19 +0000 (22:40 +0000)]
Add stack trace for error path

If dm_task_set_cookie() fails print stack trace, but keep going on.

13 years agoAdd error path stack traces
Zdenek Kabelac [Tue, 30 Nov 2010 22:32:44 +0000 (22:32 +0000)]
Add error path stack traces

Check for errors from dm_task_set_name() and dm_task_run().
Add stack traces for error paths.
Return 0 if some error is found.

13 years agoRemove check for lv is NULL
Zdenek Kabelac [Tue, 30 Nov 2010 22:28:06 +0000 (22:28 +0000)]
Remove check for lv is NULL

'lv' is deferenced in the begining of the function so any check
later is not helpful.

Parameters for dev_manager_transien() are marked as nonnull.

13 years agoAdd missing test for failed pool allocation
Zdenek Kabelac [Tue, 30 Nov 2010 22:23:35 +0000 (22:23 +0000)]
Add missing test for failed pool allocation

Add test for NULL from dm_poll_create.
Reorder dm_pool_destroy() before file close and add label out:.
Avoid leaking file descriptor if the allocation fails.

13 years agoReplace snprintf with dm_snprintf
Zdenek Kabelac [Tue, 30 Nov 2010 22:16:25 +0000 (22:16 +0000)]
Replace snprintf with dm_snprintf

Use dm_snprintf with known error case return code (-1).

13 years agoCheck reallocated buffer for NULL before use
Zdenek Kabelac [Tue, 30 Nov 2010 22:11:26 +0000 (22:11 +0000)]
Check reallocated buffer for NULL before use

As *buf is reallocated in case CLVMD_CMD_TEST: test for NULL is needed
before printing status.
(realloc() == NULL and status != 0)

13 years agoRefactor the percent (mirror sync, snapshot usage) handling code to use
Petr Rockai [Tue, 30 Nov 2010 11:53:31 +0000 (11:53 +0000)]
Refactor the percent (mirror sync, snapshot usage) handling code to use
fixed-point values instead of a combination of a float value and an enum.

13 years agoFix a failing test (it used a combination of lvconvert parameters that is no
Petr Rockai [Tue, 30 Nov 2010 11:35:32 +0000 (11:35 +0000)]
Fix a failing test (it used a combination of lvconvert parameters that is no
longer permitted.)

13 years agoAvoid the automatic MISSING_PV recovery path in commands with special
Petr Rockai [Tue, 30 Nov 2010 11:15:54 +0000 (11:15 +0000)]
Avoid the automatic MISSING_PV recovery path in commands with special
MISSING_PV handling (cmd->handles_missing_pvs is set).

13 years agoFix memory leak when VG allocation policy in metadata is invalid.
Alasdair Kergon [Mon, 29 Nov 2010 18:35:37 +0000 (18:35 +0000)]
Fix memory leak when VG allocation policy in metadata is invalid.
Ignore unrecognised allocation policy found in metadata instead of aborting.
Fix another missing vg_release() in _vg_read_by_vgid.

13 years agoOptimize lookup table read
Zdenek Kabelac [Mon, 29 Nov 2010 14:25:13 +0000 (14:25 +0000)]
Optimize lookup table read

Reread lookup table only when needed.

13 years agoRemove dead assignment in wait_for_child
Zdenek Kabelac [Mon, 29 Nov 2010 12:44:52 +0000 (12:44 +0000)]
Remove dead assignment in wait_for_child

'pid' is not used anywhere - remove it.

13 years agoRemove dead assignment in _step_matcher
Zdenek Kabelac [Mon, 29 Nov 2010 12:43:49 +0000 (12:43 +0000)]
Remove dead assignment in _step_matcher

'ns' is not used after this assignment and it is reassigned with the following
code, so dropping this assignment.

13 years agoRemove dead assignment in _mirror_emit_segment_line
Zdenek Kabelac [Mon, 29 Nov 2010 12:42:10 +0000 (12:42 +0000)]
Remove dead assignment in _mirror_emit_segment_line

Remove unused 'r' assignment.

13 years agoFix memory leak in error path
Zdenek Kabelac [Mon, 29 Nov 2010 12:19:58 +0000 (12:19 +0000)]
Fix memory leak in error path

Nicely hidden memory leak in outf macro error path.
This macro is using out_text() and does automagical return_0.
That would leak tag_buffer allocated memory.

As there was same code for tags output - create _out_tags() function.

13 years agoUse one fprintf call for usage print
Zdenek Kabelac [Mon, 29 Nov 2010 12:15:41 +0000 (12:15 +0000)]
Use one fprintf call for usage print

Replace multiple fprintf calls with multiline one.

13 years agoRemove dead assignment in dm_tree_node_add_mirror_target_log
Zdenek Kabelac [Mon, 29 Nov 2010 11:26:00 +0000 (11:26 +0000)]
Remove dead assignment in dm_tree_node_add_mirror_target_log

'seg' is never used - remove it.

13 years agoRemove dead assignment in 'main'
Zdenek Kabelac [Mon, 29 Nov 2010 11:23:14 +0000 (11:23 +0000)]
Remove dead assignment in 'main'

'ret' is never read anywhere - remove it.

13 years agoRemove unused 'i' in _pv_analyze_mda_raw
Zdenek Kabelac [Mon, 29 Nov 2010 11:16:58 +0000 (11:16 +0000)]
Remove unused 'i' in _pv_analyze_mda_raw

'i' is unused in the function - remove it.

13 years agoRemove dead assignment in lvm2_main
Zdenek Kabelac [Mon, 29 Nov 2010 11:14:33 +0000 (11:14 +0000)]
Remove dead assignment in lvm2_main

'alias' is not read again in this code path.
Also 'alias' is already equal to 0 in this place.

13 years agoRemove dead assignment in _lock_for_cluster
Zdenek Kabelac [Mon, 29 Nov 2010 11:13:12 +0000 (11:13 +0000)]
Remove dead assignment in _lock_for_cluster

'saved_errno' is not read from this initialization and before its
usage is assigned again before _cluster_free_request() call.

13 years agoReset vg pointer after release
Zdenek Kabelac [Mon, 29 Nov 2010 11:08:14 +0000 (11:08 +0000)]
Reset vg pointer after release

Set vg to NULL after releasing it as the following memlock() test may
lead to goto for the second call of vg_release() with the already
released vg pointer.

13 years agoRemove printing of LCK_CACHE
Zdenek Kabelac [Mon, 29 Nov 2010 11:05:15 +0000 (11:05 +0000)]
Remove printing of LCK_CACHE

LCK_CACHE is defined as 0x100 so it cannot be passed through
unsigned char parameter - remove it from the sprintf code.

If the LCK_CLUSTER should be printed here - lot of code need
to be reworked - so adding FIXME comment.

13 years agoFix check for empty system_dir
Zdenek Kabelac [Mon, 29 Nov 2010 10:58:32 +0000 (10:58 +0000)]
Fix check for empty system_dir

Fixing check for zero length system_dir string.

13 years agoCleanup remove test for NULL
Zdenek Kabelac [Mon, 29 Nov 2010 10:11:50 +0000 (10:11 +0000)]
Cleanup remove test for NULL

dm_free is testing NULL itself

13 years agoFix "it's" typo to be "its" in lvconvert error message.
Mike Snitzer [Sun, 28 Nov 2010 18:37:33 +0000 (18:37 +0000)]
Fix "it's" typo to be "its" in lvconvert error message.

13 years agoUpdate WHATS_NEW.
Petr Rockai [Thu, 25 Nov 2010 17:16:41 +0000 (17:16 +0000)]
Update WHATS_NEW.

13 years agoDisallow certain lvconvert operations that need to both allocate and free
Petr Rockai [Thu, 25 Nov 2010 17:15:46 +0000 (17:15 +0000)]
Disallow certain lvconvert operations that need to both allocate and free
extents, while physical volumes are specified. Fixes BZ 640051.

13 years agoAll 'size' values of lvm2app properties should be in bytes.
Petr Rockai [Thu, 25 Nov 2010 14:39:02 +0000 (14:39 +0000)]
All 'size' values of lvm2app properties should be in bytes.
Fix 'seg_size' to return bytes.

Signed-off-by: Dave Wysochanski <wysochanski@pobox.com>
Reviewed-by: Petr Rockai <prockai@redhat.com>
13 years agoAdd interactive tests for functions to lookup a pv|lv by name|uuid.
Petr Rockai [Thu, 25 Nov 2010 14:35:46 +0000 (14:35 +0000)]
Add interactive tests for functions to lookup a pv|lv by name|uuid.

Signed-off-by: Dave Wysochanski <wysochanski@pobox.com>
Reviewed-by: Petr Rockai <prockai@redhat.com>
13 years agoThis patch adds helpers to allow users to lookup a lv or pv handle by
Petr Rockai [Thu, 25 Nov 2010 14:34:51 +0000 (14:34 +0000)]
This patch adds helpers to allow users to lookup a lv or pv handle by
uuid (given a vg_t of course).

Signed-off-by: Dave Wysochanski <wysochanski@pobox.com>
Reviewed-by: Petr Rockai <prockai@redhat.com>
13 years agoThis patch adds helpers to allow users to lookup a lv or pv handle by
Petr Rockai [Thu, 25 Nov 2010 14:33:44 +0000 (14:33 +0000)]
This patch adds helpers to allow users to lookup a lv or pv handle by
name (given a vg_t of course).

Signed-off-by: Dave Wysochanski <wysochanski@pobox.com>
Reviewed-by: Petr Rockai <prockai@redhat.com>
13 years agoAdd missing destrustion of cmd_context
Zdenek Kabelac [Wed, 24 Nov 2010 09:53:31 +0000 (09:53 +0000)]
Add missing destrustion of cmd_context

Lvm1 fallback code missed to destroy cmd_context in error path.

13 years agoFix memory leak in error path
Zdenek Kabelac [Wed, 24 Nov 2010 09:43:18 +0000 (09:43 +0000)]
Fix memory leak in error path

Release allocated path buffer in error path.

13 years agoFix resource leak of dlopened pointer
Zdenek Kabelac [Wed, 24 Nov 2010 09:34:34 +0000 (09:34 +0000)]
Fix resource leak of dlopened pointer

Add missing dlclose in _init_formats() error path.
Use return_0 to print stack trace from the call.

13 years agoAdd missing fclose
Zdenek Kabelac [Tue, 23 Nov 2010 21:19:45 +0000 (21:19 +0000)]
Add missing fclose

Fixing resource leak in _umount().

CHECKME: mountpoints with spaces need to be checked

13 years agoMove arg_vgnames from local scope
Zdenek Kabelac [Tue, 23 Nov 2010 20:39:13 +0000 (20:39 +0000)]
Move arg_vgnames from local scope

As gcc puts probably all vars on stack this bug was not noticed in runtime.
Patch fixes referencing local scope list variable.

13 years agoDo not call dm_task_destroy with NULL
Zdenek Kabelac [Tue, 23 Nov 2010 18:29:06 +0000 (18:29 +0000)]
Do not call dm_task_destroy with NULL

13 years agoAdd missing closedir() - fixes resource leak
Zdenek Kabelac [Tue, 23 Nov 2010 15:28:54 +0000 (15:28 +0000)]
Add missing  closedir() - fixes resource leak

13 years agoMove va_end() so it is also used before error path return
Zdenek Kabelac [Tue, 23 Nov 2010 15:08:57 +0000 (15:08 +0000)]
Move va_end() so it is also used before error path  return

13 years agoMove va_end(ap) so we do not leave with return -1 without calling it.
Zdenek Kabelac [Tue, 23 Nov 2010 15:00:52 +0000 (15:00 +0000)]
Move va_end(ap)  so we do not leave with return -1 without calling it.
Remove unneeded ';'

13 years agoSuppress 'No PV label' message when removing several PVs without mdas.
Alasdair Kergon [Tue, 23 Nov 2010 01:55:53 +0000 (01:55 +0000)]
Suppress 'No PV label' message when removing several PVs without mdas.

13 years agoFix default /etc/lvm permissions to be 0755. (2.02.66)
Alasdair Kergon [Mon, 22 Nov 2010 21:39:47 +0000 (21:39 +0000)]
Fix default /etc/lvm permissions to be 0755. (2.02.66)

13 years agopost-release
Alasdair Kergon [Mon, 22 Nov 2010 18:37:56 +0000 (18:37 +0000)]
post-release

13 years agopre-release
Alasdair Kergon [Mon, 22 Nov 2010 14:25:22 +0000 (14:25 +0000)]
pre-release

13 years agoFix _output_field crash from field_id free with DEBUG_MEM. (Phillip Susi)
Alasdair Kergon [Fri, 19 Nov 2010 13:17:27 +0000 (13:17 +0000)]
Fix _output_field crash from field_id free with DEBUG_MEM. (Phillip Susi)

13 years agoThe _free_vg that is created as a placeholder when reporting segments in pvs
Petr Rockai [Wed, 17 Nov 2010 22:26:42 +0000 (22:26 +0000)]
The _free_vg that is created as a placeholder when reporting segments in pvs
was lacking the (vgmem) pool. We now create that pool. There is at least one
more such VG (_dummy_vg) which is pool-less. I am not sure what is the right
way to go about this, but this is currently necessary to fix a segfault
introduced by using vgmem in the reporter in Dave's lvseg lvm2app patches.

Signed-off-by: Petr Rockai <prockai@redhat.com>
13 years agoUpdate interactive tests for lvm2app lvseg and pvseg apis.
Petr Rockai [Wed, 17 Nov 2010 20:13:51 +0000 (20:13 +0000)]
Update interactive tests for lvm2app lvseg and pvseg apis.

Signed-off-by: Dave Wysochanski <wysochanski@pobox.com>
Reviewed-by: Petr Rockai <prockai@redhat.com>
13 years agoAdd lvm2app function to query pvseg properties.
Petr Rockai [Wed, 17 Nov 2010 20:12:39 +0000 (20:12 +0000)]
Add lvm2app function to query pvseg properties.

Signed-off-by: Dave Wysochanski <wysochanski@pobox.com>
Reviewed-by: Petr Rockai <prockai@redhat.com>
13 years agoAdd the macro and specific 'get' functions for pvsegs.
Petr Rockai [Wed, 17 Nov 2010 20:11:27 +0000 (20:11 +0000)]
Add the macro and specific 'get' functions for pvsegs.

Signed-off-by: Dave Wysochanski <wysochanski@pobox.com>
Reviewed-by: Petr Rockai <prockai@redhat.com>
13 years agoAdd a new type and function to lvm2app to enumerate pvsegs.
Petr Rockai [Wed, 17 Nov 2010 20:10:42 +0000 (20:10 +0000)]
Add a new type and function to lvm2app to enumerate pvsegs.

Signed-off-by: Dave Wysochanski <wysochanski@pobox.com>
Reviewed-by: Petr Rockai <prockai@redhat.com>
13 years agoAdd lvm2app function to query lvseg properties.
Petr Rockai [Wed, 17 Nov 2010 20:09:42 +0000 (20:09 +0000)]
Add lvm2app function to query lvseg properties.

Signed-off-by: Dave Wysochanski <wysochanski@pobox.com>
Reviewed-by: Petr Rockai <prockai@redhat.com>
13 years agoAdd the macro and specific 'get' functions for lvsegs.
Petr Rockai [Wed, 17 Nov 2010 20:08:14 +0000 (20:08 +0000)]
Add the macro and specific 'get' functions for lvsegs.

Signed-off-by: Dave Wysochanski <wysochanski@pobox.com>
Reviewed-by: Petr Rockai <prockai@redhat.com>
13 years agoAdd a new type and function to lvm2app to enumerate lvsegs.
Petr Rockai [Wed, 17 Nov 2010 20:07:01 +0000 (20:07 +0000)]
Add a new type and function to lvm2app to enumerate lvsegs.

Signed-off-by: Dave Wysochanski <wysochanski@pobox.com>
Reviewed-by: Petr Rockai <prockai@redhat.com>
13 years agoMake value.string const char *, in properties.h, to fix a warning introduced by
Petr Rockai [Wed, 17 Nov 2010 19:50:15 +0000 (19:50 +0000)]
Make value.string const char *, in properties.h, to fix a warning introduced by
the previous patch set.

13 years agoAdd vg_set_property to the interactive lvm2app test program.
Petr Rockai [Wed, 17 Nov 2010 19:17:07 +0000 (19:17 +0000)]
Add vg_set_property to the interactive lvm2app test program.

Signed-off-by: Dave Wysochanski <wysochanski@pobox.com>
Reviewed-by: Petr Rockai <prockai@redhat.com>
13 years agoImplement lvm_vg_set_property() by calling internal 'set' property function.
Petr Rockai [Wed, 17 Nov 2010 19:16:05 +0000 (19:16 +0000)]
Implement lvm_vg_set_property() by calling internal 'set' property function.

Signed-off-by: Dave Wysochanski <wysochanski@pobox.com>
Reviewed-by: Petr Rockai <prockai@redhat.com>
13 years agoAdd generic infrastructure to internal library to 'set' a property.
Petr Rockai [Wed, 17 Nov 2010 19:15:10 +0000 (19:15 +0000)]
Add generic infrastructure to internal library to 'set' a property.
Similar to 'get' property internal functions.
Add specific 'set' function for vg_mda_copies.

Signed-off-by: Dave Wysochanski <wysochanski@pobox.com>
Reviewed-by: Petr Rockai <prockai@redhat.com>
13 years agoRemove tag length restriction and allow / = ! : # & characters.
Alasdair Kergon [Wed, 17 Nov 2010 10:19:29 +0000 (10:19 +0000)]
Remove tag length restriction and allow / = ! : # & characters.

13 years agoWHATS_NEW FIXME
Peter Rajnoha [Fri, 12 Nov 2010 16:04:52 +0000 (16:04 +0000)]
WHATS_NEW FIXME

13 years agoSupport repetition of --addtag and --deltag arguments.
Alasdair Kergon [Thu, 11 Nov 2010 17:29:05 +0000 (17:29 +0000)]
Support repetition of --addtag and --deltag arguments.
Add infrastructure for specific cmdline arguments to be repeated in groups.
Split the_args cmdline arguments and values into arg_props and arg_values.

13 years agoPreserve const for char pointer
Zdenek Kabelac [Thu, 11 Nov 2010 12:32:33 +0000 (12:32 +0000)]
Preserve const for char pointer

Keep char pointers 'const'  (introduced with cling commit).

13 years agoAdd date configurable variable DATE
Zdenek Kabelac [Thu, 11 Nov 2010 12:17:15 +0000 (12:17 +0000)]
Add date configurable variable DATE

Follow the rule to run every command through variable dereference.
Add a runtime check of translated date to seconds.

13 years agofsadm fix for downsize of unmounted fs
Zdenek Kabelac [Wed, 10 Nov 2010 16:14:02 +0000 (16:14 +0000)]
fsadm fix for downsize of unmounted fs

Fix for the last commit as $MOUNTED is not only used as bool flag,
but also store mounted location for remount - so parsing output
from mount differently then from /proc/mounts.

Prefix calls of 'tunefs' tools with LANG=C to be sure we always do get
some nonlocalized strings.

Avoid using forced 'resize2fs' for cleanly unmounted filesystems and
run regular fsck -f for this case as required by resize2fs.

'fsadm check' uses date difference for extX filesystems between
the last mount and last check of 'fsck -f' execution and if the mount
was later run 'fsck' with -f so resize2fs is happy and user does not
need to pass '-f' flag.

13 years agoUpdate fsadm regresion
Zdenek Kabelac [Wed, 10 Nov 2010 10:05:27 +0000 (10:05 +0000)]
Update fsadm regresion

13 years agoScan also 'mount' output for mounted filesystem.
Zdenek Kabelac [Wed, 10 Nov 2010 10:03:07 +0000 (10:03 +0000)]
Scan also 'mount' output for mounted filesystem.

As util-linux package seems to give all the time different names,
try harder to figure out, where is the given lv possible mounted
and scan /proc/mounts and if not found there, test also 'mount' output.

/dev/dm-xxx
/dev/mapper/vg-lv
/dev/vg/lv

All of them could be used different combination in /proc/mount and mount output.

Patch fixes regression for older systems where new detection code failed to
find valid combination.

13 years agoExtend cling allocation policy to recognise PV tags (cling_by_tags).
Alasdair Kergon [Tue, 9 Nov 2010 12:34:40 +0000 (12:34 +0000)]
Extend cling allocation policy to recognise PV tags (cling_by_tags).
Add allocation/cling_tag_list to lvm.conf.

13 years agoRegenerate configure with 'autoreconf' for --enable-ocf. (2.02.76)
Alasdair Kergon [Tue, 9 Nov 2010 11:15:34 +0000 (11:15 +0000)]
Regenerate configure with 'autoreconf' for --enable-ocf. (2.02.76)

13 years agoforgotten to regenerate last time configure.in was updated
Alasdair Kergon [Tue, 9 Nov 2010 11:14:06 +0000 (11:14 +0000)]
forgotten to regenerate last time configure.in was updated

13 years agopost-release
Alasdair Kergon [Tue, 9 Nov 2010 02:58:06 +0000 (02:58 +0000)]
post-release

13 years agopre-release
Alasdair Kergon [Mon, 8 Nov 2010 19:37:40 +0000 (19:37 +0000)]
pre-release

13 years agoFix include commit and switch to use DISTCLEAN_TARGETS
Zdenek Kabelac [Mon, 8 Nov 2010 14:19:48 +0000 (14:19 +0000)]
Fix include commit and switch to use DISTCLEAN_TARGETS

Fixing warning introduced by 'include make.tmpl' commit.
Produced this warning:

Makefile:29: warning: overriding commands for target `distclean'
../make.tmpl:366: warning: ignoring old commands for target `distclean'

13 years agoClarify error messages when activation fails due to activation filter use.
Peter Rajnoha [Fri, 5 Nov 2010 18:18:11 +0000 (18:18 +0000)]
Clarify error messages when activation fails due to activation filter use.

13 years agoAdd OCF support
Zdenek Kabelac [Fri, 5 Nov 2010 16:18:38 +0000 (16:18 +0000)]
Add OCF support

Updated patch from Florian Haas from Linux-HA project.

User needs to 'configure --enable-ocf' to get file installed
by 'make install' target by default.
User can also use 'make install_ocf' to get only ocf files installed.
With disabled (default) ocf support - no ocf files are installed.

FIXME: ocf installation path needs to be kept in sync with pacemaker.
find better way and possible also better location.

13 years agoAdd given user prefix to make target install_initscripts
Zdenek Kabelac [Fri, 5 Nov 2010 16:13:18 +0000 (16:13 +0000)]
Add given user prefix to make target install_initscripts

Avoid files to be written into the live system if lvm was
configured with different --prefix.

Use initdir for install target path.

13 years agoUse include make.tmpl
Zdenek Kabelac [Fri, 5 Nov 2010 16:10:08 +0000 (16:10 +0000)]
Use include make.tmpl

Makes easier to use recursive targets and simplifies Makefile.

13 years agolost line
Alasdair Kergon [Tue, 2 Nov 2010 20:10:35 +0000 (20:10 +0000)]
lost line

13 years agoFix regex optimiser not to ignore RHS of OR nodes in _find_leftmost_common.
Alasdair Kergon [Tue, 2 Nov 2010 19:56:33 +0000 (19:56 +0000)]
Fix regex optimiser not to ignore RHS of OR nodes in _find_leftmost_common.

13 years agoUse new status code from fsadm check
Zdenek Kabelac [Mon, 1 Nov 2010 14:17:35 +0000 (14:17 +0000)]
Use new status code from fsadm check

Patch updates exec_cmd() and adds 3rd parameter with pointer for
status value, so caller might examine returned status code.
If the passed pointer is NULL, behavior is unmodified.

Patch allows to confinue with lvresize if the failure from fsadm check is
caused by mounted filesystem as many of filesystem resize tools do support
online filesystem resize. (originally user had to use flag '-n' to bypass
this filesystem check)

13 years agoAdd DIAGNOSTICS section to fsadm man page.
Zdenek Kabelac [Mon, 1 Nov 2010 14:10:46 +0000 (14:10 +0000)]
Add DIAGNOSTICS section to fsadm man page.

13 years agoReturn different status code for fsadm check of mounted filesystem
Zdenek Kabelac [Mon, 1 Nov 2010 14:08:51 +0000 (14:08 +0000)]
Return different status code for fsadm check of mounted filesystem

Return status code 3 for fsadm check of mounted filesystem - used later with
lvresize update patch to better support online filesystem resize.

Also makes a more consistent user interruption and returns status code 2
in this case.

13 years agoUse dm_strdup/dm_free instead of strdup/free.
Peter Rajnoha [Mon, 1 Nov 2010 13:50:51 +0000 (13:50 +0000)]
Use dm_strdup/dm_free instead of strdup/free.

13 years agoAllocate buffer for reporting functions dynamically to support long outputs.
Peter Rajnoha [Mon, 1 Nov 2010 13:31:55 +0000 (13:31 +0000)]
Allocate buffer for reporting functions dynamically to support long outputs.
Fix memory leak of field_id in _output_field function.

There's been a patch added recently to use dynamic allocation for metadata
tags buffer to remove the 4k limit (for writing metadata out). However, when
using reporting commands like vgs and lvs, we still need to fix libdm reporting
functions themselves to support such long outputs. So the buffer used in those
reporting functions is dynamic now.

The patch also includes a fix for field_id memory leak which was found in
the _output_field function.

13 years agoUpdate VG metadata only once in vgchange when making multiple changes.
Alasdair Kergon [Fri, 29 Oct 2010 21:15:23 +0000 (21:15 +0000)]
Update VG metadata only once in vgchange when making multiple changes.
Allow independent vgchange arguments to be used together.
(Still more inconsistencies to iron out here.)

13 years agoUpdate WHATS_NEW.
Petr Rockai [Fri, 29 Oct 2010 16:44:47 +0000 (16:44 +0000)]
Update WHATS_NEW.

13 years agoAdd code to the dmeventd snapshot plugin to automatically unmount snapshots
Petr Rockai [Fri, 29 Oct 2010 16:43:51 +0000 (16:43 +0000)]
Add code to the dmeventd snapshot plugin to automatically unmount snapshots
that have been invalidated.

13 years agoAlasdair correctly pointed out that if the two closes are concurrent (I haven't
Petr Rockai [Wed, 27 Oct 2010 11:40:14 +0000 (11:40 +0000)]
Alasdair correctly pointed out that if the two closes are concurrent (I haven't
checked, so they *might*), there is still a race possibility with the last
fix. This patch fixes that.

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