]> sourceware.org Git - lvm2.git/log
lvm2.git
16 years agoFix lvresize to dump stack if vg_lock_and_read() fails.
Dave Wysochanski [Wed, 2 Apr 2008 12:17:30 +0000 (12:17 +0000)]
Fix lvresize to dump stack if vg_lock_and_read() fails.

Necessary because vg_lock_and_read() may fail silently if the vg_check_status() call fails.

Also add lvresize tests.

16 years agoCache VG metadata internally while VG lock is held.
Alasdair Kergon [Tue, 1 Apr 2008 22:40:13 +0000 (22:40 +0000)]
Cache VG metadata internally while VG lock is held.

16 years agoFix redundant lvresize message if vg doesn't exist.
Dave Wysochanski [Tue, 1 Apr 2008 22:15:16 +0000 (22:15 +0000)]
Fix redundant lvresize message if vg doesn't exist.

BEFORE:
tools/lvm lvresize -l +4 vg22/lv1linear
  Volume group "vg22" not found
  Volume group vg22 doesn't exist

AFTER:
tools/lvm lvresize -l +4 vg22/lv1linear
  Volume group "vg22" not found

16 years agoFix another allocation bug with clvmd and large node IDs.`
Christine Caulfield [Tue, 1 Apr 2008 15:01:30 +0000 (15:01 +0000)]
Fix another allocation bug with clvmd and large node IDs.`

16 years agoAdd find_lv_in_lv_list() and find_pv_in_pv_list().
Dave Wysochanski [Fri, 28 Mar 2008 19:08:23 +0000 (19:08 +0000)]
Add find_lv_in_lv_list() and find_pv_in_pv_list().
Update _add_pvs() to call find_pv_in_pv_list().

16 years agoEnhance test debugging by updating verbose mode of check_*_field_ functions.
Dave Wysochanski [Fri, 28 Mar 2008 18:02:22 +0000 (18:02 +0000)]
Enhance test debugging by updating verbose mode of check_*_field_ functions.

Author: Dave Wysochanski <dwysocha@redhat.com>

16 years agoFix a couple of uninitialised variables. The newfd one could cause
Christine Caulfield [Fri, 28 Mar 2008 12:58:09 +0000 (12:58 +0000)]
Fix a couple of uninitialised variables. The newfd one could cause
some obscure hangs.

16 years agoAdd vgmerge tests.
Dave Wysochanski [Wed, 26 Mar 2008 18:03:35 +0000 (18:03 +0000)]
Add vgmerge tests.

16 years agoUse list_move() in applicable places.
Dave Wysochanski [Wed, 26 Mar 2008 17:26:32 +0000 (17:26 +0000)]
Use list_move() in applicable places.

16 years agoAdd pvseg_is_allocated() for identifying a PV segment allocated to a LV.
Dave Wysochanski [Wed, 26 Mar 2008 16:48:10 +0000 (16:48 +0000)]
Add pvseg_is_allocated() for identifying a PV segment allocated to a LV.

16 years agoAdd list_move() support function for list manipulation.
Dave Wysochanski [Wed, 26 Mar 2008 16:20:54 +0000 (16:20 +0000)]
Add list_move() support function for list manipulation.

16 years agoAdd 'is_reserved_lvname()' helper function.
Dave Wysochanski [Tue, 25 Mar 2008 15:24:59 +0000 (15:24 +0000)]
Add 'is_reserved_lvname()' helper function.

Very similar to apply_lvname_restrictions but without the error messages.

16 years agoCorrect command name in lvmdiskscan man page.
Alasdair Kergon [Tue, 25 Mar 2008 12:37:48 +0000 (12:37 +0000)]
Correct command name in lvmdiskscan man page.

16 years agoWhen reallocating the node IDs array, make it bigger rather than smaller!
Christine Caulfield [Tue, 25 Mar 2008 10:41:59 +0000 (10:41 +0000)]
When reallocating the node IDs array, make it bigger rather than smaller!

