]> sourceware.org Git - lvm2.git/log
lvm2.git
12 years agopost-release
Alasdair Kergon [Sat, 3 Mar 2012 02:08:37 +0000 (02:08 +0000)]
post-release

12 years ago.
Alasdair Kergon [Sat, 3 Mar 2012 01:28:15 +0000 (01:28 +0000)]
.

12 years agopre-release
Alasdair Kergon [Sat, 3 Mar 2012 01:00:49 +0000 (01:00 +0000)]
pre-release

12 years agoCode refactoring
Zdenek Kabelac [Fri, 2 Mar 2012 23:01:10 +0000 (23:01 +0000)]
Code refactoring

Properly test for dm_asprintf result.
Keep unlocking of mutex in the same function and do not spread lock and
unlock over functions.

12 years agoJust space moving
Zdenek Kabelac [Fri, 2 Mar 2012 22:58:23 +0000 (22:58 +0000)]
Just space moving

Don't leave space on EOL.

12 years agoList _thread_registry missed mutex
Zdenek Kabelac [Fri, 2 Mar 2012 22:57:25 +0000 (22:57 +0000)]
List _thread_registry missed mutex

Operation on _thread_registry needs to be covered by mutex.
Cosmetic move a die code after free for valgind short leak list.

12 years agoa fixme
Alasdair Kergon [Fri, 2 Mar 2012 22:44:31 +0000 (22:44 +0000)]
a fixme

12 years agoSupport 16GB for thin pool metadata
Zdenek Kabelac [Fri, 2 Mar 2012 21:53:17 +0000 (21:53 +0000)]
Support 16GB for thin pool metadata

Add some hack math to allow 16GB devices to be passed as thinpool metadata.
Since kernel has put in limit to not allow which are just bigger then
some predefined constant in kernel but not matching 16GB so any device bigger
is rejected.

FIXME: Current code still might need more tweaks to be more generic.

12 years agofix non-lvmetad pvscan macro
Alasdair Kergon [Fri, 2 Mar 2012 21:50:02 +0000 (21:50 +0000)]
fix non-lvmetad pvscan macro

12 years agoAdd support for thin check
Zdenek Kabelac [Fri, 2 Mar 2012 21:49:43 +0000 (21:49 +0000)]
Add support for thin check

Use libdm callback to execute thin_check before activation
thin pool and after deactivation as well.

Supporting thin_check_executable which may pass in extra options for
the tool.

12 years agoPurge remaining trim bits from code
Zdenek Kabelac [Fri, 2 Mar 2012 21:43:26 +0000 (21:43 +0000)]
Purge remaining trim bits from code

12 years agomissing reply frees
Alasdair Kergon [Fri, 2 Mar 2012 21:24:37 +0000 (21:24 +0000)]
missing reply frees

12 years agoPass struct device around internally rather than dev_t.
Alasdair Kergon [Fri, 2 Mar 2012 20:46:36 +0000 (20:46 +0000)]
Pass struct device around internally rather than dev_t.
Add 3rd daemon return state "unknown" for lookups that are carried out
successfully but don't find the item requested.
Avoid issuing error messages when it's expected that a device that's
being looked up in lvmetad might not be there.

12 years agoMerge metadata size checking
Zdenek Kabelac [Fri, 2 Mar 2012 20:18:25 +0000 (20:18 +0000)]
Merge metadata size checking

Move the code for poolmetadatasize operation into one place.
Report override for minimum and maximum size.
Drop _read_thin_params function its error reporting is handled elsewhere.

12 years agoChange pvscan --lvmetad to pvscan --cache.
Alasdair Kergon [Fri, 2 Mar 2012 18:09:46 +0000 (18:09 +0000)]
Change pvscan --lvmetad to pvscan --cache.

12 years agoAdded dm_tree_node_set_callback() for preload and deactivation hooks
Zdenek Kabelac [Fri, 2 Mar 2012 17:31:21 +0000 (17:31 +0000)]
Added dm_tree_node_set_callback() for preload and deactivation hooks

