| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
| |
This headers were not resolving anything used for compiled .c files.
Remove unused util.c file.
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
| |
(compiled only with special debug define)
|
|
|
|
| |
(test commit)
|
| |
|
|
|
|
| |
lvm.conf *and* lvmetad is running.
|
| |
|
|
|
|
|
|
|
| |
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.
|
|
|
|
| |
dmeventd plugins. Fixes RHBZ 771419.
|
|
|
|
| |
Since the code may go in error path, set to defined NULL.
|
|
|
|
|
| |
Do not shortcut to 'meta' and stay with 'metadata'
Also matches kernel doc for dm API then.
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
| |
Fix some minor outstading issue from thin plugin introduction -
Call dmeventd_lvm2_exit() in failpath for registration.
Add some missing '\n' in syslog messages.
|
|
|
|
| |
Since this code is in all plugins - create a common helper function.
|
| |
|
|
|
|
|
| |
This is basic version with still few unresolved issue mainly in case,
when the pool resize is failing.
|
|
|
|
|
|
|
|
| |
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".
|
|
|
|
| |
would grow with subsequent snapshot extensions (RHBZ 754198).
|
|
|
|
|
| |
extension, in the snapshot dmeventd plugin. The reporting is done as needed by
the LVM command nowadays.
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
| |
Makefile cosmetics - since .exported_symbols_generated in cleardir:
target via make.tmpl, there is no need to set them in DISTCLEAN_TARGETS.
|
| |
|
| |
|
|
|
|
| |
and fix differently signed comparation.
|
|
|
|
| |
(reported by Corey).
|
|
|
|
|
|
| |
Fixing resource leak in _umount().
CHECKME: mountpoints with spaces need to be checked
|
|
|
|
| |
that have been invalidated.
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
| |
|
| |
|
|
|
|
|
| |
Change -d to -f to run dmeventd in foreground.
(mornfall)
|
|
|
|
|
| |
Plugins are using pthread and lvm2cmd libraries indirectly
through devmapper-event-lvm2, so link only with libraries used by them.
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
Use our common '.' end format for syslog messages.
|
|
|
|
| |
and with lowered priority after _memlock_dec.
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
thought both usage forms are correct.
|
| |
|
|
|
|
|
| |
Otherwise "warning: declaration of ‘stat’ shadows a global declaration"
will appear because it shadows "stat" from stat.h.
|
| |
|
| |
|
| |
|
| |
|