Zdenek Kabelac
797c18d543
libdm: new dm_task_get_info with internal_suspend
...
Introduce new implmentation of dm_task_get_info() function
with support for reading internal_suspend.
.
This time it is done in a 'versioned' way.
We keep the old fashion dm_task_get_info(Base) to implement
the old behavior of 1.02.95 libdm code.
libdm version 1.02.96 introduced 'macro' wrapper
dm_task_get_info_with_deferred_remove with new implementation
of dm_task_get_info() - we cannot do anything else then to
provide compatible version of this symbol.
Now in version 1.02.97 we add new versioned implementation of
dm_task_get_info(DM_1_02_97) symbol.
This has the effect that i.e. rpm build will finaly resolve proper
dependency on a new symbol - so it will be no longer possible,
to build a new binary and use old library
(rpm -q --provides will show libdevmapper.so.1.02(DM_1_02_97)(64bit))
Also the history is now tracked. If a new function is added (or
reimplemented), it needs to be placed in proper file,
so it could be exported with right versioning symbol.
File .exported_symbols.Base should and any existing older DM
should be treated as read-only after a release.
Also - only libdm has been currently enhanced with versioned .Base
file, as soon as other libs (liblvm, libdevmapper-event) needs changes
they should also get their exported symbol files - meanwhile
make.tmpl handles both cases.
2015-05-15 16:48:22 +02:00
David Teigland
3f10dfd6c7
lvm.conf: add more information to the comment header
2015-05-14 10:52:24 -05:00
David Teigland
8081ee1440
config: description can refer to etc location
2015-05-14 09:47:42 -05:00
David Teigland
cf93fe39e3
config: avoid configurable description text
...
It's just simpler to avoid configurable values in
the description text by rewording to avoid them.
2015-05-14 09:25:48 -05:00
Zdenek Kabelac
4931d0132c
nix: socat for f18, nc for f17
...
Use common f17_f18 and add extras for f17 and f18
2015-05-14 15:01:01 +02:00
Zdenek Kabelac
64a9990977
makefiles: disable po file targes
...
po targets are not correct - so disable them for now.
2015-05-14 14:19:40 +02:00
Zdenek Kabelac
a929606f2b
makefiles: use srcdir
...
Use -I$(srcdir) as that's what we really want here.
For %.pot use all includes.
2015-05-14 14:19:22 +02:00
Zdenek Kabelac
679f1a9e29
nix: drop util-linux
...
Doesn't appear on centos???
2015-05-14 11:45:37 +02:00
Zdenek Kabelac
4f375d03dd
nix: add more packages
2015-05-14 11:42:33 +02:00
Zdenek Kabelac
f3a19fbe13
spec: package old sysv initscript for lvmpolld
2015-05-14 11:27:52 +02:00
Zdenek Kabelac
64b40c5554
nix: add pkgconfig
...
Install for better config
2015-05-14 11:15:56 +02:00
Zdenek Kabelac
a42c1c5728
tests: respect @CONFDIR@/machine-id
...
Obtain location of machine-id.
NOTE: lvmconfig cannot dump 'life' value - should be fixed.
2015-05-14 10:52:55 +02:00
Zdenek Kabelac
57a16abe2c
tests: do not use |&
...
Bash 3.2 doesn't understand this syntax (i.e. RHEL5).
And it's even better - reports syntax error and return success.
2015-05-14 10:52:55 +02:00
Zdenek Kabelac
1406aba8da
nix: socat is quite new package
...
Install 'nc' on older systems.
Test suite handles both.
2015-05-14 10:52:55 +02:00
Zdenek Kabelac
b7d80806b6
conf: system_id_source is referencing CONFDIR
...
Since we allow to configure /etc in configure and compile-in
dir for /etc we need to properly advertise this location later.
2015-05-14 10:52:55 +02:00
Zdenek Kabelac
6fb2552ef4
makefiles: protect CFLAGS
...
When CFLAGS and LDFLAGS are passed into - protect them,
and avoid even recursive subdir 'extension' of them.
2015-05-14 00:19:33 +02:00
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