16 years agoAdd vgsplit tests to verfy attributes of new VG match source VG.
Dave Wysochanski [Sun, 23 Mar 2008 15:40:35 +0000 (15:40 +0000)]
Add vgsplit tests to verfy attributes of new VG match source VG.

Author: Dave Wysochanski <dwysocha@redhat.com>

16 years agoFixup vgsplit tests in preparation for vgsplit changes.
Dave Wysochanski [Fri, 21 Mar 2008 22:00:29 +0000 (22:00 +0000)]
Fixup vgsplit tests in preparation for vgsplit changes.

16 years agoUpdate vgsplit tests to execute twice (existing and new VG as destination).
Dave Wysochanski [Fri, 21 Mar 2008 21:14:38 +0000 (21:14 +0000)]
Update vgsplit tests to execute twice (existing and new VG as destination).

16 years agoAdd LV and VG name restrictions to the lvm man page.
Dave Wysochanski [Thu, 20 Mar 2008 18:34:29 +0000 (18:34 +0000)]
Add LV and VG name restrictions to the lvm man page.

Original patch by: Gerrard Geldenhuis <Gerrard.Geldenhuis@datacash.com>

16 years agopreparation for vg cache
Alasdair Kergon [Mon, 17 Mar 2008 16:51:31 +0000 (16:51 +0000)]
preparation for vg cache

16 years agoFix potential thread deadlock.
Christine Caulfield [Mon, 17 Mar 2008 09:37:47 +0000 (09:37 +0000)]
Fix potential thread deadlock.
Also make local sockets non-blocking.

16 years agoConst cleanups in find_* functions.
Dave Wysochanski [Thu, 13 Mar 2008 22:51:24 +0000 (22:51 +0000)]
Const cleanups in find_* functions.

16 years agoRefactor text format initialisation into _init_text_import.
Alasdair Kergon [Thu, 13 Mar 2008 12:33:22 +0000 (12:33 +0000)]
Refactor text format initialisation into _init_text_import.

16 years agoAdd metadata test for escaping double quotes in device names (bz431474).
Milan Broz [Wed, 12 Mar 2008 17:34:58 +0000 (17:34 +0000)]
Add metadata test for escaping double quotes in device names (bz431474).

16 years agoEscape double quotes and backslashes in external metadata and config data.
Alasdair Kergon [Wed, 12 Mar 2008 16:03:22 +0000 (16:03 +0000)]
Escape double quotes and backslashes in external metadata and config data.
Add functions for escaping double quotes in strings.
Rename count_chars_len to count_chars.

16 years agoUse return_0 in a couple more places.
Alasdair Kergon [Mon, 10 Mar 2008 18:51:27 +0000 (18:51 +0000)]
Use return_0 in a couple more places.
Correct a function name typo in _line_append error message.

16 years agoInclude limits.h so it compiles with newer headers.
Christine Caulfield [Thu, 6 Mar 2008 08:41:05 +0000 (08:41 +0000)]
Include limits.h so it compiles with newer headers.

16 years agoadd vd to filters
Alasdair Kergon [Wed, 5 Mar 2008 18:15:04 +0000 (18:15 +0000)]
add vd to filters

16 years agoUpdate vgsplit tests.
Dave Wysochanski [Tue, 4 Mar 2008 22:49:00 +0000 (22:49 +0000)]
Update vgsplit tests.
- Add validation on pv_count, lv_count, and snap_count after split
NOTE: Some of these counts are misleading.  If you compare "lvs" output
with these counts you will be left scratching your head what a "logical volume"
really is.  ;-)

16 years agoUpdate vgsplit tests.
Dave Wysochanski [Tue, 4 Mar 2008 19:48:32 +0000 (19:48 +0000)]
Update vgsplit tests.
- Divide into 'usage' and 'operation' tests.
- Add operation tests for specific LV types.

16 years agoRefactor _move_pv() in vgsplit.
Dave Wysochanski [Fri, 29 Feb 2008 00:13:48 +0000 (00:13 +0000)]
Refactor _move_pv() in vgsplit.
Should be no functional change.