Run users hook after preload for the node is finished,
or after the node has been deactivated.

12 years agoFix estimation of pool metadata device size
Zdenek Kabelac [Fri, 2 Mar 2012 17:25:21 +0000 (17:25 +0000)]
Fix estimation of pool metadata device size

If no size was give the later added minimal size check efectively
disable this code. Also the argument for size now must be kept
in sector_size, so adding division by SECTOR_SIZE (moved into
a const expression)

12 years agoAllow multiple device names with pvscan --lvmetad.
Alasdair Kergon [Fri, 2 Mar 2012 16:58:41 +0000 (16:58 +0000)]
Allow multiple device names with pvscan --lvmetad.
Hold global lock in pvscan --lvmetad.  (This might need refinement.)
Add PV name to "PV gone" messages.
Adjust some log message severities.  (More changes needed.)

12 years agoRemove support for TRIM message
Zdenek Kabelac [Fri, 2 Mar 2012 13:26:08 +0000 (13:26 +0000)]
Remove support for TRIM message

It's been unsupporte for now - and it's not going to be
implemented for thin pool kernel driver - so dropping
appearence of TRIM from libdm and lvm.

12 years agoReinstate error if e.g. daemon comms fails.
Alasdair Kergon [Fri, 2 Mar 2012 02:55:45 +0000 (02:55 +0000)]
Reinstate error if e.g. daemon comms fails.

12 years agoWait for mirror in sync
Zdenek Kabelac [Fri, 2 Mar 2012 00:08:48 +0000 (00:08 +0000)]
Wait for mirror in sync

1s could be too short

12 years agoCheck for error from dup2
Zdenek Kabelac [Thu, 1 Mar 2012 23:20:45 +0000 (23:20 +0000)]
Check for error from dup2

Do not take correct fd as error result.

12 years agoAdd traceback for failpath
Zdenek Kabelac [Thu, 1 Mar 2012 22:55:21 +0000 (22:55 +0000)]
Add traceback for failpath

12 years agoSkip zero length messages
Zdenek Kabelac [Thu, 1 Mar 2012 22:54:17 +0000 (22:54 +0000)]
Skip zero length messages

In case of zero length message, there would be a memory leak on
return path from _do_process_request.

12 years agoCheck allocated pointers
Zdenek Kabelac [Thu, 1 Mar 2012 22:52:59 +0000 (22:52 +0000)]
Check allocated pointers

Test pointers from allocation against NULL.
Error paths should be checked, some of them probably need
some extesions.

12 years agoImprove logging
Zdenek Kabelac [Thu, 1 Mar 2012 22:06:18 +0000 (22:06 +0000)]
Improve logging

Use %m for strerror.
Switch to use 0 for fail return code.

12 years agoCheck pointer before deref in debug message
Zdenek Kabelac [Thu, 1 Mar 2012 21:58:55 +0000 (21:58 +0000)]
Check pointer before deref in debug message

12 years agoExplicitely ignore fail from this label_read
Zdenek Kabelac [Thu, 1 Mar 2012 21:57:43 +0000 (21:57 +0000)]
Explicitely ignore fail from this label_read

12 years agoAdd some more pointer validation
Zdenek Kabelac [Thu, 1 Mar 2012 21:56:44 +0000 (21:56 +0000)]
Add some more pointer validation

Ensure _display_name() and _add_dep() would not deref NULL names.
Switch to use internal dm_basename().

12 years agoTest alloc fail
Zdenek Kabelac [Thu, 1 Mar 2012 21:49:32 +0000 (21:49 +0000)]
Test alloc fail

12 years agoReplace goto with just log_debug
Zdenek Kabelac [Thu, 1 Mar 2012 21:46:31 +0000 (21:46 +0000)]
Replace goto with just log_debug

