summaryrefslogtreecommitdiffstats
path: root/daemons/dmeventd/plugins
Commit message (Collapse)AuthorAgeFilesLines
* cleanup: drop unneeded included header filesZdenek Kabelac2012-08-233-6/+0
| | | | | This headers were not resolving anything used for compiled .c files. Remove unused util.c file.
* Commit ID 46a75dedb4f6aa815a804f27cafbd3fd16a62011 consolidated code from theJonathan Earl Brassow2012-04-101-0/+5
| | | | | | | | | | | various dmeventd plug-ins into a new function called 'dmeventd_lvm2_command', but the new function did not strip off the "_mlog" extentions that the mirror plug-in had been doing. This created bug 794904 - failure to replace devices in a redundant log. The test suite did catch this scenario because it performs repair tests (mainly) through the CLI and not dmeventd. It's also not easy to test because the test itself will hang if the bug is encountered.
* Update debug messageZdenek Kabelac2012-03-231-1/+1
| | | | (compiled only with special debug define)
* Remove some whitespaces.Milan Broz2012-03-101-1/+1
| | | | (test commit)
* Reflect new file locations, include file updates etc.Alasdair Kergon2012-02-283-3/+3
|
* The lvmetad client-side integration. Only active when use_lvmetad = 1 is set inPetr Rockai2012-02-233-3/+3
| | | | lvm.conf *and* lvmetad is running.
* Make sure dereferenced words[0] and words[1] are definedZdenek Kabelac2012-02-131-1/+2
|
* Add boundary test for number of mirror devs and logsZdenek Kabelac2012-02-081-2/+5
| | | | | | | As atoi may return negative value - test for both limits. Test log_args for limits before calling alloca(). Code from dmeventd mirror plugin should probably share same code as we have in mirrored.c.
* Remove a dubious log message ("another thread is handling an event") from LVMPetr Rockai2012-02-011-4/+1
| | | | dmeventd plugins. Fixes RHBZ 771419.
* Thin forgotten initialisation of pointer to NULLZdenek Kabelac2012-01-201-1/+1
| | | | Since the code may go in error path, set to defined NULL.
* Thin use consistentely metadataZdenek Kabelac2012-01-191-9/+9
| | | | | Do not shortcut to 'meta' and stay with 'metadata' Also matches kernel doc for dm API then.
* Use new dmeventd_lvm2_command function in dmeventd plugins.Zdenek Kabelac2011-12-223-71/+54
| | | | | | | For snapshot, prepare whole command in front into private buffer. Add also some missing '\n' for syslog messages. For raid and mirror only convert creation of command line string. This should avoid any unbound growth of mempool for dm_split_names.
* Thin use helper functionZdenek Kabelac2011-12-221-14/+17
| | | | | | Fix some minor outstading issue from thin plugin introduction - Call dmeventd_lvm2_exit() in failpath for registration. Add some missing '\n' in syslog messages.
* Add helper function dmeventd_lvm2_command().Zdenek Kabelac2011-12-223-0/+27
| | | | Since this code is in all plugins - create a common helper function.
* Exported functions from thin pluginZdenek Kabelac2011-12-211-0/+3
|
* Thin add dmeventd supportZdenek Kabelac2011-12-213-1/+327
| | | | | This is basic version with still few unresolved issue mainly in case, when the pool resize is failing.
* Add policy based automated repair of RAID logical volumesJonathan Earl Brassow2011-12-061-1/+36
| | | | | | | | The RAID plug-in for dmeventd now calls 'lvconvert --repair' to address failures of devices in a RAID logical volume. The action taken can be either to "warn" or "allocate" a new device from any spares that may be available in the volume group. The action is designated by setting 'raid_fault_policy' in lvm.conf - the default being "warn".
* Fix a bug in dmeventd snapshot monitoring code where the monitoring thresholdPetr Rockai2011-11-211-8/+29
| | | | would grow with subsequent snapshot extensions (RHBZ 754198).
* Remove a redundant (and in some cases, misleading) message about snapshotPetr Rockai2011-10-191-5/+1
| | | | | extension, in the snapshot dmeventd plugin. The reporting is done as needed by the LVM command nowadays.
* Keep the LVM-based dmeventd plugins from trying to manipulate the dmeventdPetr Rockai2011-10-191-0/+1
| | | | | | | | | monitoring state of the logical volumes they are currently acting on. Until now, every time a logical volume has been changed by a dmeventd plugin, this plugin would have called back to dmeventd through the external FIFO mechanism. I am fairly sure this was superfluous, inefficient and possibly even dangerous.
* Drop cleanup of .exported_symbols_generated in DISTCLEAN_TARGETSZdenek Kabelac2011-09-244-13/+4
| | | | | Makefile cosmetics - since .exported_symbols_generated in cleardir: target via make.tmpl, there is no need to set them in DISTCLEAN_TARGETS.
* 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
|
* Use dm_snprintfZdenek Kabelac2011-04-081-2/+2
| | | | and fix differently signed comparation.
* Avoid flooding syslog with redundant messages when a snapshot is invalidatedPetr Rockai2011-02-141-1/+0
| | | | (reported by Corey).
* 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.
* 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.
* 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
|
* Remove superfluous NULL pointer tests before dm_free from dmeventd.Alasdair Kergon2010-08-161-4/+2
|
* Use __attribute__ consistently throughout.Alasdair Kergon2010-07-093-21/+21
|
* Use -d to control level of messages sent to syslog by dmeventd.Alasdair Kergon2010-05-142-9/+35
| | | | | Change -d to -f to run dmeventd in foreground. (mornfall)
* 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.
* 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.
* INSTALL rules updatesZdenek Kabelac2010-04-093-27/+6
| | | | | | | | | | | | | | | | | | | | | | | | | Patch is inspired by Debian's extra patch. - removes OWNER & GROUP make vars they are parts of INSTALL command. - adds INSTALL_PROGRAM for executable, uses $(INSTALL) - adds INSTALL_DATA for non-executable data, uses ($INSTALL) - adds INSTALL_WDATA for writable non-executable data, uses ($INSTALL) - adds configure option --enable-write_install - to support installatin of writable files used by distribution - replaces usage of ifeq @LIB_SUFFIX@ with $(LIB_SUFFIX) - installs .a files from static builds without executable flag - installs .a files to $(usrlibdir) instead of $(libdir) - installs all static binaries to $(staticdir) - create .so links for devel package in $(usrlibdir) instead of $(libdir) - makes .so and .so.LIB_VERSION files within builddir - removes VERSIONED_SHLIB and created versioned LIB_SHARED automagicaly - install LIB_SHARED via install_lib_shared target - install plugins via install_lib_shared_plugin target - prints whole 'install' command during installation instead of less informative "Installing $(something) $(somewhere)" - install multiple man pages with one INSTALL command - use DISTCLEAN_TARGETS instead of creating multiple distclean targets
* Use vpath instead of VPATH.Zdenek Kabelac2010-04-094-4/+0
| | | | | | | | | | | | | | | Usage of VPATH makes troubles when used within $(builddir). Not only source files are being found through VPATH, but targets as well. (make --debug=v) Thus if user builds the code in $(srcdir) and also in some $(builddir) he gets mangled results as some generated files (i.e. .export.sym) are 'reused' from $(srcdir) instead of $(builddir). This patch switches to use vpath were we could explicitly name suffixes that should be looked via vpath - we must take care, we do not generate files with these suffixes: .c, .in, .po, .exported_symbols
* Updated syslog messagesZdenek Kabelac2010-03-301-14/+14
| | | | Use our common '.' end format for syslog messages.
* Release pool in the same reversed orderZdenek Kabelac2010-03-301-2/+2
| | | | and with lowered priority after _memlock_dec.
* Update cflow file generation - support build dir and use $(top_srcdir)Zdenek Kabelac2010-03-291-3/+7
| | | | | | | to obtain sources. Create make.tmpl target for simplier generation of cflow files with the help of CFLOW_LIST, CFLOW_LIST_TARGET, CFLOW_TARGET. Still cflow usage is not perfect.
* Add ability to create mirrored logs for mirror LVs.Jonathan Earl Brassow2010-03-261-0/+5
| | | | | | | | | | This check-in enables the 'mirrored' log type. It can be specified by using the '--mirrorlog' option as follows: #> lvcreate -m1 --mirrorlog mirrored -L 5G -n lv vg I've also included a couple updates to the testsuite. These updates include tests for the new log type, and some fixes to some of the *lvconvert* tests.
* Pthread linking changeZdenek Kabelac2010-03-043-3/+3
| | | | | | | | | Create new substituted variable PTHREAD_LIBS and link this library only with tools/libs which really needs it - i.e. dmeventd. Check for libpthread only for builds with clvmd or dmeventd. Remove variable LIB_PTHREAD
* Use consistently $() instead of ${} for all Makefile variables,Zdenek Kabelac2010-03-043-5/+5
| | | | thought both usage forms are correct.
* Use $(top_builddir) for inclusion of make.tmpl in Makefiles.Zdenek Kabelac2010-03-041-1/+1
|
* Rename "stat" to "status" in dmeventd_snapshot.c.Peter Rajnoha2010-02-151-9/+9
| | | | | Otherwise "warning: declaration of ‘stat’ shadows a global declaration" will appear because it shadows "stat" from stat.h.
* Remove pointless versioned symlinks to dmeventd plugin libraries.Alasdair Kergon2010-02-022-4/+2
|
* Fix dmeventd snapshot plugin build dependency.Alasdair Kergon2010-02-021-2/+2
|
* Fix syslog prefix in the first message (dmeventd->lvm).Milan Broz2010-01-222-2/+4
|
* Fix exported symbols for lvm2 dmeventd wrapper.Milan Broz2010-01-221-6/+6
|