| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|
|
|
|
| |
Makefile cosmetics - since .exported_symbols_generated in cleardir:
target via make.tmpl, there is no need to set them in DISTCLEAN_TARGETS.
|
| |
|
|
|
|
| |
Static analyzer noticed, strdup failing path leaks dmt structure.
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Systemd preloads file descriptors for us and passes them in for
newly spawned daemon when using on-demand fifo (or socket)
based activation.
This patch adds checks for file descriptors preloaded by
systemd and uses them instead of opening the FIFOs again
to properly support on-demand FIFO-based activation.
(We'll change FIFOs to sockets soon - but still this
part of the code will stay almost the same.)
|
|
|
|
|
|
|
|
|
| |
The filename to adjust the oom score was changed in 2.6.36.
We should use oom_score_adj instead of oom_adj (which is still
there under /proc, but it's scheduled for removal in August 2012).
New oom_score_adj uses a range from -1000 (OOM_SCORE_ADJ_MIN,
disable oom killing) to 1000 (OOM_SCORE_ADJ_MAX).
|
| |
|
|
|
|
| |
and fix differently signed comparation.
|
|
|
|
|
|
| |
(protocol) version of the running dmeventd on the client side.
Right now this is only used in dmeventd -R.
|
|
|
|
|
| |
gcc suggested to add these attributes to instrumentat
printf arguments. Adding it for internal functions as well.
|
| |
|
|
|
|
| |
with an unknown command ID.
|
|
|
|
|
|
| |
- dmeventd -R will continue to start up even if no dmeventd is currently
running + a test for this behaviour
- add -R to dmeventd manpage
|
|
|
|
|
|
| |
- returned char not needed to be explicitly const
- warn if pipe() fails in clvmd (more fixes here needed for error paths...)
- assign (and ignore) read() output in drain buffer
|
| |
|
|
|
|
| |
(reported by Corey).
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
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...
|
| |
|
|
|
|
|
|
| |
Check for errors in dm_task_set calls.
Use goto_bad macro with stack trace.
Replace label failed: with bad:.
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
| |
Replace multiple fprintf calls with multiline one.
|
|
|
|
| |
'ret' is never read anywhere - remove it.
|
|
|
|
|
|
| |
Fixing resource leak in _umount().
CHECKME: mountpoints with spaces need to be checked
|
|
|
|
| |
that have been invalidated.
|
| |
|
|
|
|
|
|
|
| |
We cast (char*) to (uint32_t*) that changes alignment requierements.
For our case the code has been correct as alloca() returns properly
aligned buffer, however this patch make it cleaner and more readable
and avoids warning generation.
|
|
|
|
| |
monitoring state.
|
|
|
|
|
|
|
|
| |
to lvm.conf in the activation section: 'snapshot_autoextend_threshold' and
'snapshot_autoextend_percent', that define how to handle automatic snapshot
extension. The former defines when the snapshot should be extended: when its
space usage exceeds this many percent. The latter defines how much extra space
should be allocated for the snapshot, in percent of its current size.
|
| |
|
|
|
|
| |
Swap pool destruction order in dmeventd_lvm2_exit() to fix leak report.
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
Switch dmeventd to use dm_create_lockfile and drop duplicate code.
Allow clvmd pidfile to be configurable.
Switch cmirrord and clvmd to use dm_create_lockfile.
|
| |
|
|
|
|
|
| |
Change -d to -f to run dmeventd in foreground.
(mornfall)
|
| |
|
|
|
|
| |
Use easily overideable make install pkgconfigdir variable.
|
|
|
|
|
| |
Move devmapper to Require.private: field and remove unneeded libs
from Libs.private: as they are dependencies of devmapper library.
|
|
|
|
|
| |
Plugins are using pthread and lvm2cmd libraries indirectly
through devmapper-event-lvm2, so link only with libraries used by them.
|
|
|
|
| |
For now using $(LIBS) for a list of linked libraries to $(LIB_SHARED) library.
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
Target install_dm_plugin installs files to libdir/device-mapper.
Target install_lvm2_plugin installs files to libdir/lvm2.
Both targets creates relative links to libdir to keep the code
compatible with current dlopen handling.
Once we will be able to read plugins from subdir, links
could be removed.
|
| |
|
| |
|
|
|
|
|
|
|
|
|
| |
Internally, we used DM names instead of UUIDs while processing event
handlers. This caused problems while trying to vgrename a VG with active LVs
where the names are being changed and so the devices were not found then.
The patch also contains a little bit of refactoring, moving "build_dlid" code
found in dev_manager.c to "build_dm_uuid", now in lvm-string.c (so we have
build_dm_uuid and build_dm_name at one place).
|