FIXME: temporal quick hack to make things green
There might be a better reaction.

12 years agoCheck for alloc error
Zdenek Kabelac [Thu, 1 Mar 2012 21:21:54 +0000 (21:21 +0000)]
Check for alloc error

Simplify segtype_str usage and check for NULL segtype.

12 years agoLog sys error for lseek
Zdenek Kabelac [Thu, 1 Mar 2012 21:19:20 +0000 (21:19 +0000)]
Log sys error for lseek

12 years agoDebug log for hold_lock failure
Zdenek Kabelac [Thu, 1 Mar 2012 21:18:38 +0000 (21:18 +0000)]
Debug log for hold_lock failure

12 years agoLog sys errors
Zdenek Kabelac [Thu, 1 Mar 2012 21:17:29 +0000 (21:17 +0000)]
Log sys errors

12 years agoBacktrace for failing drop_cached_metadata
Zdenek Kabelac [Thu, 1 Mar 2012 21:16:44 +0000 (21:16 +0000)]
Backtrace for failing drop_cached_metadata

12 years agoCheck for udev_get_dev_dir result
Zdenek Kabelac [Thu, 1 Mar 2012 21:16:05 +0000 (21:16 +0000)]
Check for udev_get_dev_dir result

Don't use NULL return value.

12 years agoCorrect enum type
Zdenek Kabelac [Thu, 1 Mar 2012 21:14:43 +0000 (21:14 +0000)]
Correct enum type

Using debug_t and some forgetten alloc_policy_t, force_t from past commit.

12 years agoFew more close and dev_close trace
Zdenek Kabelac [Thu, 1 Mar 2012 21:12:37 +0000 (21:12 +0000)]
Few more close and dev_close trace

Adding (void) where we cannot really report an error.

12 years agoUse 64 bit integers for device size & label sector in _pv_populate_lvmcache in
Petr Rockai [Thu, 1 Mar 2012 20:04:44 +0000 (20:04 +0000)]
Use 64 bit integers for device size & label sector in _pv_populate_lvmcache in
lvmetad client code. Fixes RHBZ 798267.

12 years agoAdd a regression test for the PSize bug in pvs/lvmetad.
Petr Rockai [Thu, 1 Mar 2012 20:03:45 +0000 (20:03 +0000)]
Add a regression test for the PSize bug in pvs/lvmetad.

12 years agoUse 64 bit integers whenever extracting numbers from daemon replies.
Petr Rockai [Thu, 1 Mar 2012 19:54:53 +0000 (19:54 +0000)]
Use 64 bit integers whenever extracting numbers from daemon replies.

12 years agos/CPG_/CS_: Various CPG constants are going away, even though CPG itself stays
Jonathan Earl Brassow [Thu, 1 Mar 2012 17:41:39 +0000 (17:41 +0000)]
s/CPG_/CS_: Various CPG constants are going away, even though CPG itself stays

F17 is getting rid of OpenAIS libraries (and checkpointing).  While the
CPG stuff is staying, some if its constants are being removed.  So, we
must adjust and use the remaining constants which the CPG constants were based on.

[~]# egrep 'CPG_DISPATCH_ALL|CPG_OK' /usr/include/*/*
corosync/corotypes.h:#define CPG_DISPATCH_ALL     CS_DISPATCH_ALL
corosync/corotypes.h:#define CPG_OK               CS_OK

12 years agoMissed ;
Zdenek Kabelac [Thu, 1 Mar 2012 10:46:39 +0000 (10:46 +0000)]
Missed ;

12 years agoMore useful debug message
Zdenek Kabelac [Thu, 1 Mar 2012 10:41:48 +0000 (10:41 +0000)]
More useful debug message

12 years agoAdd _rimage as reserved suffix
Zdenek Kabelac [Thu, 1 Mar 2012 10:39:21 +0000 (10:39 +0000)]
Add _rimage as reserved suffix

