Alasdair G Kergon
981962b339
libdaemon: add logging to daemon_open
...
Log all conditions encountered in daemon_open().
Only store errno when known to be set.
2013-01-04 23:29:59 +00:00
Zdenek Kabelac
3e8dbfaecf
lvmetad: add check for failure dm_config_write_node
...
Detect if dm_config_write_node failed and fail correctly.
2012-12-15 17:23:27 +01:00
Zdenek Kabelac
399fc1bb33
lvmetad: keep returned struct fully initialized
...
Always clear the response structure.
Simplify daemon_reply initialization.
2012-12-15 17:23:27 +01:00
Zdenek Kabelac
4379365cae
lvmetad: fix memory leaks in error paths
...
Destroy interator in error path.
Releasy any possible allocated buffer from buffer_append_f
and buffer_append_vf in error path.
2012-10-13 19:19:50 +02:00
Zdenek Kabelac
9ee071705b
cleanup: fix compiler warnings
...
remove unused vars
move var declarations into the front of functions.
fix some sign warnings
2012-10-12 10:25:07 +02:00
Petr Rockai
b07df8850a
libdaemon: Make buffer handling asymptotically more efficient.
2012-10-11 18:09:41 +02:00
Petr Rockai
a19a595343
libdaemon-client: Fix a memory leak in daemon_send.
2012-10-08 20:35:29 +02:00
Petr Rockai
662a2122f6
libdaemon: Split daemon-shared.[hc] into daemon-io.[hc] and config-util.[hc].
2012-09-26 17:26:23 +02:00
Petr Rockai
4ece923a4b
libdaemonclient: Use log_sys_error in place of perror.
2012-09-26 17:26:23 +02:00
Petr Rockai
c731bb1ee1
lvmetad: Fix #845269 : SEGV on corrupt lvmetad response.
2012-09-26 17:26:23 +02:00
Petr Rockai
ea14d5159c
libdaemon: Extend and refactor APIs.
...
- move common dm_config_tree manipulation functions from lvmetad-core to
daemon-shared
- add config-tree-based request manipulation APIs to daemon-client
- factor out _v (va_list) variants of most variadic functions in libdaemon
2012-09-26 14:49:09 +02:00
Zdenek Kabelac
6f3cd63551
cleanup: replace memset with struct initilization
...
Simplifies the code, properly detects too long socket paths,
drops unused parameter.
2012-06-22 13:23:03 +02:00
Peter Rajnoha
bf29fa49d3
Use dm_strncpy instead of plain strncpy while setting the socket path.
...
Also check the return value as it meaningless to work with truncated strings.
2012-04-27 09:52:33 +00:00
Peter Rajnoha
9a2b6bda59
strcpy -> strncpy in common daemon code.
2012-04-10 12:55:37 +00:00
Zdenek Kabelac
c452307543
Few more close and dev_close trace
...
Adding (void) where we cannot really report an error.
2012-03-01 21:12:37 +00:00
Alasdair Kergon
7126d8c21b
Reflect new file locations, include file updates etc.
2012-02-28 18:35:04 +00:00
Alasdair Kergon
ec6559c93e
move daemon files
2012-02-28 18:30:39 +00:00