Zdenek Kabelac
814aebc4e9
Use $(top_builddir) for inclusion of make.tmpl in Makefiles.
2010-03-04 09:51:37 +00:00
Zdenek Kabelac
a362bb23c0
Use macro outsize() with check for error return value.
2010-01-07 14:46:51 +00:00
Milan Broz
20babc7b4f
Fix pvmove region_size overflow for very large PVs.
...
Fixes problem reported in
https://www.redhat.com/archives/dm-devel/2009-November/msg00104.html
The region size multiplication can overflow when using 32bit integer.
2009-11-18 16:48:10 +00:00
Alasdair Kergon
db8b5af9d9
Allow for a build directory separate from the source.
2009-10-02 19:10:31 +00:00
Alasdair Kergon
78ad1549a5
Introduce percent_range_t and centralise snapshot full/mirror in-sync checks.
2009-10-01 00:35:29 +00:00
Jonathan Earl Brassow
03c65b7ade
mirror table generating code: Properly handle 'block_on_errors' and 'cluster' features
...
The device-mapper mirror CTR table has been changing over time. This has
now been corrected to handle the old and new methods for invoking the
'block_on_errors' and 'cluster' features. (The code that does this was
accidentally committed in the previous check-in. This check-in finishes
the job.)
2009-08-13 19:36:04 +00:00
Milan Broz
25497e2fa5
Fix confusing metadata syntax error messages.
...
If there is syntax error in metadata, it now prints messages
like:
Couldn't read 'start_extent' for segment 'extent_count'.
Couldn't read all logical volumes for volume group vg_test.
The segment specification is wrong and confusing.
Patch fixes it by introducing "parent" member in config_node which
points to parent section and config_parent_name function, which
provides pointer to node section name.
Also it adds several LV references where possible.
2009-07-09 11:29:00 +00:00
Alasdair Kergon
81680dce3c
Fix last check-ins: seg can be NULL.
2009-02-28 20:04:24 +00:00
Alasdair Kergon
ed82bfd2ba
Attempt cleanup in child before execing new binary in exec_cmd()
2009-02-28 00:54:06 +00:00
Alasdair Kergon
2c44337bd5
Right, a simple build (without options) is working again.
2008-11-03 22:14:30 +00:00
Alasdair Kergon
2cde7dfdb3
add libdevmapper-event.h
2008-10-31 22:41:51 +00:00
Alasdair Kergon
9125b72b15
Change clustered mirror kernel module name from cmirror to dm-log-clustered.
2008-07-31 14:43:39 +00:00
Alasdair Kergon
82185ada82
Cease recognising snapshot-in-use percentages returned by early development kernels.
2008-07-15 00:25:52 +00:00
Alasdair Kergon
3cde54c50e
.
2008-04-10 18:53:36 +00:00
Dave Wysochanski
985ca02b6a
Add vg_is_clustered() helper function.
...
Should be no functional change.
2008-04-10 17:09:32 +00:00
Milan Broz
5619c629f6
Add detection of clustered mirror log capability.
...
Currently only check for kernel module presence.
2008-04-07 10:23:47 +00:00
Alasdair Kergon
4e9083db10
Fix mirror log name construction during lvconvert. (2.02.30)
...
Make monitor_dev_for_events recurse through the stack of LVs.
Clean up some more compiler warnings.
Add mirror names test script.
2008-01-31 12:19:36 +00:00
Alasdair Kergon
67cdbd7e4d
Some whitespace tidy-ups.
2008-01-30 14:00:02 +00:00
Alasdair Kergon
c51b9fff19
Use stack return macros throughout.
2008-01-30 13:19:47 +00:00
Alasdair Kergon
0c06de632a
pre-release review cleanups
2008-01-17 17:17:09 +00:00
Alasdair Kergon
876003dc44
allow a mirror to contain only one mimage
2008-01-16 19:18:51 +00:00
Alasdair Kergon
a1ff319fda
Don't use block_on_error with mirror targets above version 1.12.
2008-01-16 15:24:25 +00:00
Jim Meyering
7f8f8bfa09
Correct typo in comments: s/is part of the LVM2/is part of LVM2/.
...
Signed-off-by: Jim Meyering <jim@meyering.net>
Author: Jim Meyering <jim@meyering.net>
2007-09-21 10:16:45 +00:00
Alasdair Kergon
be6845999b
Fix inconsistent licence notices: executables are GPLv2; libraries LGPLv2.1.
2007-08-20 20:55:30 +00:00
Alasdair Kergon
57fc4cc0b6
Add field definitions to report help text.
...
Remove unnecessary cmd arg from target_*monitor_events().
2007-01-24 16:51:24 +00:00
Alasdair Kergon
8a37910d51
register->monitor etc.
2007-01-19 22:21:45 +00:00
Alasdair Kergon
0e2084da9c
merge _target_*register_events
...
introduce _create_dm_event_handler()
2007-01-17 15:00:57 +00:00
Alasdair Kergon
e430b424df
use updated dm_event_get_registered_device interface
2007-01-16 23:05:13 +00:00
Alasdair Kergon
d838a1e314
Move basic reporting functions into libdevmapper.
2007-01-16 18:06:12 +00:00
Alasdair Kergon
02059c81e7
Some libdevmapper-event interface changes.
2007-01-15 18:22:02 +00:00
Alasdair Kergon
8ef6eb30d9
Report dmeventd mirror monitoring status.
2007-01-12 20:38:30 +00:00
Alasdair Kergon
6b36e863cb
updated dmeventd interface
2007-01-11 22:24:32 +00:00
Alasdair Kergon
7c5ec12630
Add segment parameter to target_present functions.
2006-10-18 18:01:53 +00:00
Alasdair Kergon
6c81ed26f0
Add LV column to reports listing kernel modules needed for activation.
2006-10-03 17:55:20 +00:00
Alasdair Kergon
4aae724656
Fix target_register_events args.
2006-05-25 13:32:26 +00:00
Alasdair Kergon
2293567c8c
Fix lvcreate corelog validation.
...
Add --config for overriding most config file settings from cmdline.
Quote arguments when printing command line.
Remove linefeed from 'initialising logging' message.
Add 'Completed' debug message.
Don't attempt library exit after reloading config files.
Always compile with libdevmapper, even if device-mapper is disabled.
2006-05-16 16:48:31 +00:00
Alasdair Kergon
49fba23c81
Use mirror's uuid for a core log.
2006-05-11 19:47:53 +00:00
Alasdair Kergon
5c9d70c955
Create a log header for replacement in-sync mirror log.
...
Use set_lv() and dev_set() to wipe sections of devices.
Add mirror_in_sync() flag to avoid unnecessary resync on activation.
2006-05-11 18:39:24 +00:00
Alasdair Kergon
898e6f8e41
Add mirror_library description to example.conf.
...
More compile-time cleanup.
2006-05-11 17:58:58 +00:00
Alasdair Kergon
72b2cb613a
Make SIZE_SHORT the default for display_size().
...
Fix some memory leaks in error paths found by coverity.
Use C99 struct initialisers.
Move DEFS into configure.h.
Clean-ups to remove miscellaneous compiler warnings.
2006-05-09 21:23:51 +00:00
Alasdair Kergon
8a2fc58645
Check for libsepol.
...
Add some cflow & scope support.
Separate out DEFS from CFLAGS.
Remove inlines and use unique function names.
2006-04-19 15:33:07 +00:00
Alasdair Kergon
1b6e5052c9
Fix dmeventd sharedlib path & start tidying registration code.
2006-01-27 20:13:12 +00:00
Alasdair Kergon
54d9d3cf3c
Add config file setting: dmeventd/mirror_library
2006-01-27 19:05:05 +00:00
Alasdair Kergon
079ac15ece
vgreduce remove mirror images
...
adjust block_on_error version no detection for RHEL4U3
2006-01-04 18:09:52 +00:00
Alasdair Kergon
fd4808fe8c
fix libdevmapper-event include
2005-12-21 19:45:16 +00:00
Alasdair Kergon
7f0ada9b09
fixme
2005-12-19 22:36:04 +00:00
Alasdair Kergon
bbf83db14a
Set block_on_error parameter if available.
...
Add target_version.
2005-12-19 21:01:39 +00:00
Alasdair Kergon
b541308454
ability to pass log flags to libdevmapper
2005-12-13 15:57:32 +00:00
Alasdair Kergon
e412000122
comment
2005-12-13 13:32:19 +00:00
Alasdair Kergon
e64934773b
Fix lvscan snapshot full display.
...
dmeventd fixes
2005-12-08 17:49:34 +00:00
Alasdair Kergon
15d91f5a68
More dmeventd support.
2005-12-02 20:35:07 +00:00
Alasdair Kergon
b79c897ea1
Extend allocation areas to avoid overflow with contiguous with other PVs.
...
Another pvmove fix.
2005-11-10 14:45:39 +00:00
Alasdair Kergon
ad6b0ebb73
rename deptree
2005-11-09 13:08:41 +00:00
Alasdair Kergon
5f4b2acfe5
Replacement activation code. [Don't use this yet!]
2005-11-08 22:52:26 +00:00
Alasdair Kergon
f9a8e6ee3b
Fix lvdisplay to show all mirror destinations.
2005-10-26 16:12:36 +00:00
Alasdair Kergon
9011aed958
Fix LVM2- prefix changes; export build_dlid.
2005-10-20 21:07:57 +00:00
Alasdair Kergon
2262b32057
Use hash, bitset, malloc, pool from libdevmapper.
2005-10-16 23:03:59 +00:00
Alasdair Kergon
dbb43034e6
Don't assume exactly two mirrors when parsing mirror status
2005-09-02 16:59:46 +00:00
Alasdair Kergon
07d318310b
Prepare tools to support clustered mirrors.
2005-08-14 23:18:28 +00:00
Alasdair Kergon
197632009b
Move compose_log_line() into mirror directory.
2005-08-10 17:19:46 +00:00
Alasdair Kergon
8211a13ce0
Always insert an intermediate layer for mirrors.
...
Suppress hidden LVs from reports unless --all is given.
Use square brackets for hidden LVs in reports.
Centralise restrictions on LV names.
2005-06-03 14:49:51 +00:00
Alasdair Kergon
60f13f01d2
Basic support for mirrors.
2005-06-01 16:51:55 +00:00
Alasdair Kergon
f1379332dc
extract compose_log_line
2005-04-17 23:59:04 +00:00
Alasdair Kergon
c4ddb31abf
Rename old segtypes files to segtype.
2004-09-16 18:40:56 +00:00
Alasdair Kergon
19d1e7102c
Write log message when each segtype/format gets initialised.
2004-09-14 17:37:51 +00:00
Alasdair Kergon
cab8ea7c62
Cluster-extension-only installation.
2004-08-18 18:57:40 +00:00
Alasdair Kergon
392b28ec5c
Support for PE ranges in pvmove source PV.
2004-08-17 22:09:02 +00:00
Alasdair Kergon
b7d0982ae7
tidy relative paths in makefile includes
2004-06-15 17:25:07 +00:00
Alasdair Kergon
224565478c
Some basic checking for presence of device-mapper targets.
2004-05-05 18:11:43 +00:00
Alasdair Kergon
cb919290c2
Separate out polldaemon.
2004-05-05 17:56:20 +00:00
Alasdair Kergon
4922197a33
Begin to separate out segment types.
2004-05-04 21:25:57 +00:00