12 years agoAdd cast for ptrdiff_t - cleanup gcc warning
Zdenek Kabelac [Thu, 1 Mar 2012 10:31:35 +0000 (10:31 +0000)]
Add cast for ptrdiff_t - cleanup gcc warning

12 years agoImprove error logging
Zdenek Kabelac [Thu, 1 Mar 2012 10:30:48 +0000 (10:30 +0000)]
Improve error logging

Log errors instead of plain return 0.
Check for f->private strdup result.

12 years agoAdd stack trace for lv_reduce
Zdenek Kabelac [Thu, 1 Mar 2012 10:09:36 +0000 (10:09 +0000)]
Add stack trace for lv_reduce

Use common code call with stack trace.

TODO: maybe the release_lv_segment_area()
should be actually able to return error code to upper level.

12 years agoCheck for version string buffer
Zdenek Kabelac [Thu, 1 Mar 2012 10:07:38 +0000 (10:07 +0000)]
Check for version string buffer

Since lvm seems to call driver_version(NULL, 0)  this would lead
to crash. Though the combination of the code is probably very hard to hit.
If the user doesn't supply version buffer, just skip printing to buffer.

12 years agoCheck for allocation error
Zdenek Kabelac [Thu, 1 Mar 2012 09:54:23 +0000 (09:54 +0000)]
Check for allocation error

return ENOMEM when malloc fails.

12 years agoLog fail of pthread_join
Zdenek Kabelac [Thu, 1 Mar 2012 09:50:04 +0000 (09:50 +0000)]
Log fail of pthread_join

Syslog error outside of mutex section.

12 years agoFix leak of FID structure
Zdenek Kabelac [Thu, 1 Mar 2012 09:46:38 +0000 (09:46 +0000)]
Fix leak of FID structure

12 years agoWipe initial 4KiB for non-zeroed thin volumes
Zdenek Kabelac [Wed, 29 Feb 2012 22:08:57 +0000 (22:08 +0000)]
Wipe initial 4KiB for non-zeroed thin volumes

If the thin pool has disabled zeroing  (created with -Zn), we at least
clear initial 4KiB of such thin volume (provisions 1st block).

