]> sourceware.org Git - lvm2.git/log
lvm2.git
9 years agometadata: Reject lvmetad metadata extensions when reading from disk.
Petr Rockai [Wed, 10 Jun 2015 14:25:57 +0000 (16:25 +0200)]
metadata: Reject lvmetad metadata extensions when reading from disk.

9 years agolvmetad: Make it possible to clear the outdated PVs list for a VG.
Petr Rockai [Wed, 10 Jun 2015 14:18:57 +0000 (16:18 +0200)]
lvmetad: Make it possible to clear the outdated PVs list for a VG.

9 years agometadata: Explain the pvs_outdated field in struct volume_group.
Petr Rockai [Wed, 10 Jun 2015 14:17:45 +0000 (16:17 +0200)]
metadata: Explain the pvs_outdated field in struct volume_group.

9 years agolvmetad, lvmpolld: remove DL_LIBS from Makefile
David Teigland [Mon, 8 Jun 2015 16:48:22 +0000 (11:48 -0500)]
lvmetad, lvmpolld: remove DL_LIBS from Makefile

and rdynamic.  They are not needed.

9 years agolvmetad.c: internal err on modifying global handle with open connection
Ondrej Kozina [Fri, 22 May 2015 12:55:42 +0000 (14:55 +0200)]
lvmetad.c: internal err on modifying global handle with open connection

lvmetad_init() should not be called with open connection to the daemon.
Doing so is considered to be an internall error within lvm2 code.

Such coincidence can't occur within current code. Let's assure us it won't
ever happen.

9 years agolvmetad.h: rephrase API descriptions
Ondrej Kozina [Fri, 22 May 2015 12:25:54 +0000 (14:25 +0200)]
lvmetad.h: rephrase API descriptions

Some of descritpions were misleading at least. Some were completely
off the reality.

lvmetad_init doesn't re-establish or initialise a connection
lvmetad_active and lvmetad_connect_or_warn can do so.

9 years agoman: lvmthin chunk and metadata sizes
David Teigland [Wed, 27 May 2015 20:53:01 +0000 (15:53 -0500)]
man: lvmthin chunk and metadata sizes

Clear some stale information, and give a suggestion to use
a metadata size of 1GiB.

9 years agotests: check for idle only for raid type
Zdenek Kabelac [Wed, 27 May 2015 09:59:10 +0000 (11:59 +0200)]
tests: check for idle only for raid type

9 years agolvmetad: missing wrapper for lvmetad less compilation
Zdenek Kabelac [Wed, 27 May 2015 09:44:33 +0000 (11:44 +0200)]
lvmetad: missing wrapper for lvmetad less compilation

9 years agotests: check for clmvd socket
Zdenek Kabelac [Wed, 27 May 2015 08:43:24 +0000 (10:43 +0200)]
tests: check for clmvd socket

A bit hacky since it expects PID_DIR == DEFAULT_RUN_DIR for now,
just to check whether it fixes startup clvmd sync problem.

9 years agotests: better check for array in sync
Zdenek Kabelac [Tue, 26 May 2015 11:11:46 +0000 (13:11 +0200)]
tests: better check for array in sync

Update check for raid array being in sync - getting somewhat complex.
It's another way to fight with problems in:
https://bugzilla.redhat.com/show_bug.cgi?id=1210637

9 years agotests: drop debug print
Zdenek Kabelac [Mon, 25 May 2015 07:59:02 +0000 (09:59 +0200)]
tests: drop debug print

9 years agocleanup: gcc warn fix, don't hide pvs()
Zdenek Kabelac [Fri, 22 May 2015 14:23:19 +0000 (16:23 +0200)]
cleanup: gcc warn fix, don't hide pvs()

9 years agolvmpolld: terminate error message with a dot and LF
Ondrej Kozina [Wed, 27 May 2015 06:24:36 +0000 (08:24 +0200)]
lvmpolld: terminate error message with a dot and LF

9 years agoWHATS_NEW: various updates
Ondrej Kozina [Tue, 26 May 2015 14:08:24 +0000 (16:08 +0200)]
WHATS_NEW: various updates

