Milan Broz
ed2a931ae3
Fix snapshot segment import to not use duplicate segments & replace.
...
The snapshot segment (snapshotX) is created twice
during the text metadata segment processing.
This can cause temporary violation of max_lv count.
Simplify the code, snapshot segment is properly initialized
in init_snapshot_seg function now and do not need to be replaced
by vg_add_snapshot call.
The vg_add_snapshot() is now usefull only for adding new
snapshot and it shares the same initialization function.
The snapshot name is always generated, name paramater can be
removed from function call.
2009-05-13 21:21:58 +00:00
taka
6f5ed95f71
Save and restore the previous logging level when log level is changed.
2009-04-02 21:34:41 +00:00
Alasdair Kergon
c99f525821
Fix last check-ins: seg can be NULL.
2009-02-28 20:04:24 +00:00
Alasdair Kergon
6f53e4b536
Attempt cleanup in child before execing new binary in exec_cmd()
2009-02-28 00:54:06 +00:00
Alasdair Kergon
a2bfad1c29
Right, a simple build (without options) is working again.
2008-11-03 22:14:30 +00:00
Alasdair Kergon
2ade7a15e2
add libdevmapper-event.h
2008-10-31 22:41:51 +00:00
Alasdair Kergon
69e4400774
Cease recognising snapshot-in-use percentages returned by early development kernels.
2008-07-15 00:25:52 +00:00
Milan Broz
e3db0b39b9
Add detection of clustered mirror log capability.
...
Currently only check for kernel module presence.
2008-04-07 10:23:47 +00:00
Alasdair Kergon
2b83c80593
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
1ddd4509dc
Some whitespace tidy-ups.
2008-01-30 14:00:02 +00:00
Alasdair Kergon
6af3f4f4cf
Use stack return macros throughout.
2008-01-30 13:19:47 +00:00
Dave Wysochanski
80e070a857
Fix warning on conditional compile, unused variable
2008-01-11 17:44:26 +00:00
Petr Rockai
d9885b1b64
Add snapshot dmeventd library (enables dmeventd snapshot monitoring).
2008-01-09 15:32:19 +00:00
Alasdair Kergon
705b96c6f9
Fix orphan-related locking in pvdisplay and pvs.
...
Fix missing VG unlocks in some pvchange error paths.
Add some missing validation of VG names.
Rename validate_vg_name() to validate_new_vg_name().
Change orphan lock to VG_ORPHANS.
Change format1 to use ORPHAN as orphan VG name.
2007-11-02 20:40:05 +00:00
Dave Wysochanski
f0761fc570
Non-functional change - refactor vg_add_snapshot fid parameter.
2007-10-11 18:51:21 +00:00
Jim Meyering
c99204d370
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
d080291150
Clean up numerous compiler warnings that crept in recently.
...
Remove several unused parameters from _allocate().
2007-08-22 14:38:18 +00:00
Alasdair Kergon
3f507a26fb
Fix inconsistent licence notices: executables are GPLv2; libraries LGPLv2.1.
2007-08-20 20:55:30 +00:00
Dave Wysochanski
5f951faf32
Don't use index and rindex functions marked by SUSv3 as legacy - Jakub Bogusz <qboosh@pld-linux.org>
2007-07-02 11:17:21 +00:00
Alasdair Kergon
40e8631f63
Add segment parameter to target_present functions.
2006-10-18 18:01:53 +00:00
Alasdair Kergon
d039ce89af
Add LV column to reports listing kernel modules needed for activation.
2006-10-03 17:55:20 +00:00
Alasdair Kergon
7840c78a23
Add DISTCLEAN_TARGETS to make template for configure.h.
...
More fixes to error paths.
2006-05-16 20:53:13 +00:00
Alasdair Kergon
ead252fee4
Add mirror_library description to example.conf.
...
More compile-time cleanup.
2006-05-11 17:58:58 +00:00
Alasdair Kergon
45dca55fc8
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
70e45ad37b
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
41c86b0d19
Replacement activation code. [Don't use this yet!]
2005-11-08 22:52:26 +00:00
Alasdair Kergon
7b78edb1b7
Attempt to load missing targets using modprobe.
2005-10-17 17:56:27 +00:00
Alasdair Kergon
67eb7723d6
Use hash, bitset, malloc, pool from libdevmapper.
2005-10-16 23:03:59 +00:00
Alasdair Kergon
f8782ee2d7
Internal snapshot code restructuring.
2005-04-07 12:39:44 +00:00
Alasdair Kergon
e0e7a685ef
Remove unused internal non-persistent snapshot option.
2005-04-07 12:27:57 +00:00
Alasdair Kergon
a4cf792e6d
store snapshot id as lvid internally
2005-04-07 12:24:48 +00:00
Alasdair Kergon
d14efacac7
Fix snapshot device size bug (since 2.01.01).
2005-01-27 15:48:49 +00:00
Alasdair Kergon
243494c25e
Store snapshot and origin sizes separately.
2005-01-19 17:19:39 +00:00
Alasdair Kergon
12e5b0681b
Rename old segtypes files to segtype.
2004-09-16 18:40:56 +00:00
Alasdair Kergon
798dc9948b
Write log message when each segtype/format gets initialised.
2004-09-14 17:37:51 +00:00
Alasdair Kergon
c65d95bf29
Cluster-extension-only installation.
2004-08-18 18:57:40 +00:00
Alasdair Kergon
5af71af51c
tidy relative paths in makefile includes
2004-06-15 17:25:07 +00:00
Alasdair Kergon
793ad1f2d4
Add --type to lvcreate/resize.
...
Add virtual segment types, zero and error.
A large sparse device can be constructed as a writeable snapshot of a large
zero device.
2004-05-11 16:01:58 +00:00
Alasdair Kergon
e34577499d
Some basic checking for presence of device-mapper targets.
2004-05-05 18:11:43 +00:00
Alasdair Kergon
fc5c61cc8b
Begin to separate out segment types.
2004-05-04 21:25:57 +00:00