If lvcreate is executed with '-an' command will abort (same way like we for
normal LV - however for normal LV option -Zn may skip clearing completely,
for thin volumes this option is not supported (applies only for pools).

12 years agoAllow cluster mirrors to handle the absence of the checkpoint lib (libSaCkpt).
Jonathan Earl Brassow [Wed, 29 Feb 2012 21:15:34 +0000 (21:15 +0000)]
Allow cluster mirrors to handle the absence of the checkpoint lib (libSaCkpt).

The OpenAIS checkpoint library is going away; therefore, cmirrord must
operate without it.  The algorithms the handle the timing of when to send
a checkpoint, the determination of what to send, and which ongoing cluster
requests are relevent with respect to the checkpoints are unaffected.  We
need only replace the functions that actually perform the storing/transmitting
and retrieving/receiving of the checkpoint data.  Rather than store the
checkpoint data in an OpenAIS checkpoint file, we simply transmit it along
with the message that notifies the incoming node that the checkpoint is
ready.

12 years agoPass 'single_device' parameter down to suppress 'Can't find uuid' messages
Alasdair Kergon [Wed, 29 Feb 2012 02:35:35 +0000 (02:35 +0000)]
Pass 'single_device' parameter down to suppress 'Can't find uuid' messages
when reading VG text metadate and called from pvscan --lvmetad.

(Longer-term, that check needs moving outside of that code.)

12 years agoFix a whitespace bug in the last checkin.
Petr Rockai [Wed, 29 Feb 2012 00:19:14 +0000 (00:19 +0000)]
Fix a whitespace bug in the last checkin.

12 years agoAttempt a fix for lvm shell accumulating copies of orphan PVs with each "pvs"
Petr Rockai [Wed, 29 Feb 2012 00:18:27 +0000 (00:18 +0000)]
Attempt a fix for lvm shell accumulating copies of orphan PVs with each "pvs"
invocation.

12 years agoexpose new include files to build
Alasdair Kergon [Tue, 28 Feb 2012 18:35:32 +0000 (18:35 +0000)]
expose new include files to build

12 years agoReflect new file locations, include file updates etc.
Alasdair Kergon [Tue, 28 Feb 2012 18:35:04 +0000 (18:35 +0000)]
Reflect new file locations, include file updates etc.

12 years agoremove old makefile
Alasdair Kergon [Tue, 28 Feb 2012 18:31:28 +0000 (18:31 +0000)]
remove old makefile

12 years agomove daemon files
Alasdair Kergon [Tue, 28 Feb 2012 18:30:39 +0000 (18:30 +0000)]
move daemon files

12 years agonew makefiles
Alasdair Kergon [Tue, 28 Feb 2012 18:26:40 +0000 (18:26 +0000)]
new makefiles

12 years agoSeries of commits to move daemon code into separate top-level dir and
Alasdair Kergon [Tue, 28 Feb 2012 18:25:48 +0000 (18:25 +0000)]
Series of commits to move daemon code into separate top-level dir and
fix build deps etc.

12 years agoInvert some return codes (which used to get ignored anyway) in cases when
Alasdair Kergon [Tue, 28 Feb 2012 18:23:56 +0000 (18:23 +0000)]
Invert some return codes (which used to get ignored anyway) in cases when
lvmetad is not being used.

12 years agoBypass lvmetad fns when not configured to use lvmetad.
Alasdair Kergon [Tue, 28 Feb 2012 18:22:52 +0000 (18:22 +0000)]
Bypass lvmetad fns when not configured to use lvmetad.

12 years agoAdd LVMETAD_SUPPORT
Alasdair Kergon [Tue, 28 Feb 2012 18:20:58 +0000 (18:20 +0000)]
Add LVMETAD_SUPPORT

12 years agoIf lvmetad fails, don't set _has_scanned
Alasdair Kergon [Tue, 28 Feb 2012 18:20:17 +0000 (18:20 +0000)]
If lvmetad fails, don't set _has_scanned

12 years agoDefine LVMETAD_SUPPORT in source code
Alasdair Kergon [Tue, 28 Feb 2012 18:18:48 +0000 (18:18 +0000)]
Define LVMETAD_SUPPORT in source code

12 years agospacing
Alasdair Kergon [Tue, 28 Feb 2012 18:17:37 +0000 (18:17 +0000)]
spacing

12 years agoI don't think -u is meant to be used with lvmetad
Alasdair Kergon [Tue, 28 Feb 2012 18:16:23 +0000 (18:16 +0000)]
I don't think -u is meant to be used with lvmetad

12 years agoCheck return values after calling new lvmetad fns
Alasdair Kergon [Tue, 28 Feb 2012 18:08:08 +0000 (18:08 +0000)]
Check return values after calling new lvmetad fns
(Haven't checked error path handling though)

12 years agoFix empty string warning logic in _find_config_str. (1.02.68)
Alasdair Kergon [Tue, 28 Feb 2012 17:46:47 +0000 (17:46 +0000)]
Fix empty string warning logic in _find_config_str. (1.02.68)

pvcreate gives
WARNING: Ignoring unsupported value for metadata/pvmetadataignore.

It was warning if there is no config file entry instead of only if the node
exists but is empty.

12 years agoCheck for failing dm_asprintf
Zdenek Kabelac [Tue, 28 Feb 2012 14:25:37 +0000 (14:25 +0000)]
Check for failing dm_asprintf

12 years agoUsing enum types for enums
Zdenek Kabelac [Tue, 28 Feb 2012 14:24:57 +0000 (14:24 +0000)]
Using enum types for enums

alloc_policy_t, dm_string_mangling_t, percent_range_t, sign_t

12 years agoRevert free of allocated segtype
Zdenek Kabelac [Tue, 28 Feb 2012 14:23:41 +0000 (14:23 +0000)]
Revert free of allocated segtype

lvm_register_segtype takes ownership of segtype and call destructor
for it in error path.

12 years agoLVMetaD socket operates in non-blocking mode.
Peter Rajnoha [Tue, 28 Feb 2012 13:07:03 +0000 (13:07 +0000)]
LVMetaD socket operates in non-blocking mode.

12 years agoAdd support for systemd socket handover for common daemon-server code and also add...
Peter Rajnoha [Tue, 28 Feb 2012 13:05:21 +0000 (13:05 +0000)]
Add support for systemd socket handover for common daemon-server code and also add support for new OOM killer adjustment interface.

This code is already a part of dmeventd, but it's modified slightly to check
sockets instead of FIFOs.

12 years agoTest dm_hash_insert() failures mem failures
Zdenek Kabelac [Tue, 28 Feb 2012 11:12:58 +0000 (11:12 +0000)]
Test dm_hash_insert() failures mem failures

12 years agoCheck error from _lv_each_dependency
Zdenek Kabelac [Tue, 28 Feb 2012 11:10:45 +0000 (11:10 +0000)]
Check error from _lv_each_dependency

_lv_mark_if_partial_collect cannot fail, however it's good to keep
checking here as we do in all other cases.

12 years agoCheck result of export_vg_to_buffer
Zdenek Kabelac [Tue, 28 Feb 2012 11:09:06 +0000 (11:09 +0000)]
Check result of export_vg_to_buffer

and avoid usage of failed buffer.

12 years agoAdd stacktrace for init_lvmcache_orphans fail path
Zdenek Kabelac [Tue, 28 Feb 2012 11:08:04 +0000 (11:08 +0000)]
Add stacktrace for init_lvmcache_orphans fail path

12 years agoEnsure clvmd message is always \0 terminated
Zdenek Kabelac [Tue, 28 Feb 2012 11:06:56 +0000 (11:06 +0000)]
Ensure clvmd message is always \0 terminated

Drop whole buffer clearing (most messages at <100 bytes).
Just make sure we have always \0 terminated string for strlen() operations.
(before for PIPE_BUF sized messages this was not set).

12 years agoBetter detection of missing dmeventd fifo connection
Zdenek Kabelac [Tue, 28 Feb 2012 11:03:24 +0000 (11:03 +0000)]
Better detection of missing dmeventd fifo connection

12 years agoMissed to properly merge patch for definition of MAX_MISSING_LEN
Zdenek Kabelac [Tue, 28 Feb 2012 10:42:20 +0000 (10:42 +0000)]
Missed to properly merge patch for definition of MAX_MISSING_LEN

(fix previous commit)

12 years agoAdd log_sys_error for close
Zdenek Kabelac [Tue, 28 Feb 2012 10:14:06 +0000 (10:14 +0000)]
Add log_sys_error for close

12 years agoAdd some stack traces for dev_close error paths
Zdenek Kabelac [Tue, 28 Feb 2012 10:11:35 +0000 (10:11 +0000)]
Add some stack traces for dev_close error paths

12 years agoExplicitely ignore errors in label_read iteration.
Zdenek Kabelac [Tue, 28 Feb 2012 10:10:07 +0000 (10:10 +0000)]
Explicitely ignore errors in label_read iteration.

We don't want stack traces here, so mark as void.

12 years agoExplicitely check list size of segments
Zdenek Kabelac [Tue, 28 Feb 2012 10:08:20 +0000 (10:08 +0000)]
Explicitely check list size of segments

instead of checking for NULL from last_seg and first_seg.

12 years agoDuplicate standard in/out descriptors for daemon
Zdenek Kabelac [Tue, 28 Feb 2012 10:06:53 +0000 (10:06 +0000)]
Duplicate standard in/out descriptors for daemon

Addressing somewhat tricky bug here.
Since stdin,stdout,stderr were closed it's been occasionally possible to
see some unexpected messages to be flowing into a clvmd and generating some
randomly sized allocation of many megabytes. Since the message was not
being generated by standard send_message() construction, after some more
testing it apperead to be a debug log message - thus something has flown
to local socket opened on strandard out descriptor.

To fix the issue - use standard file descriptor duplication code for daemons.

For making easier debugging of polling daemon - developer might want to recompile
without modifition of standard file descriptors.

12 years agoLimit max size of clvmd message
Zdenek Kabelac [Tue, 28 Feb 2012 09:58:19 +0000 (09:58 +0000)]
Limit max size of clvmd message

This could be seen as some sort of simple validation - it's not easy to
recognize a valid message for now - but we definitely do not want to
allocate a lot of megabytes in  clvmd memory locked daemon when broken
message gets in.

Size of 8000 is just selected for now - possibly there could be much
lower value put in.

12 years agoDo not send uninitilised bytes
Zdenek Kabelac [Tue, 28 Feb 2012 09:53:55 +0000 (09:53 +0000)]
Do not send uninitilised bytes

Use struct initalizers to fill struct members and at the same time have
all unspecified members set to 0.

12 years agoFix dm_task_set_name to properly resolve path to dm name.
Peter Rajnoha [Tue, 28 Feb 2012 08:36:51 +0000 (08:36 +0000)]
Fix dm_task_set_name to properly resolve path to dm name.

Wrong variable was checked in _dm_task_set_name_from_path.

12 years agolvmetad.socket
Peter Rajnoha [Mon, 27 Feb 2012 15:45:49 +0000 (15:45 +0000)]
lvmetad.socket

12 years agoDo not hide deallocation of buffer
Zdenek Kabelac [Mon, 27 Feb 2012 11:49:16 +0000 (11:49 +0000)]
Do not hide deallocation of buffer

As API is passing structures by value, do not leave
the function which created buffer and keeps valid pointer
look like it would be some memory leak and move
free of buffer from inner function - makes more obvious,
how is the memory management handled.

12 years agoAdd FIXME for misuse in case of dm_event_mask enum.
Zdenek Kabelac [Mon, 27 Feb 2012 11:46:25 +0000 (11:46 +0000)]
Add FIXME for misuse in case of dm_event_mask enum.

Using enum for bitmask is not proper solution here.

12 years agoUse unsigned type for bitmask
Zdenek Kabelac [Mon, 27 Feb 2012 11:45:05 +0000 (11:45 +0000)]
Use unsigned type for bitmask

Using report_type_t for bitmask is not correct, since we have not defined types
for all  bit combinations - so switching to unsigned type, since values of
report_type_t enum are unsigned.

12 years agoJust code move of hash initialization in front of function
Zdenek Kabelac [Mon, 27 Feb 2012 11:40:58 +0000 (11:40 +0000)]
Just code move of hash initialization in front of function

Make sure both hash tables are initialized before _read_sections() call.
Presents no functional change (since PV scan phase was not adding LV hashes),
but makes the code easier to handle mem failing case, and static analyzer is
hapier as well.

12 years agoAdd stack traces for lock_vol failures
Zdenek Kabelac [Mon, 27 Feb 2012 11:35:59 +0000 (11:35 +0000)]
Add stack traces for lock_vol failures

Adding at least stack traces with some FIXMEs for cases,
where we might want to do something cleaver - maybe fail command
or give user hints something is not going well ?

For remote_backup is stack probably 'good' enough for now.

12 years agoCheck id_write_format result
Zdenek Kabelac [Mon, 27 Feb 2012 11:32:48 +0000 (11:32 +0000)]
Check id_write_format result

Currently we never fail with 64byte uuid buffer,
but just stay consitent with rest of the code and check for result.

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