16 years agoAdd vgsplit test to check failure when PV not in source volume group.
Dave Wysochanski [Fri, 29 Feb 2008 00:09:21 +0000 (00:09 +0000)]
Add vgsplit test to check failure when PV not in source volume group.

16 years agoFix t-vgsplit-operation.sh lv2-3 definitions to include test signature.
Dave Wysochanski [Thu, 28 Feb 2008 17:39:47 +0000 (17:39 +0000)]
Fix t-vgsplit-operation.sh lv2-3 definitions to include test signature.

16 years agoFix t-vgsplit-operation.sh lv1 definition to include test signature.
Dave Wysochanski [Thu, 28 Feb 2008 16:48:09 +0000 (16:48 +0000)]
Fix t-vgsplit-operation.sh lv1 definition to include test signature.

16 years agoFix resetting of MIRROR_IMAGE and VISIBLE_LV after removal of LV.
Alasdair Kergon [Fri, 22 Feb 2008 13:28:29 +0000 (13:28 +0000)]
Fix resetting of MIRROR_IMAGE and VISIBLE_LV after removal of LV.

16 years agoFix remove_layer_from_lv to empty the LV before removing it. (2.02.30)
Alasdair Kergon [Fri, 22 Feb 2008 13:22:44 +0000 (13:22 +0000)]
Fix remove_layer_from_lv to empty the LV before removing it. (2.02.30)

16 years agoAdd missing no-longer-used segs_using_this_lv test to check_lv_segments.
Alasdair Kergon [Fri, 22 Feb 2008 13:22:21 +0000 (13:22 +0000)]
Add missing no-longer-used segs_using_this_lv test to check_lv_segments.

16 years agoRemove redundant if-before-free tests.
Jim Meyering [Fri, 15 Feb 2008 14:14:58 +0000 (14:14 +0000)]
Remove redundant if-before-free tests.

16 years agoRemove redundant if-before-free tests in clvmd.c.
Jim Meyering [Fri, 15 Feb 2008 14:12:32 +0000 (14:12 +0000)]
Remove redundant if-before-free tests in clvmd.c.

16 years agois_orphan: make parameter "const" to avoid compiler warning
Jim Meyering [Wed, 13 Feb 2008 20:01:48 +0000 (20:01 +0000)]
is_orphan: make parameter "const" to avoid compiler warning

16 years agoFix lvconvert detection of mirror conversion in progress.
Alasdair Kergon [Tue, 12 Feb 2008 13:29:08 +0000 (13:29 +0000)]
Fix lvconvert detection of mirror conversion in progress.

16 years agoAvoid automatic lvconvert polldaemon invocation when -R specified.
Alasdair Kergon [Tue, 12 Feb 2008 13:26:53 +0000 (13:26 +0000)]
Avoid automatic lvconvert polldaemon invocation when -R specified.

16 years agoReflect actual default setting of preferred_names in example.conf and
Dave Wysochanski [Mon, 11 Feb 2008 16:57:40 +0000 (16:57 +0000)]
Reflect actual default setting of preferred_names in example.conf and
update comments.

16 years agoFix 'pvs -a' to detect VGs of PVs without metadata areas.
Alasdair Kergon [Wed, 6 Feb 2008 16:09:51 +0000 (16:09 +0000)]
Fix 'pvs -a' to detect VGs of PVs without metadata areas.

16 years agosplit orphan VG by format type
Alasdair Kergon [Wed, 6 Feb 2008 15:47:28 +0000 (15:47 +0000)]
split orphan VG by format type

16 years ago Fix lvresize to support /dev/mapper prefix in the lvname
Zdenek Kabelac [Wed, 6 Feb 2008 12:45:32 +0000 (12:45 +0000)]
  Fix lvresize to support /dev/mapper prefix in the lvname
  Fix unfilled paramater passed to fsadm from lvresize
  Update fsadm to call lvresize if the partition size differs (with option -l)
  Fix fsadm to support vg/lv name (like the rest of lv-tools)

