Zdenek Kabelac
a2c9ede6b3
makefiles: assign vars before include
...
Before we include, set INCLUDE and TARGETS.
Extend CFLAGS after include.
2015-05-14 00:19:33 +02:00
Zdenek Kabelac
b184d7a2ca
makefiles: drop DEBUG mangling
...
DEBUG is already set through make.tmpl.
2015-05-14 00:19:33 +02:00
Zdenek Kabelac
3fa66d1036
configure: set optimize flags when CFLAGS is unset
...
If we are given CFLAGS - preserve user's request and avoid placing
just -O2 there.
2015-05-14 00:19:33 +02:00
Zdenek Kabelac
f207a6d353
configure: preserve CXX/CFLAGS
...
AC_PROG_CC
AC_PROG_CXX
Does not preserve CFLAGS CXXFLAGS
2015-05-14 00:19:32 +02:00
Zdenek Kabelac
5e38b8439a
nix: fix socat package name
2015-05-14 00:19:32 +02:00
Zdenek Kabelac
a8fc483ca4
makefiles: use fullpath when in assign
...
We need to put full path right in the assign moment,
otherwise command:
make rpm rpmbuild=/my/tmp/dir
cannot work as one would have expected.
2015-05-14 00:19:32 +02:00
Zdenek Kabelac
7bd1559db6
makefiles: testclient is not valid target
2015-05-14 00:19:32 +02:00
Zdenek Kabelac
ea846f1ca2
makefiles: drop way too generic deps
2015-05-14 00:19:32 +02:00
Alasdair G Kergon
02e10f4ccd
libdaemon: Fix socket reuse error paths.
...
Invert S_ISSOCK validation.
Fail instead of replacing a symlink with a new socket.
After failure, skip calling fcntl with invalid socket_fd.
2015-05-13 13:42:09 +01:00
Zdenek Kabelac
cc560b75aa
configure: start to use AS_IF
2015-05-13 13:19:36 +02:00
Zdenek Kabelac
007ac0d36f
nix: more base packages
2015-05-13 13:19:35 +02:00
Zdenek Kabelac
1b43d63368
spec: packaging polld
...
Package lvmpolld
Drop legacy SysV init subpackage.
2015-05-13 13:18:59 +02:00
Ondrej Kozina
d5cef7413f
lvmpolld: dump cleanup
2015-05-12 17:17:07 +02:00
Ondrej Kozina
8da7915222
lvmpolld-client.c: use lvmpolld debug class where appropriate
2015-05-12 17:17:00 +02:00
Ondrej Kozina
2ec51e6185
tests: remove forgotten -vvvv option
2015-05-12 17:16:54 +02:00
Ondrej Kozina
257f7febc7
libdm-common.c: remove trailing whitespace
2015-05-12 17:16:49 +02:00
Ondrej Kozina
24a92e08c0
lvmpolld-client.c: be more specific about fallback on error
...
if client fails to contact lvmpolld it fallbacks to using classical
polldaemon. Be more specific and give some hints to users what went
possibly wrong
2015-05-12 17:16:43 +02:00
Ondrej Kozina
c3d351ec9b
new debug class for lvmpolld client code
2015-05-12 17:16:37 +02:00
Ondrej Kozina
e213aa17bd
lvmpolld.8.in: clarify the timeout parameter
...
Remove references to systemd native service. Now
the libdaemon supports shutdown on idle no matter
the init process implementation installed.
2015-05-12 17:16:31 +02:00
Ondrej Kozina
cdb7ce6f17
libdaemon: shutdown on idle also in non-systemd environment
2015-05-12 17:16:24 +02:00
Zdenek Kabelac
100daa7fd8
tests: ndev by default
2015-05-12 12:40:37 +02:00
Zdenek Kabelac
68e8030fe7
configure: spec.inc is generated at build
...
Collect all needed info at runtime for spec.inc
2015-05-12 12:40:37 +02:00
Zdenek Kabelac
13e87045fd
makefiles: use LN_S
2015-05-12 12:40:37 +02:00
Zdenek Kabelac
9c2a6de68f
makefiles: runtime spec.inc
...
Support CLEAN_DIRS
Var for rpmbuilddir
Use LN_S
Generate spec.inc at runtime for 'make rpm'.
2015-05-12 12:40:37 +02:00
Ondrej Kozina
f5199a1cbd
tests: remove forgotten set -v in aux
2015-05-11 19:08:19 +02:00
Ondrej Kozina
d758115786
lvmpolld: by default spawn lvpoll cmd with -An
2015-05-11 19:08:13 +02:00
Ondrej Kozina
5cfd7074af
lvmpolld: set use counters properly in lvmpolld_store
...
set active_polling_count to zero in pdst_init fn
2015-05-11 19:08:00 +02:00
Ondrej Kozina
5e0a8fa981
lib/polldaemon.h: remove trailing whitespace
2015-05-11 19:07:55 +02:00
Ondrej Kozina
2bbf0425e7
lvmdump.sh: print out lvmpolld service status
2015-05-11 19:07:47 +02:00
Zdenek Kabelac
5420edd56e
tests: split flavours
...
Remove duplicate flavour-udev-lvmetad-lvmpolld
and put them 1-per-line.
2015-05-11 17:31:09 +02:00
Zdenek Kabelac
e28ff7e0fc
nix: now some files are generate so keep them
...
more tweaks ahead
2015-05-11 17:31:09 +02:00
David Teigland
d748b3455d
vgimport: fall back when lvmetad is not running
...
If lvmetad is configured, but not running,
vgimport would not fall back and run without
lvmetad, but would report an error about
requiring lvmetad.
2015-05-11 09:28:47 -05:00
Zdenek Kabelac
3eb2d4d2ce
tests: typo in aux
...
Ooops editor grabbed q in test.
2015-05-11 16:14:24 +02:00
Zdenek Kabelac
20e9ec3583
makefiles: move clean
...
Move clean: target below, so it's not a default target to execute.
2015-05-11 16:08:58 +02:00
Zdenek Kabelac
62e7a6ca1a
makefile: cleanup after build
...
Provide cleaning rules for build dir and release tgz.
2015-05-11 15:53:46 +02:00
Zdenek Kabelac
fabc19b73c
tests: disable lvmetad and lvmpolld
...
Since now we enable those by default when compiled with those daemons,
explicitely disable them in tests when needed.
Alphabetically sort configurables.
2015-05-11 15:53:21 +02:00
Zdenek Kabelac
b5b3ad14a8
spec: now generated
2015-05-11 14:40:54 +02:00
Zdenek Kabelac
7de6153395
makefiles: dist and rpm target
...
Basic support for upstream 'build' of rpm packages.
Make spec file generated.
2 new simple targets:
make dist - create LVM2.MAJOR.MINOR.PATCHLEVEL.tgz from git files.
make rpm - some generic rpmbuilder using spec files.
Create packages in build/ subdir.
DO NOT USE created rpms in any distribution!
2015-05-11 14:36:58 +02:00
Zdenek Kabelac
ed8ea6cb2f
spec: writable instalation
...
rpmbuild needs writable binaries (for debug symbol extraction)
2015-05-11 14:36:31 +02:00
Zdenek Kabelac
725136b57e
configure: use_lvmetad/polld configurable
...
Configure provides proper settings for
use_lvmetad and use_lvmpolld conf setttings.
When the build of polld & lvmetad, these settings
are enabled by default unless explicitelly disabled
with --disable-use-lvmetad/--disable-use-lvmpolld.
2015-05-11 14:36:10 +02:00
Peter Rajnoha
1806694928
metadata: use log_debug_metadata instead of general log_debug for BA debug messages
2015-05-11 11:07:53 +02:00
Zdenek Kabelac
e3ccf98023
tests: missed conversion
...
Assuming it should test same number as other functions.
2015-05-09 09:17:26 +02:00
Zdenek Kabelac
abcab54cca
tests: avoid clobering dmesg
...
Restore old harness access to /dev/kmsg.
2015-05-09 09:17:26 +02:00
Zdenek Kabelac
3d845e492a
cleanup: drop extra test for NULL
...
vg cannot be NULL here - it's been already used in the code above.
2015-05-09 09:17:26 +02:00
Zdenek Kabelac
e047f04394
cleanup: remove extraneous parentheses
2015-05-09 09:17:26 +02:00
Ondrej Kozina
e587b0677b
lvmpolld: Add standalone polldaemon.
...
See doc/lvmpolld_overview.txt
2015-05-09 00:59:18 +01:00
David Teigland
be23fae488
lvmcache: set device in label when switching devs V2
...
This is an alternative/equivalent to commit
ca67cf84df
The problem (wrong label->dev after a new preferred
duplicate device is chosen) was isolated to the lvmetad
case (non-lvmetad worked fine), and this fixes the problem
by setting the new label->dev in the lvmetad-specific
code rather than in the general lvmcache code.
2015-05-08 17:10:53 -05:00
David Teigland
ca67cf84df
lvmcache: set device in label when switching devs
...
When using lvmetad, the reporter code was not reporting
the new preferred device because the new preferred dev
was not being set in the label struct.
2015-05-08 14:41:05 -05:00
Zdenek Kabelac
53aff9322e
tests: better filter
...
Filter $PREFIX rather then just LVMTEST.
2015-05-08 21:00:10 +02:00
Zdenek Kabelac
1d832aef09
tests: missing vg
2015-05-08 21:00:10 +02:00