commit c069aff21b1450923b59e98ab709a5e667cdcda9
commit 8af5f54824f889c438104625dbe159f6e8dedbc4

9 years agodmsetup: zero errno in before strtoul call
Ondrej Kozina [Tue, 26 May 2015 14:01:40 +0000 (16:01 +0200)]
dmsetup: zero errno in before strtoul call

Testing errno value without explicitly setting to
zero in before the strtoul call may lead to
unexpected failures.

9 years agolvmpolld: zero errno in before strtoul call
Ondrej Kozina [Tue, 26 May 2015 13:55:16 +0000 (15:55 +0200)]
lvmpolld: zero errno in before strtoul call

Testing errno value without explicitly setting to
zero in before the strtoul call may lead to
unexpected failures.

9 years agolvconvert.c: fix whitespace mess
Ondrej Kozina [Mon, 25 May 2015 11:16:57 +0000 (13:16 +0200)]
lvconvert.c: fix whitespace mess

9 years agolibdm: Add dm_task_get_errno to return ioctl errno.
Alasdair G Kergon [Tue, 26 May 2015 14:13:49 +0000 (15:13 +0100)]
libdm: Add dm_task_get_errno to return ioctl errno.

There are reports of unexplained ioctl failures when using dmeventd.
An explanation might be that the wrong value of errno is being used.

Change libdevmapper to store an errno set by from dm ioctl() directly
and provide it to the caller through a new dm_task_get_errno() function.

[Replaced f9510548667754d9209b232348ccd2d806c0f1d8]

9 years agoWHATS_NEW: update
Ondrej Kozina [Mon, 25 May 2015 08:46:38 +0000 (10:46 +0200)]
WHATS_NEW: update

update for commit: f8bf6410954fcf82bf28852e0dba015c6b7f19dc

9 years agotests: add test for pvscan --cache --background
Ondrej Kozina [Mon, 25 May 2015 08:41:14 +0000 (10:41 +0200)]
tests: add test for pvscan --cache --background

regression test for a segfault in pvscan --cache --background
bug fixed by commit:
f8bf6410954fcf82bf28852e0dba015c6b7f19dc

9 years agolvmetad.c: ignore lvmetad global handle on disconnect
Ondrej Kozina [Fri, 22 May 2015 12:48:28 +0000 (14:48 +0200)]
lvmetad.c: ignore lvmetad global handle on disconnect

do not unset lvmetad global handle on disconnect. This is
hotfix for issue described in:
https://www.redhat.com/archives/linux-lvm/2015-May/msg00008.html

Reported-by: Christian Hesse <list@eworm.de>
9 years agolvconvert: change how to get failed mirrors number
Lidong Zhong [Fri, 22 May 2015 07:50:42 +0000 (15:50 +0800)]
lvconvert: change how to get failed mirrors number

Commit  b00711e3128c9cb38da90f303a3b64cf3a30fc9b improperly
convert _area_missing() replacment and moved check for
AREA_PV seg_type() into same if() section.

Signed-off-by: Lidong Zhong <lzhong@suse.com>
9 years agoscripts: activation generator: do not use --sysinit if lvmpolld used
Peter Rajnoha [Thu, 21 May 2015 09:07:07 +0000 (11:07 +0200)]
scripts: activation generator: do not use --sysinit if lvmpolld used

If lvmetad is not used, we generate lvm2-activation{-early,-net}.service
systemd services to activate any VGs found on the system. So far we used
--sysinit during this activation as polling was still forked off of the
lvm activation command.

This has changed with lvmpolld - we have proper lvmpolld systemd
service now (activated via its socket unit). As such, we don't need
to use --sysinit anymore during activation in systemd environment
as polling was the only barrier to remove the need for --sysinit.

9 years agolvmpolld-client.c: debug print when querying progress
Ondrej Kozina [Thu, 21 May 2015 09:10:09 +0000 (11:10 +0200)]
lvmpolld-client.c: debug print when querying progress

9 years agopolldaemon.c: modify log levels in report_progress
Ondrej Kozina [Thu, 21 May 2015 08:17:29 +0000 (10:17 +0200)]
polldaemon.c: modify log levels in report_progress

There's a race when asking lvmpolld about progress_status and
actually reading the progress info from kernel:

Even with lvmpolld being used we read status info from
LVM2 command issued by a user (client side from lvmpolld perspective).
The whole cycle may look like following:

1) set up an operation that requires polling (i.e. pvmove /dev/sda)
2) notify lvmpolld about such operation (lvmpolld_poll_init())
3) in case 1) was not called with --background it would continue with:
4) Ask lvmpolld about progress status. it may respond with one of:
   a) in_progress
   b) not_found
   c) finished
   d) any low level error

5) provided the answer was 4a) try to read progress info from polling LV
(i.e. vg00/pvmove1). Repeat steps 4) and 5) until the answer is != 4a).

And now we got into racy configuration: lvmpolld answered with in_progress
but it may be the that in_between 4) and 5) the operation has already
finished and polling LV is already gone or there's nothing to ask for.
Up to now, 5) would report warning and it could print such warning many
times if --interval was set to 0.

We don't want to scary users by warnings in such situation so let's just
print these messages in verbose mode. Error messages due to error while
reading kernel status info (on existing, active and locked LV) remained
the same.

9 years agoformat_text: Parse (optional) outdated_pvs section in VG metadata.
Petr Rockai [Wed, 29 Apr 2015 13:02:26 +0000 (15:02 +0200)]
format_text: Parse (optional) outdated_pvs section in VG metadata.

9 years agolvmetad: Set up lvmcache & PV structs for outdated_pvs.
Petr Rockai [Wed, 29 Apr 2015 13:01:20 +0000 (15:01 +0200)]
lvmetad: Set up lvmcache & PV structs for outdated_pvs.

9 years agolvmetad: Provide entire pvmeta sections for outdated_pvs.
Petr Rockai [Wed, 29 Apr 2015 13:00:28 +0000 (15:00 +0200)]
lvmetad: Provide entire pvmeta sections for outdated_pvs.

9 years agometadata: Add pvs_outdated to struct volume_group.
Petr Rockai [Wed, 15 Apr 2015 14:41:09 +0000 (16:41 +0200)]
metadata: Add pvs_outdated to struct volume_group.

This is a list of PVs that should have their MDAs wiped because they carry
outdated metadata (that used to belong to the VG they are attached to).

9 years agometadata: Factor _wipe_outdated_pvs() PVs out of _vg_read().
Petr Rockai [Wed, 15 Apr 2015 14:40:26 +0000 (16:40 +0200)]
metadata: Factor _wipe_outdated_pvs() PVs out of _vg_read().

9 years agolvmetad: Attach an outdated_pvs list to vg_lookup replies.
Petr Rockai [Wed, 15 Apr 2015 14:39:32 +0000 (16:39 +0200)]
lvmetad: Attach an outdated_pvs list to vg_lookup replies.

9 years agolvmetad: Clear the vgid_to_outdated_pvs hash on shutdown.
Petr Rockai [Wed, 15 Apr 2015 14:38:57 +0000 (16:38 +0200)]
lvmetad: Clear the vgid_to_outdated_pvs hash on shutdown.

9 years agolvmetad: Maintain info about outdated PVs.
Petr Rockai [Wed, 15 Apr 2015 11:00:35 +0000 (13:00 +0200)]
lvmetad: Maintain info about outdated PVs.

9 years agomakefiles: use bash subshell
Zdenek Kabelac [Wed, 20 May 2015 07:25:50 +0000 (09:25 +0200)]
makefiles: use bash subshell