16 years agoUpdate usage message for clvmd.
Patrick Caulfield [Tue, 5 Feb 2008 09:38:04 +0000 (09:38 +0000)]
Update usage message for clvmd.
Fix clvmd man page printing <br>, clarified debug options.

16 years agoFix default preferred_names filter to use /dev/mapper/mpath devices.
Dave Wysochanski [Mon, 4 Feb 2008 20:26:14 +0000 (20:26 +0000)]
Fix default preferred_names filter to use /dev/mapper/mpath devices.
If these devices exist, we should be using them for multipath rather than any
underlying device names.
Reference: http://kbase.redhat.com/faq/FAQ_96_11196.shtma
bz195685

16 years agopost-release
Alasdair Kergon [Thu, 31 Jan 2008 12:41:13 +0000 (12:41 +0000)]
post-release

16 years agopre-release
Alasdair Kergon [Thu, 31 Jan 2008 12:36:58 +0000 (12:36 +0000)]
pre-release

16 years agoa couple more compiler warnings
Alasdair Kergon [Thu, 31 Jan 2008 12:35:31 +0000 (12:35 +0000)]
a couple more compiler warnings

16 years agoFix mirror log name construction during lvconvert. (2.02.30)
Alasdair Kergon [Thu, 31 Jan 2008 12:19:36 +0000 (12:19 +0000)]
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.

16 years agoonly read labels once between each lock event
Alasdair Kergon [Wed, 30 Jan 2008 16:18:37 +0000 (16:18 +0000)]
only read labels once between each lock event

16 years agoundo a few 'stack' moves
Alasdair Kergon [Wed, 30 Jan 2008 14:17:29 +0000 (14:17 +0000)]
undo a few 'stack' moves

16 years agoSome whitespace tidy-ups.
Alasdair Kergon [Wed, 30 Jan 2008 14:00:02 +0000 (14:00 +0000)]
Some whitespace tidy-ups.

16 years agoUse stack return macros throughout.
Alasdair Kergon [Wed, 30 Jan 2008 13:19:47 +0000 (13:19 +0000)]
Use stack return macros throughout.

16 years agoRely upon internally-cached PV labels while corresponding VG lock is held.
Alasdair Kergon [Tue, 29 Jan 2008 23:45:48 +0000 (23:45 +0000)]
Rely upon internally-cached PV labels while corresponding VG lock is held.

16 years agopost-release
Alasdair Kergon [Tue, 29 Jan 2008 12:02:04 +0000 (12:02 +0000)]
post-release

16 years agopre-release
Alasdair Kergon [Tue, 29 Jan 2008 11:48:11 +0000 (11:48 +0000)]
pre-release

16 years agoFix two check_lv_segments error messages to show whole segment.
Alasdair Kergon [Sat, 26 Jan 2008 00:30:28 +0000 (00:30 +0000)]
Fix two check_lv_segments error messages to show whole segment.

16 years ago.
Alasdair Kergon [Sat, 26 Jan 2008 00:25:45 +0000 (00:25 +0000)]
.

16 years agoRefactor mirror log attachment code.
Alasdair Kergon [Sat, 26 Jan 2008 00:25:04 +0000 (00:25 +0000)]
Refactor mirror log attachment code.

16 years agoFix internal metadata corruption in lvchange --resync.
Alasdair Kergon [Sat, 26 Jan 2008 00:13:45 +0000 (00:13 +0000)]
Fix internal metadata corruption in lvchange --resync.

16 years agosuppress compiler warning
Alasdair Kergon [Tue, 22 Jan 2008 16:02:26 +0000 (16:02 +0000)]
suppress compiler warning

16 years agoupdate
Alasdair Kergon [Tue, 22 Jan 2008 15:58:31 +0000 (15:58 +0000)]
update

16 years agoFix vgsplit test mode
Dave Wysochanski [Tue, 22 Jan 2008 03:49:39 +0000 (03:49 +0000)]
Fix vgsplit test mode

16 years agoFix vgsplit tests 12-13
Dave Wysochanski [Tue, 22 Jan 2008 03:30:14 +0000 (03:30 +0000)]
Fix vgsplit tests 12-13

