summaryrefslogtreecommitdiffstats
path: root/daemons/dmeventd
Commit message (Collapse)AuthorAgeFilesLines
...
* Drop cleanup of .exported_symbols_generated in DISTCLEAN_TARGETSZdenek Kabelac2011-09-245-15/+6
| | | | | Makefile cosmetics - since .exported_symbols_generated in cleardir: target via make.tmpl, there is no need to set them in DISTCLEAN_TARGETS.
* Keep the old-style function definitionZdenek Kabelac2011-09-141-1/+1
|
* Fix resource leak when strdup failsZdenek Kabelac2011-08-311-2/+4
| | | | Static analyzer noticed, strdup failing path leaks dmt structure.
* pre-release fixes incl make distclean and configure --with-raid=none/sharedAlasdair Kergon2011-08-111-3/+19
|
* Add dmeventd monitoring for RAID devices.Jonathan Earl Brassow2011-08-114-2/+189
|
* Add support for systemd file descriptor handover in dmeventd.Peter Rajnoha2011-07-281-4/+91
| | | | | | | | | | | | | 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.)
* Add support for new oom killer adjustment interface (oom_score_adj).Peter Rajnoha2011-07-281-19/+42
| | | | | | | | | 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).
* report which dev was not foundAlasdair Kergon2011-07-081-1/+10
|
* Use dm_snprintfZdenek Kabelac2011-04-081-2/+2
| | | | and fix differently signed comparation.
* Add rudimentary versioning to the dmevend protocol, allowing us to detect thePetr Rockai2011-04-045-3/+45
| | | | | | (protocol) version of the running dmeventd on the client side. Right now this is only used in dmeventd -R.
* Add attribute printfZdenek Kabelac2011-03-291-0/+1
| | | | | gcc suggested to add these attributes to instrumentat printf arguments. Adding it for internal functions as well.
* Fix -Wold-style-definition gcc warningsZdenek Kabelac2011-03-291-2/+1
|
* Do not run past the end of an array in dmeventd's _handle_request when facedPetr Rockai2011-03-021-2/+2
| | | | with an unknown command ID.
* As requested in BZ 454618:Petr Rockai2011-03-021-4/+5
| | | | | | - dmeventd -R will continue to start up even if no dmeventd is currently running + a test for this behaviour - add -R to dmeventd manpage
* Fix some compile warnings on RHEL5Milan Broz2011-03-011-1/+1
| | | | | | - 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
* Test result of dm_task_set_uuidZdenek Kabelac2011-02-281-2/+5
|
* Avoid flooding syslog with redundant messages when a snapshot is invalidatedPetr Rockai2011-02-141-1/+0
| | | | (reported by Corey).
* Remove DEBUGLOG from dmeventd.Milan Broz2011-01-171-21/+1
|
* remove unused definitionsAlasdair Kergon2011-01-171-3/+0
|
* Remove dead assignment of 'ret' valueZdenek Kabelac2011-01-061-7/+8
| | | | | | | | | | | | 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...
* Remove unneeded stack prints after log_errorZdenek Kabelac2011-01-061-4/+1
|
* Detect errors from dm_task_set callsZdenek Kabelac2010-12-221-12/+15
| | | | | | Check for errors in dm_task_set calls. Use goto_bad macro with stack trace. Replace label failed: with bad:.
* Add check for unlink errorsZdenek Kabelac2010-12-201-1/+2
|
* Add new dm_prepare_selinux_context fn to libdevmapper and use it throughout.Peter Rajnoha2010-12-131-5/+23
| | | | | | | | | | | 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.
* Use one fprintf call for usage printZdenek Kabelac2010-11-291-8/+6
| | | | Replace multiple fprintf calls with multiline one.
* Remove dead assignment in 'main'Zdenek Kabelac2010-11-291-2/+1
| | | | 'ret' is never read anywhere - remove it.
* Add missing fcloseZdenek Kabelac2010-11-231-0/+3
| | | | | | Fixing resource leak in _umount(). CHECKME: mountpoints with spaces need to be checked
* Add code to the dmeventd snapshot plugin to automatically unmount snapshotsPetr Rockai2010-10-291-0/+89
| | | | that have been invalidated.
* Update C declaration () -> (void)Zdenek Kabelac2010-10-261-2/+2
|
* Fix clang warning for ntohl(*((uint32_t *)buf))Zdenek Kabelac2010-10-252-18/+19
| | | | | | | 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.
* Implement dmeventd -R, allowing dmeventd to be restarted without losingPetr Rockai2010-10-204-24/+183
| | | | monitoring state.
* Implement automatic snapshot extension with dmeventd, and add two new optionsPetr Rockai2010-10-151-11/+41
| | | | | | | | 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.
* Add dm_zalloc and use it and dm_pool_zalloc throughout.Alasdair Kergon2010-09-301-4/+2
|
* Fix leaked pool reportZdenek Kabelac2010-09-301-2/+2
| | | | Swap pool destruction order in dmeventd_lvm2_exit() to fix leak report.
* Add missing cleanup rule for generated .exported_symbols_generatedZdenek Kabelac2010-09-303-0/+6
|
* Various small cleanups and fixes related to monitoring.Alasdair Kergon2010-08-164-33/+42
|
* Remove superfluous NULL pointer tests before dm_free from dmeventd.Alasdair Kergon2010-08-163-54/+27
|
* Add dm_create_lockfile to libdm to handle pidfiles for all daemons.Fabio M. Di Nitto2010-07-132-44/+11
| | | | | | 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.
* Use __attribute__ consistently throughout.Alasdair Kergon2010-07-094-25/+25
|
* Use -d to control level of messages sent to syslog by dmeventd.Alasdair Kergon2010-05-143-17/+49
| | | | | Change -d to -f to run dmeventd in foreground. (mornfall)
* Fix static build.Alasdair Kergon2010-05-141-1/+1
|
* Add pkgconfigdir for placement of .pc filesZdenek Kabelac2010-05-111-1/+1
| | | | Use easily overideable make install pkgconfigdir variable.
* Use Require.private: field for devmapper-event.pcZdenek Kabelac2010-05-111-2/+1
| | | | | Move devmapper to Require.private: field and remove unneeded libs from Libs.private: as they are dependencies of devmapper library.
* Plugins do not use pthread or lvm2cmd directly.Zdenek Kabelac2010-05-112-2/+2
| | | | | Plugins are using pthread and lvm2cmd libraries indirectly through devmapper-event-lvm2, so link only with libraries used by them.
* Link libdevmapper-event.so with libdevmapper.so.Zdenek Kabelac2010-05-111-1/+2
| | | | For now using $(LIBS) for a list of linked libraries to $(LIB_SHARED) library.
* Headerfile <pthread.h> is no longer needed hereZdenek Kabelac2010-05-112-4/+1
|
* Install plugins to subdirsZdenek Kabelac2010-05-062-2/+2
| | | | | | | | | | | 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.
* pre-releaseAlasdair Kergon2010-04-141-1/+1
|
* pre-releaseAlasdair Kergon2010-04-141-2/+2
|
* Use UUIDs instead of names while processing event handlers.Peter Rajnoha2010-04-141-1/+1
| | | | | | | | | 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).