Avoid using  make's $(shell invocation since the eval order is
then somewhat different and use $$(  subshell.

This also fixes a problem when more then one symbol is found,
since target shell has been given separate word list
so the 'R' assignment would need "" around it.

9 years agoconfigure: fix missing [
Zdenek Kabelac [Wed, 20 May 2015 07:07:49 +0000 (09:07 +0200)]
configure: fix missing [

9 years agoWHATS_NEW: various updates
Ondrej Kozina [Tue, 19 May 2015 19:01:24 +0000 (21:01 +0200)]
WHATS_NEW: various updates

9 years agopolldaemon.c: do not report error when LV not found
Ondrej Kozina [Tue, 19 May 2015 15:04:29 +0000 (17:04 +0200)]
polldaemon.c: do not report error when LV not found

currently in wait_for_single_lv() fn trying to poll missing pvmove LV
is considered success. It may have been already finished by another
instance of polldaemon. either by another forked off polldaemon
or by lvmpolld.

Let's try to handle the mirror conversion and snapshot merge the same
way.

9 years agolvconvert.c: drop get_vg_lock_and_logical_volume fn
David Teigland [Tue, 19 May 2015 14:46:11 +0000 (16:46 +0200)]
lvconvert.c: drop get_vg_lock_and_logical_volume fn

9 years agopvmove.c: code cleanup
David Teigland [Tue, 19 May 2015 13:27:36 +0000 (15:27 +0200)]
pvmove.c: code cleanup

9 years agopolldaemon: remove get_copy_vg and get_copy_lv wrappers
David Teigland [Tue, 19 May 2015 13:13:01 +0000 (15:13 +0200)]
polldaemon: remove get_copy_vg and get_copy_lv wrappers

These wrappers have been replaced by direct calls
to vg_read() and find_lv() in previous commits.

This commit should have no functional impact since
all bits were already unreachable.

9 years agopolldaemon.c: call find_lv directly
Ondrej Kozina [Tue, 19 May 2015 13:08:50 +0000 (15:08 +0200)]
polldaemon.c: call find_lv directly

9 years agolvconvert.c: call find_lv directly
David Teigland [Tue, 19 May 2015 12:50:58 +0000 (14:50 +0200)]
lvconvert.c: call find_lv directly

9 years agopolldaemon.c: call vg_read directly
David Teigland [Tue, 19 May 2015 12:40:40 +0000 (14:40 +0200)]
polldaemon.c: call vg_read directly

replace calls in wait_for_single_lv() and report_progress() fns

9 years agolvconvert.c: call vg_read directly
David Teigland [Tue, 19 May 2015 12:07:04 +0000 (14:07 +0200)]
lvconvert.c: call vg_read directly

9 years agopvmove.c: call vg_read directly
David Teigland [Tue, 19 May 2015 10:05:38 +0000 (12:05 +0200)]
pvmove.c: call vg_read directly

9 years agopolldaemon: move dev_close_all out of poll_get_copy_vg
Ondrej Kozina [Tue, 19 May 2015 09:37:39 +0000 (11:37 +0200)]
polldaemon: move dev_close_all out of poll_get_copy_vg

let's call dev_close_all() only before we're about to 'sleep'
for at least one second during the polling.

(it's questionable whether to call dev_close_all() at all in
polldaemon code. Natural extension would be to drop it completely)

9 years agotests: add test for duplicate pvs
David Teigland [Thu, 23 Apr 2015 19:52:21 +0000 (14:52 -0500)]
tests: add test for duplicate pvs

9 years agoconfigure: update localedir
Zdenek Kabelac [Mon, 18 May 2015 16:13:07 +0000 (18:13 +0200)]
configure: update localedir

Previous patch incorrectly skipped replace of @LOCALEDIR@.

The standard option is --localedir  so use --with-localedir
as backward compatible option and set localedir if it's not
yet been set (if the could ever happen).

Use double-eval to translate $datarootdir to $prefix to real dir.

9 years agoconfigure: LOCALEDIR needs evaluated value
Zdenek Kabelac [Mon, 18 May 2015 11:04:07 +0000 (13:04 +0200)]
configure: LOCALEDIR needs evaluated value

Also fix typo.

9 years agotests: fix calcucaltion
Zdenek Kabelac [Mon, 18 May 2015 08:16:09 +0000 (10:16 +0200)]
tests: fix calcucaltion

Code works properly.

9 years agotests: thin_restore not needed
Zdenek Kabelac [Mon, 18 May 2015 08:14:12 +0000 (10:14 +0200)]
tests: thin_restore  not needed

Few more test which could live without thin_restore.

9 years agomakefiles: drop LVM_SHARED_PATH
Zdenek Kabelac [Mon, 18 May 2015 10:16:24 +0000 (12:16 +0200)]
makefiles: drop LVM_SHARED_PATH

We already have LVM_PATH define used everywhere else
to access LVM binary so stay with one name.

9 years agomakefiles: better clean
Zdenek Kabelac [Mon, 18 May 2015 08:27:48 +0000 (10:27 +0200)]
makefiles: better clean

More exact clean of library exported symbols files.

Also use $(firstword) test to check for empty string
so 'make clean' has now cleaner condensed look.

Clean also created include links.

9 years agomakefiles: use := for shell calls
Zdenek Kabelac [Mon, 18 May 2015 08:27:15 +0000 (10:27 +0200)]
makefiles: use := for shell calls

9 years agomakefiles: use single target
Zdenek Kabelac [Mon, 18 May 2015 08:18:19 +0000 (10:18 +0200)]
makefiles: use single target

Possibly  easier to follow - to have just a single dependency line
and use  if() within rule.

Also replace $(words) with $(firstword) which is more commonly used.

9 years agoconfigure: move DEFS to configure.h
Zdenek Kabelac [Mon, 18 May 2015 08:36:11 +0000 (10:36 +0200)]
configure: move DEFS to configure.h

9 years agotests: no warn if test does not need thin_repair
Zdenek Kabelac [Sun, 17 May 2015 15:22:18 +0000 (17:22 +0200)]
tests: no warn if test does not need thin_repair

Set LVM_TEST_THIN_REPAIR_CMD to /bin/false for test which
doesn't need it.

This way - even if on the system there is no such tool present,
test will not result with warning about missing tool.

Also remove from Makefile settings of TEST vars which are set in
through /lib/paths  - this also allows to override them in test.

9 years agopost-release
Alasdair G Kergon [Fri, 15 May 2015 22:28:47 +0000 (23:28 +0100)]
post-release

9 years agopre-release v2_02_120
Alasdair G Kergon [Fri, 15 May 2015 22:19:29 +0000 (23:19 +0100)]
pre-release

9 years agomirror: use proper 64bit constants
Zdenek Kabelac [Fri, 15 May 2015 20:53:12 +0000 (22:53 +0200)]
mirror: use proper 64bit constants

ed2a08bf25e3b4e6a88c55402ab5dc11061ad68e missed to use 64bit
constants.

9 years agospec: new man page
Zdenek Kabelac [Fri, 15 May 2015 19:14:25 +0000 (21:14 +0200)]
spec: new man page

9 years agoconfig: remove UNDEFINED from cache_pool_cachemode
David Teigland [Fri, 15 May 2015 19:24:23 +0000 (14:24 -0500)]
config: remove UNDEFINED from cache_pool_cachemode

Replace UNDEFINED with COMMENTED because the code
requires a value to be returned from the config.

9 years agoconfig: remove UNDEFINED from thin_pool_discards and thin_pool_zero
David Teigland [Fri, 15 May 2015 19:01:23 +0000 (14:01 -0500)]
config: remove UNDEFINED from thin_pool_discards and thin_pool_zero

Replace UNDEFINED with COMMENTED for these two since
undefined seems to break things.

9 years agolvmpolld.8.in: man page rewrite
Ondrej Kozina [Thu, 14 May 2015 17:33:27 +0000 (19:33 +0200)]
lvmpolld.8.in: man page rewrite

- add client functionality
- fill in long option variants

9 years agolvmpolld: don't return success on invalid option
Ondrej Kozina [Fri, 15 May 2015 17:28:23 +0000 (19:28 +0200)]
lvmpolld: don't return success on invalid option

9 years agolvmpolld: add long option variants for all short ones
Ondrej Kozina [Fri, 15 May 2015 17:18:32 +0000 (19:18 +0200)]
lvmpolld: add long option variants for all short ones

9 years agolvmpolld: introduce client functionality
Ondrej Kozina [Fri, 15 May 2015 16:47:25 +0000 (18:47 +0200)]
lvmpolld: introduce client functionality

as of now lvmpolld works as client utility for
querying running instance of lvmpolld server
on metadata, state, etc.

Currently the only request implemented is the '--dump'.
It prints out full lvmpolld state (mimics lvmdump -p command).

9 years agopvmove.c: relocate id components extraction
Ondrej Kozina [Fri, 15 May 2015 15:06:14 +0000 (17:06 +0200)]
pvmove.c: relocate id components extraction

we don't want to fail properly set pvmove after metadata
update. failure to copy id components could end with dangling
mirror moving PV segments but no monitoring from lvmpolld or
classical polldaemon.

9 years agolvpoll.c: harden the checks for proper LV name
Ondrej Kozina [Fri, 15 May 2015 14:35:00 +0000 (16:35 +0200)]
lvpoll.c: harden the checks for proper LV name

lvpoll now process passed LV name properly. It respects
LVM_VG_NAME env. variable and is able to process LV name
passed in various formats:

- VG/LV
- LV name only (with LVM_VG_NAME set)
- /dev/mapper/VG-LV
- /dev/VG/LV

9 years agolvpoll.c: replace arg_count with arg_is_set
Ondrej Kozina [Fri, 15 May 2015 14:45:02 +0000 (16:45 +0200)]
lvpoll.c: replace arg_count with arg_is_set

didn't need to count the occurence but check if set

9 years agoexample.conf.in: apply previous improvements to example.conf
David Teigland [Fri, 15 May 2015 12:28:30 +0000 (14:28 +0200)]
example.conf.in: apply previous improvements to example.conf

9 years agoconfig_settings.h: improve lvmpolld config description
David Teigland [Fri, 15 May 2015 12:26:50 +0000 (14:26 +0200)]
config_settings.h: improve lvmpolld config description

9 years agolvm.8.in: add reference to lvpoll built-in command
Ondrej Kozina [Fri, 15 May 2015 11:38:55 +0000 (13:38 +0200)]
lvm.8.in: add reference to lvpoll built-in command

9 years agolvmdump.8.in: describe lvmpolld related option
Ondrej Kozina [Fri, 15 May 2015 11:38:38 +0000 (13:38 +0200)]
lvmdump.8.in: describe lvmpolld related option

9 years agocommands.h: reorder lvpoll options
Ondrej Kozina [Thu, 14 May 2015 17:33:54 +0000 (19:33 +0200)]
commands.h: reorder lvpoll options

9 years agolvm-lvpoll.8.in: man page for built-in command
Ondrej Kozina [Fri, 15 May 2015 18:16:51 +0000 (20:16 +0200)]
lvm-lvpoll.8.in: man page for built-in command

9 years agolvmpolld.8.in: hide origin of lvmpolld man page
Ondrej Kozina [Thu, 14 May 2015 16:43:50 +0000 (18:43 +0200)]
lvmpolld.8.in: hide origin of lvmpolld man page

:)

9 years agolvmpolld-client.c: explain known return codes
Ondrej Kozina [Thu, 14 May 2015 14:44:31 +0000 (16:44 +0200)]
lvmpolld-client.c: explain known return codes

lvmpolld returns few well known return codes. Explain
these to users and suggest reading lvmpolld log files
for more details

9 years agolvmpolld: label known return codes
Ondrej Kozina [Thu, 14 May 2015 13:53:29 +0000 (15:53 +0200)]
lvmpolld: label known return codes

so that lvmpolld-client can decode and describe these
return codes properly

9 years agolibdaemon: fprintf(stderr...) -> ERROR()
Ondrej Kozina [Thu, 14 May 2015 13:50:16 +0000 (15:50 +0200)]
libdaemon: fprintf(stderr...) -> ERROR()

log data structures are ready. so why not pass
error messages through ERROR()

9 years agolibdaemon: suggest daemon already running
Ondrej Kozina [Thu, 14 May 2015 13:43:43 +0000 (15:43 +0200)]
libdaemon: suggest daemon already running

when dm_creat_lockfile fails, it's probably due to
another instance is holding the same pid file...

9 years agoconfig: thin_pool_chunk_size_policy should be commented
David Teigland [Fri, 15 May 2015 16:43:56 +0000 (11:43 -0500)]
config: thin_pool_chunk_size_policy should be commented

It is commented in existing example.conf, so leave
that as it was.

9 years agoconfig: thin_pool_chunk_size_policy is not undefined
David Teigland [Fri, 15 May 2015 16:37:16 +0000 (11:37 -0500)]
config: thin_pool_chunk_size_policy is not undefined

The default policy setting does not depend on any
system/kernel values.

9 years agoman: missed y|n for wipesignatures
Zdenek Kabelac [Fri, 15 May 2015 15:43:15 +0000 (17:43 +0200)]
man: missed y|n for wipesignatures

9 years agoconfig: add comments to match current example.conf
David Teigland [Thu, 14 May 2015 21:08:50 +0000 (16:08 -0500)]
config: add comments to match current example.conf

Use CFG_DEFAULT_COMMENTED and CFG_DEFAULT_UNDEFINED to
replicate the existing comments in example.conf.

Fix host_list to be cfg_array.

UNDEFINED is only used if the value depends on other
system/kernel values outside of lvm.  The most common
case is when dm-thin or dm-cache have built-in default
settings in the kernel, and lvm will use those built-in
default values unless the corresponding lvm config setting
is set.

COMMENTED is used to comment out the default setting in
lvm.conf.  The effect is that if the LVM version is
upgraded, and the new version of LVM has new built-in
default values, the new defaults are used by LVM unless
the previous default value was set (uncommented) in lvm.conf.

9 years agolibdm: new dm_task_get_info with internal_suspend
Zdenek Kabelac [Fri, 15 May 2015 13:29:46 +0000 (15:29 +0200)]
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.

9 years agolvm.conf: add more information to the comment header
David Teigland [Thu, 14 May 2015 15:52:24 +0000 (10:52 -0500)]
lvm.conf: add more information to the comment header

9 years agoconfig: description can refer to etc location
David Teigland [Thu, 14 May 2015 14:47:42 +0000 (09:47 -0500)]
config: description can refer to etc location

9 years agoconfig: avoid configurable description text
David Teigland [Thu, 14 May 2015 14:25:48 +0000 (09:25 -0500)]
config: avoid configurable description text

It's just simpler to avoid configurable values in
the description text by rewording to avoid them.

9 years agonix: socat for f18, nc for f17
Zdenek Kabelac [Thu, 14 May 2015 13:01:01 +0000 (15:01 +0200)]
nix: socat for f18, nc for f17

Use common f17_f18 and add extras for f17 and f18

9 years agomakefiles: disable po file targes
Zdenek Kabelac [Thu, 14 May 2015 12:18:36 +0000 (14:18 +0200)]
makefiles: disable po file targes

po targets are not correct - so disable them for now.

9 years agomakefiles: use srcdir
Zdenek Kabelac [Thu, 14 May 2015 12:17:33 +0000 (14:17 +0200)]
makefiles: use srcdir

Use -I$(srcdir) as that's what we really want here.
For %.pot use all includes.

9 years agonix: drop util-linux
Zdenek Kabelac [Thu, 14 May 2015 09:45:37 +0000 (11:45 +0200)]
nix: drop util-linux

Doesn't appear on centos???

9 years agonix: add more packages
Zdenek Kabelac [Thu, 14 May 2015 09:42:33 +0000 (11:42 +0200)]
nix: add more packages

9 years agospec: package old sysv initscript for lvmpolld
Zdenek Kabelac [Thu, 14 May 2015 09:27:52 +0000 (11:27 +0200)]
spec: package old sysv initscript for lvmpolld

9 years agonix: add pkgconfig
Zdenek Kabelac [Thu, 14 May 2015 09:15:20 +0000 (11:15 +0200)]
nix: add pkgconfig

Install for better config

9 years agotests: respect @CONFDIR@/machine-id
Zdenek Kabelac [Thu, 14 May 2015 08:51:34 +0000 (10:51 +0200)]
tests: respect @CONFDIR@/machine-id

Obtain location of machine-id.

NOTE: lvmconfig cannot dump 'life' value - should be fixed.

9 years agotests: do not use |&
Zdenek Kabelac [Thu, 14 May 2015 08:20:24 +0000 (10:20 +0200)]
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.

9 years agonix: socat is quite new package
Zdenek Kabelac [Thu, 14 May 2015 07:49:54 +0000 (09:49 +0200)]
nix: socat is quite new package

Install 'nc' on older systems.
Test suite handles both.

This page took 0.065181 seconds and 5 git commands to generate.