16 years agoFix vgsplit - print different message on successful split of existing / new vg
Dave Wysochanski [Tue, 22 Jan 2008 03:25:45 +0000 (03:25 +0000)]
Fix vgsplit - print different message on successful split of existing / new vg
Fix vgsplit - fix a couple error paths that forgot to call unlock_vg
Update vgsplit test cases

16 years agoFix vgsplit - print error if vgcreate option given w/existing vg destination
Dave Wysochanski [Tue, 22 Jan 2008 02:48:53 +0000 (02:48 +0000)]
Fix vgsplit - print error if vgcreate option given w/existing vg destination
Fix vgsplit - reject split if metadata types or clustered attributes differ
Fix vgsplit - remove physicalextentsize option
Add vgsplit test cases

16 years agoRemove redundant cnxman-socket.h file.
Patrick Caulfield [Mon, 21 Jan 2008 14:07:46 +0000 (14:07 +0000)]
Remove redundant cnxman-socket.h file.

16 years agoFix pvs, vgs, lvs error exit status on some error paths.
Alasdair Kergon [Sun, 20 Jan 2008 01:23:46 +0000 (01:23 +0000)]
Fix pvs, vgs, lvs error exit status on some error paths.
(note -o help is now considered error)

16 years agoUse log_warn for reporting field help text instead of log_print.
Alasdair Kergon [Sun, 20 Jan 2008 01:14:38 +0000 (01:14 +0000)]
Use log_warn for reporting field help text instead of log_print.

16 years agoclarify
Alasdair Kergon [Sat, 19 Jan 2008 12:36:37 +0000 (12:36 +0000)]
clarify

16 years agopost-release
Alasdair Kergon [Sat, 19 Jan 2008 12:30:55 +0000 (12:30 +0000)]
post-release

16 years agoPre-release
Alasdair Kergon [Sat, 19 Jan 2008 12:28:03 +0000 (12:28 +0000)]
Pre-release

16 years agoFix lvcreate --nosync not to wait for non-happening sync.
Alasdair Kergon [Fri, 18 Jan 2008 22:02:37 +0000 (22:02 +0000)]
Fix lvcreate --nosync not to wait for non-happening sync.

16 years agoadd lvconvert messages
Alasdair Kergon [Fri, 18 Jan 2008 22:00:46 +0000 (22:00 +0000)]
add lvconvert messages

16 years agoFix lvcreate -M1 readahead.
Alasdair Kergon [Fri, 18 Jan 2008 21:56:39 +0000 (21:56 +0000)]
Fix lvcreate -M1 readahead.

16 years agoAdd a test case for 'vgreduce --removemissing' on stacked mirror
Dave Wysochanski [Thu, 17 Jan 2008 18:29:36 +0000 (18:29 +0000)]
Add a test case for 'vgreduce --removemissing' on stacked mirror

16 years agoMore test script fixes.
Dave Wysochanski [Thu, 17 Jan 2008 18:05:57 +0000 (18:05 +0000)]
More test script fixes.

16 years agopre-release review cleanups
Alasdair Kergon [Thu, 17 Jan 2008 17:17:09 +0000 (17:17 +0000)]
pre-release review cleanups

16 years agoMinor test fix
Dave Wysochanski [Thu, 17 Jan 2008 15:56:53 +0000 (15:56 +0000)]
Minor test fix

16 years agofix default stripesize
Alasdair Kergon [Thu, 17 Jan 2008 15:53:01 +0000 (15:53 +0000)]
fix default stripesize

16 years agofix default extent_size
Alasdair Kergon [Thu, 17 Jan 2008 15:31:18 +0000 (15:31 +0000)]
fix default extent_size

16 years agopre-release
Alasdair Kergon [Thu, 17 Jan 2008 15:02:59 +0000 (15:02 +0000)]
pre-release

16 years agorename lv_remap_error
Alasdair Kergon [Thu, 17 Jan 2008 13:54:05 +0000 (13:54 +0000)]
rename lv_remap_error

16 years agomirror log stuff
Alasdair Kergon [Thu, 17 Jan 2008 13:37:51 +0000 (13:37 +0000)]
mirror log stuff

16 years agolvconvert/vgreduce fixes
Alasdair Kergon [Thu, 17 Jan 2008 13:13:54 +0000 (13:13 +0000)]
lvconvert/vgreduce fixes

16 years agoFixup vgsplit man page
Dave Wysochanski [Thu, 17 Jan 2008 03:18:18 +0000 (03:18 +0000)]
Fixup vgsplit man page

16 years agoFix descriptions in the newly added test cases
Dave Wysochanski [Thu, 17 Jan 2008 02:20:48 +0000 (02:20 +0000)]
Fix descriptions in the newly added test cases

16 years agoanother lvconvert fix
Alasdair Kergon [Wed, 16 Jan 2008 22:54:49 +0000 (22:54 +0000)]
another lvconvert fix

16 years agofix a _get_vgs return
Alasdair Kergon [Wed, 16 Jan 2008 22:52:46 +0000 (22:52 +0000)]
fix a _get_vgs return

16 years agoFix 'make check' runnable with recent versions of dmsetup.
Dave Wysochanski [Wed, 16 Jan 2008 21:21:22 +0000 (21:21 +0000)]
Fix 'make check' runnable with recent versions of dmsetup.
Fix 'make check' to use DMDIR to check DM_DEV_DIR support in dmsetup.
Add basic test cases for mirrored LV.
Add basic test cases for lvconvert mirror.
Add basic test cases for pvmove.
Jun'ichi Nomura <j-nomura@ce.jp.nec.com>

Add new vgsplit and vgmerge tests.
Dave Wysochanski <dwysocha@redhat.com>

16 years agoadditional safety check on new segment list
Alasdair Kergon [Wed, 16 Jan 2008 20:00:01 +0000 (20:00 +0000)]
additional safety check on new segment list

16 years agoCreate vgs_are_compatible() fn to check whether vgs are compatible for merging.
Dave Wysochanski [Wed, 16 Jan 2008 19:54:39 +0000 (19:54 +0000)]
Create vgs_are_compatible() fn to check whether vgs are compatible for merging.
Add new vgmerge and vgsplit tests to check rejection of incompatible vgs.
Cleanup comments.
Bugzilla: bz251992

---
 lib/metadata/metadata-exported.h |    3 +
 lib/metadata/metadata.c          |   89 +++++++++++++++++++++++++++++++++-
 test/t-vgmerge-usage.sh          |  101 +++++++++++++++++++++++++++++++++++++++
 test/t-vgsplit-operation.sh      |   20 +++++++
 tools/vgmerge.c                  |   69 --------------------------
 tools/vgsplit.c                  |    5 -
 6 files changed, 215 insertions(+), 72 deletions(-)

16 years agoadjust mirror log error message
Alasdair Kergon [Wed, 16 Jan 2008 19:50:23 +0000 (19:50 +0000)]
adjust mirror log error message

16 years agofix to earlier checkin
Alasdair Kergon [Wed, 16 Jan 2008 19:40:42 +0000 (19:40 +0000)]
fix to earlier checkin

16 years agocope with stacked LVs as well as PVs when deciding which bits of mirrors to remove
Alasdair Kergon [Wed, 16 Jan 2008 19:38:39 +0000 (19:38 +0000)]
cope with stacked LVs as well as PVs when deciding which bits of mirrors to remove

16 years agoallow a mirror to contain only one mimage
Alasdair Kergon [Wed, 16 Jan 2008 19:18:51 +0000 (19:18 +0000)]
allow a mirror to contain only one mimage

16 years agofix mirror log manipulation during lv convert
Alasdair Kergon [Wed, 16 Jan 2008 19:16:48 +0000 (19:16 +0000)]
fix mirror log manipulation during lv convert

16 years agoexport find_temporary_mirror()
Alasdair Kergon [Wed, 16 Jan 2008 19:13:51 +0000 (19:13 +0000)]
export find_temporary_mirror()

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