]> sourceware.org Git - lvm2.git/log
lvm2.git
15 years agoFix misleading error message when there is no allocatable extents in VG.
Milan Broz [Mon, 29 Sep 2008 09:59:10 +0000 (09:59 +0000)]
Fix misleading error message when there is no allocatable extents in VG.

15 years agoFix handling of PVs which reappeared with old metadata version.
Milan Broz [Thu, 25 Sep 2008 15:59:10 +0000 (15:59 +0000)]
Fix handling of PVs which reappeared with old metadata version.

15 years agoTry to fix possible infinite loop in dependency tree walking (by mornfall).
Milan Broz [Thu, 25 Sep 2008 15:57:02 +0000 (15:57 +0000)]
Try to fix possible infinite loop in dependency tree walking (by mornfall).

15 years agoFix mirror DSO to call vgreduce with proper parameters.
Milan Broz [Thu, 25 Sep 2008 15:52:29 +0000 (15:52 +0000)]
Fix mirror DSO to call vgreduce with proper parameters.

15 years agoFix validation of --minor and --major in lvcreate to require -My always.
Milan Broz [Wed, 24 Sep 2008 16:32:51 +0000 (16:32 +0000)]
Fix validation of --minor and --major in lvcreate to require -My always.

15 years ago.
Alasdair Kergon [Fri, 19 Sep 2008 18:31:20 +0000 (18:31 +0000)]
.

15 years agosuppress warning if old value found for now
Alasdair Kergon [Fri, 19 Sep 2008 18:26:41 +0000 (18:26 +0000)]
suppress warning if old value found for now

15 years agoAdd more vgreduce tests. (Jaroslav Stava)
Milan Broz [Fri, 19 Sep 2008 16:12:25 +0000 (16:12 +0000)]
Add more vgreduce tests. (Jaroslav Stava)

15 years agoFix vgreduce test, now requires --force flag. (Jaroslav Stava)
Milan Broz [Fri, 19 Sep 2008 16:10:46 +0000 (16:10 +0000)]
Fix vgreduce test,  now requires --force flag. (Jaroslav Stava)

15 years agofix last release
Alasdair Kergon [Fri, 19 Sep 2008 15:44:03 +0000 (15:44 +0000)]
fix last release

15 years ago. old-v2_02_40 v2_02_40
Alasdair Kergon [Fri, 19 Sep 2008 07:18:03 +0000 (07:18 +0000)]
.

15 years agorename var
Alasdair Kergon [Fri, 19 Sep 2008 07:12:45 +0000 (07:12 +0000)]
rename var

15 years agorevert unexplained removal of a '<backtrace>' message
Alasdair Kergon [Fri, 19 Sep 2008 07:03:23 +0000 (07:03 +0000)]
revert unexplained removal of a '<backtrace>' message

15 years agopre-release
Alasdair Kergon [Fri, 19 Sep 2008 06:48:48 +0000 (06:48 +0000)]
pre-release

15 years ago.
Alasdair Kergon [Fri, 19 Sep 2008 06:44:54 +0000 (06:44 +0000)]
.

15 years agoImprove the way VGs with PVs missing are handled so manual intervention
Alasdair Kergon [Fri, 19 Sep 2008 06:42:00 +0000 (06:42 +0000)]
Improve the way VGs with PVs missing are handled so manual intervention
is required in fewer circumstances.  (mornfall)

15 years agoAdd device/md_chunk_alignment to lvm.conf
Alasdair Kergon [Fri, 19 Sep 2008 05:33:37 +0000 (05:33 +0000)]
Add device/md_chunk_alignment to lvm.conf

15 years agoadjust pe_align for md chunk size
Alasdair Kergon [Fri, 19 Sep 2008 05:19:09 +0000 (05:19 +0000)]
adjust pe_align for md chunk size

15 years agoremove unsed var
Alasdair Kergon [Fri, 19 Sep 2008 04:30:02 +0000 (04:30 +0000)]
remove unsed var

15 years agoPass struct physical_volume to pe_align.
Alasdair Kergon [Fri, 19 Sep 2008 04:28:58 +0000 (04:28 +0000)]
Pass struct physical_volume to pe_align.

15 years agoremove unused var
Alasdair Kergon [Fri, 19 Sep 2008 03:45:34 +0000 (03:45 +0000)]
remove unused var

15 years agoStore sysfs location in struct cmd_context.
Alasdair Kergon [Fri, 19 Sep 2008 03:42:37 +0000 (03:42 +0000)]
Store sysfs location in struct cmd_context.

15 years agofix last patch return code
Alasdair Kergon [Fri, 19 Sep 2008 00:20:39 +0000 (00:20 +0000)]
fix last patch return code

15 years agoFix last checkin - tested wrong dnode. dm_v1_02_28 old-dm_v1_02_28
Alasdair Kergon [Thu, 18 Sep 2008 22:55:33 +0000 (22:55 +0000)]
Fix last checkin - tested wrong dnode.

15 years agopost-release
Alasdair Kergon [Thu, 18 Sep 2008 20:09:51 +0000 (20:09 +0000)]
post-release

15 years agoAvoid shuffling remaining mirror images when removing one, retaining primary.
Alasdair Kergon [Thu, 18 Sep 2008 19:56:50 +0000 (19:56 +0000)]
Avoid shuffling remaining mirror images when removing one, retaining primary.

15 years agoAdd missing LV error target activation in _remove_mirror_images.
Alasdair Kergon [Thu, 18 Sep 2008 19:09:47 +0000 (19:09 +0000)]
Add missing LV error target activation in _remove_mirror_images.

15 years agoPrevent resizing an LV while lvconvert is using it.
Alasdair Kergon [Thu, 18 Sep 2008 18:51:58 +0000 (18:51 +0000)]
Prevent resizing an LV while lvconvert is using it.

15 years agoOnly resume devices in dm_tree_preload_children if size changes.
Alasdair Kergon [Thu, 18 Sep 2008 18:34:53 +0000 (18:34 +0000)]
Only resume devices in dm_tree_preload_children if size changes.

15 years agoAvoid repeatedly wiping cache while VG_GLOBAL is held in vgscan & pvscan.
Alasdair Kergon [Tue, 16 Sep 2008 18:05:11 +0000 (18:05 +0000)]
Avoid repeatedly wiping cache while VG_GLOBAL is held in vgscan & pvscan.

15 years agorevert unnecessary 'stack's
Alasdair Kergon [Mon, 15 Sep 2008 17:06:55 +0000 (17:06 +0000)]
revert unnecessary 'stack's

15 years agoFix pvresize to not allow resize if PV has two metadata areas.
Milan Broz [Fri, 12 Sep 2008 15:26:45 +0000 (15:26 +0000)]
Fix pvresize to not allow resize if PV has two metadata areas.

If the PV has two metadata areas, second one is located at the end of the device.

Do not allow resize of PV or second metadata area can be overwritten.
(The check was active only for orphan PVs.)

15 years agoDo not scan for lvm1 entries in /proc if not running 2.4 kernel.
Milan Broz [Wed, 10 Sep 2008 10:14:59 +0000 (10:14 +0000)]
Do not scan for lvm1 entries in /proc if not running 2.4 kernel.
(LVM1 is only present in 2.4 kernel.)

15 years agoExtend deptree buffers so the largest possible device numbers fit.
Alasdair Kergon [Tue, 2 Sep 2008 12:16:07 +0000 (12:16 +0000)]
Extend deptree buffers so the largest possible device numbers fit.

15 years agoFix setting of volume limit count if converting to lvm1 format.
Milan Broz [Fri, 29 Aug 2008 13:41:21 +0000 (13:41 +0000)]
Fix setting of volume limit count if converting to lvm1 format.

Fixes problem when after downconvert to lvm1 VG is broken:

# lvcreate -n lv1 -l 4 vg_test
  Invalid LV in extent map (PV /dev/sdb1, PE 0, LV 0, LE 0)
  ...

15 years agoAdd ctype.h header file to silence compile warning on 'isdigit'.
Dave Wysochanski [Fri, 29 Aug 2008 00:49:46 +0000 (00:49 +0000)]
Add ctype.h header file to silence compile warning on 'isdigit'.

uuid/uuid.c:86: warning: implicit declaration of function 'isdigit'

15 years agoFix vgconvert logical volume id metadata validation.
Milan Broz [Thu, 28 Aug 2008 18:41:51 +0000 (18:41 +0000)]
Fix vgconvert logical volume id metadata validation.

If volume group is downconverted to lvm1 format,
check if lvid has supported format for conversion to lv_num in lvm1.

15 years agoformat1: Not detecing label on disc is not error, remove <backtrace> from debug log
Milan Broz [Thu, 28 Aug 2008 13:41:46 +0000 (13:41 +0000)]
format1: Not detecing label on disc is not error, remove <backtrace> from debug log
(happens when you explicitly use -M 1)

15 years agoNot detecing label on disc is not error, remove <backtrace> from debug log
Milan Broz [Thu, 28 Aug 2008 13:28:13 +0000 (13:28 +0000)]
Not detecing label on disc is not error, remove <backtrace> from debug log
and report it only if device cannot be read.

15 years agofix vgreduce tests to detect partial command failure (Jaroslav Stava)
Milan Broz [Thu, 28 Aug 2008 11:20:49 +0000 (11:20 +0000)]
fix vgreduce tests to detect partial command failure (Jaroslav Stava)

15 years agoadd vgcreate rejects repeated invocation test
Milan Broz [Thu, 28 Aug 2008 11:09:58 +0000 (11:09 +0000)]
add vgcreate rejects repeated invocation test
add vgcreate fails when the only pv has --metadatacopies 0 test
(by Jaroslav Stava)

15 years agoadd vgrename by uuid test (Jaroslav Stava)
Milan Broz [Thu, 28 Aug 2008 10:59:10 +0000 (10:59 +0000)]
add vgrename by uuid test (Jaroslav Stava)
fix vgsplit rejects last mda copy test (Jaroslav Stava)

15 years agoFix lvmdump metadata gather option (-m) to work correctly. (Jaroslav Stava)
Milan Broz [Thu, 28 Aug 2008 10:40:44 +0000 (10:40 +0000)]
Fix lvmdump metadata gather option (-m) to work correctly. (Jaroslav Stava)

15 years agoAdd pvremove usage test (Jaroslav Stava)
Milan Broz [Thu, 28 Aug 2008 10:24:55 +0000 (10:24 +0000)]
Add pvremove usage test (Jaroslav Stava)

15 years ago- fix environment variable prefix to LVM (this is not GIT:-)
Milan Broz [Thu, 28 Aug 2008 10:07:34 +0000 (10:07 +0000)]
- fix environment variable prefix to LVM (this is not GIT:-)
- add lvcreate rejects repeated invocation test
- fix pvs metadata test for partial failure test
- add pvchange reject --addtag to lvm1 pv test

(All fixes by Jaroslav Stava)

15 years agoFix symbolic link creation in test infrastructure.
Dave Wysochanski [Thu, 21 Aug 2008 14:33:48 +0000 (14:33 +0000)]
Fix symbolic link creation in test infrastructure.

Original code would create "*.so" symbolic links if there were no actual
files ending in "so".  The second iteration would then cause an error
in the test logs.

15 years agofail testcase for failed commands inside the for loop
Zdeněk Kabeláč [Wed, 20 Aug 2008 13:34:33 +0000 (13:34 +0000)]
fail testcase for failed commands inside the for loop

16 years agoFix allocation bug in text metadata format write error path.
Milan Broz [Sat, 16 Aug 2008 09:46:55 +0000 (09:46 +0000)]
Fix allocation bug in text metadata format write error path.

Function _text_pv_write doesn't use memory pool but static buffer,
call dm_pool_free in error path in _raw_write_mda_header is wrong.

Move pool free only to path where is the memory pool used.

16 years agovalid parameter for lvchange -p is 'rw'
Zdeněk Kabeláč [Wed, 13 Aug 2008 14:28:17 +0000 (14:28 +0000)]
valid parameter for lvchange -p is 'rw'

16 years agoadded test for coverage improvement
Zdeněk Kabeláč [Wed, 13 Aug 2008 13:49:07 +0000 (13:49 +0000)]
added test for coverage improvement
added test for metadata type 1

16 years agoget lv_list properly from vg->lst and fix compiler warning
Zdeněk Kabeláč [Wed, 13 Aug 2008 13:42:35 +0000 (13:42 +0000)]
get lv_list properly from vg->lst and fix compiler warning

16 years agoFix vgcfgbackup to properly check filename if template is used.
Milan Broz [Wed, 13 Aug 2008 12:44:24 +0000 (12:44 +0000)]
Fix vgcfgbackup to properly check filename if template is used.

16 years agoadd tests for pvchange and vgreduce usage (Jaroslav Stava)
Milan Broz [Tue, 12 Aug 2008 10:04:31 +0000 (10:04 +0000)]
add tests for pvchange and vgreduce usage (Jaroslav Stava)

16 years agotest vgsplit: reject to give away pv with the last mda copy (Jaroslav Stava)
Milan Broz [Tue, 12 Aug 2008 10:01:56 +0000 (10:01 +0000)]
test vgsplit: reject to give away pv with the last mda copy (Jaroslav Stava)

16 years ago* more strict const
Zdeněk Kabeláč [Thu, 7 Aug 2008 14:02:32 +0000 (14:02 +0000)]
* more strict const

16 years agoadded const modifiers
Zdeněk Kabeláč [Thu, 7 Aug 2008 14:01:17 +0000 (14:01 +0000)]
added const modifiers
switched const char* to  const char[] elements to save few relocation entries

16 years agoadded const and saved relocation entry
Zdeněk Kabeláč [Thu, 7 Aug 2008 13:59:49 +0000 (13:59 +0000)]
added const and saved relocation entry

16 years ago configure aborts if lcov or genhtml are missing with --enable-profiling
Zdeněk Kabeláč [Tue, 5 Aug 2008 14:29:38 +0000 (14:29 +0000)]
  configure aborts if lcov or genhtml are missing with --enable-profiling

16 years ago add test for pool labels gfs
Zdeněk Kabeláč [Tue, 5 Aug 2008 12:33:41 +0000 (12:33 +0000)]
 add test for pool labels gfs
 add test for metadatacopies0 and snapshot manipulation

16 years ago put dmeventd into the LD_LIBRARY_PATH for lvm-wrapper
Zdeněk Kabeláč [Tue, 5 Aug 2008 12:32:08 +0000 (12:32 +0000)]
 put dmeventd into the LD_LIBRARY_PATH for lvm-wrapper

16 years ago vgremove tries to remove lv snapshot first.
Zdeněk Kabeláč [Tue, 5 Aug 2008 12:05:26 +0000 (12:05 +0000)]
 vgremove tries to remove lv snapshot first.
 Added function lv_remove_with_dependencies().

16 years agoavoid endless option parsing loop
Zdeněk Kabeláč [Tue, 5 Aug 2008 11:39:54 +0000 (11:39 +0000)]
avoid endless option parsing loop
add support for lvm verbose operation -vvvv
add dlsym path to the test config file

16 years ago* parse error output for 'auto' keyword
Zdeněk Kabeláč [Mon, 4 Aug 2008 09:15:15 +0000 (09:15 +0000)]
* parse error output for 'auto' keyword

16 years agoImprove file descriptor leak detection to display likely culprit and filename.
Alasdair Kergon [Fri, 1 Aug 2008 19:51:27 +0000 (19:51 +0000)]
Improve file descriptor leak detection to display likely culprit and filename.

16 years ago disable mdadm test-case until a better solution is found
Zdeněk Kabeláč [Fri, 1 Aug 2008 15:44:53 +0000 (15:44 +0000)]
 disable mdadm test-case until a better solution is found

16 years agoremove now-redundant slash-stripping
Alasdair Kergon [Thu, 31 Jul 2008 15:38:52 +0000 (15:38 +0000)]
remove now-redundant slash-stripping

16 years agoChange clustered mirror kernel module name from cmirror to dm-log-clustered.
Alasdair Kergon [Thu, 31 Jul 2008 14:43:39 +0000 (14:43 +0000)]
Change clustered mirror kernel module name from cmirror to dm-log-clustered.

16 years agoAvoid looping forever in _pv_analyze_mda_raw used by pvck.
Alasdair Kergon [Thu, 31 Jul 2008 13:07:01 +0000 (13:07 +0000)]
Avoid looping forever in _pv_analyze_mda_raw used by pvck.

16 years agoChange lvchange exit status to indicate if any part of the operation failed.
Alasdair Kergon [Thu, 31 Jul 2008 13:03:01 +0000 (13:03 +0000)]
Change lvchange exit status to indicate if any part of the operation failed.

16 years agoremove unused mdas variable
Alasdair Kergon [Thu, 31 Jul 2008 12:40:52 +0000 (12:40 +0000)]
remove unused mdas variable

16 years agofix pvremove for pvs without mdas
Alasdair Kergon [Thu, 31 Jul 2008 12:38:31 +0000 (12:38 +0000)]
fix pvremove for pvs without mdas

16 years agoFix pvchange to handle PVs without mdas.
Alasdair Kergon [Thu, 31 Jul 2008 12:28:51 +0000 (12:28 +0000)]
Fix pvchange to handle PVs without mdas.

16 years agoRefactor _text_pv_read and always return mda list if requested.
Alasdair Kergon [Thu, 31 Jul 2008 10:50:18 +0000 (10:50 +0000)]
Refactor _text_pv_read and always return mda list if requested.

16 years agoAdd pvcreate tests to verify failure on md array detection.
Dave Wysochanski [Tue, 29 Jul 2008 21:05:20 +0000 (21:05 +0000)]
Add pvcreate tests to verify failure on md array detection.

16 years agoFix trivial typo in pvcreate man page.
Dave Wysochanski [Tue, 29 Jul 2008 18:35:00 +0000 (18:35 +0000)]
Fix trivial typo in pvcreate man page.

16 years agoRefactor pvcreate - simplify return codes.
Dave Wysochanski [Fri, 25 Jul 2008 14:59:51 +0000 (14:59 +0000)]
Refactor pvcreate - simplify return codes.

16 years agoRefactor pvcreate - --yes argument
Dave Wysochanski [Fri, 25 Jul 2008 14:45:24 +0000 (14:45 +0000)]
Refactor pvcreate - --yes argument

16 years agoRefactor pvcreate - --force parameter.
Dave Wysochanski [Fri, 25 Jul 2008 14:36:55 +0000 (14:36 +0000)]
Refactor pvcreate - --force parameter.

16 years agoRefactor pvcreate - use '0' for no --uuid or --restorefile options.
Dave Wysochanski [Fri, 25 Jul 2008 14:12:29 +0000 (14:12 +0000)]
Refactor pvcreate - use '0' for no --uuid or --restorefile options.

16 years agoconfigure: regenerate
Jim Meyering [Fri, 25 Jul 2008 08:00:40 +0000 (08:00 +0000)]
configure: regenerate

16 years agoAvoid compiler warnings (provoked by new configure.in bug) on RHEL5.
Jim Meyering [Fri, 25 Jul 2008 08:00:18 +0000 (08:00 +0000)]
Avoid compiler warnings (provoked by new configure.in bug) on RHEL5.

Do not override the default action of AC_CHECK_LIB([readline],...
(i.e., leave the ACTION-IF-FOUND parameter blank) so that the
subsequent check for rl_completion_matches can use -lreadline.

Also, replace AC_CHECK_FUNC+AC_DEFINE with an equivalent AC_CHECK_FUNCS call.

16 years agoRefactor pvcreate - move uuid and restorefile options.
Dave Wysochanski [Fri, 25 Jul 2008 00:30:57 +0000 (00:30 +0000)]
Refactor pvcreate - move uuid and restorefile options.

16 years agoAdd pvcreate tests for uuid and restorefile.
Dave Wysochanski [Thu, 24 Jul 2008 17:33:40 +0000 (17:33 +0000)]
Add pvcreate tests for uuid and restorefile.

16 years ago.
Alasdair Kergon [Thu, 24 Jul 2008 15:39:47 +0000 (15:39 +0000)]
.

16 years agoreinstate lost FIXME
Alasdair Kergon [Thu, 24 Jul 2008 15:25:09 +0000 (15:25 +0000)]
reinstate lost FIXME
- only if kernel gives the info, not to be worked out in userspace
- with lvm.conf option to enable/disable the check

16 years agoconfigure: regenerate
Jim Meyering [Thu, 24 Jul 2008 14:54:26 +0000 (14:54 +0000)]
configure: regenerate

16 years agoDon't make configure fail when readline library is not available.
Jim Meyering [Thu, 24 Jul 2008 14:54:06 +0000 (14:54 +0000)]
Don't make configure fail when readline library is not available.

16 years agoRemove dead code, is_lvm_partition() - no functional change.
Dave Wysochanski [Wed, 23 Jul 2008 19:46:33 +0000 (19:46 +0000)]
Remove dead code, is_lvm_partition() - no functional change.

This code does nothing.  The function is #defined to 1 which ensures the only
two if statements referencing it will never be true.

16 years agoRefactor pvcreate - move labelsector parameter parsing & validation.
Dave Wysochanski [Wed, 23 Jul 2008 19:29:58 +0000 (19:29 +0000)]
Refactor pvcreate - move labelsector parameter parsing & validation.

16 years agoRefactor pvcreate - divide parameter parsing & validation from create logic.
Dave Wysochanski [Mon, 21 Jul 2008 19:27:22 +0000 (19:27 +0000)]
Refactor pvcreate - divide parameter parsing & validation from create logic.

Move size (setphysicalvolumesize option), metadatacopies and metadatasize
validation.

16 years agoRefactor pvcreate to divide parameter parsing & validation from create logic.
Dave Wysochanski [Mon, 21 Jul 2008 19:26:33 +0000 (19:26 +0000)]
Refactor pvcreate to divide parameter parsing & validation from create logic.

16 years agoAdd more pvcreate tests to validate writing lvm2 label using --labelsector.
Dave Wysochanski [Mon, 21 Jul 2008 18:50:10 +0000 (18:50 +0000)]
Add more pvcreate tests to validate writing lvm2 label using --labelsector.

16 years agoRefactor _lvcreate() - no functional change.
Dave Wysochanski [Thu, 17 Jul 2008 15:19:42 +0000 (15:19 +0000)]
Refactor _lvcreate() - no functional change.

16 years agoOnly use lvm2 metadata for now.
Dave Wysochanski [Thu, 17 Jul 2008 04:03:04 +0000 (04:03 +0000)]
Only use lvm2 metadata for now.

16 years agoUpdate pvcreate and vgsplit tests.
Dave Wysochanski [Thu, 17 Jul 2008 03:17:01 +0000 (03:17 +0000)]
Update pvcreate and vgsplit tests.

Add more pvcreate tests.
Start handling lvm1 and lvm2 metadata and metadatacopies=0,1.

16 years agoAdd pvcreate sanity tests, check for label_write() failure in _text_pv_write().
Dave Wysochanski [Wed, 16 Jul 2008 21:32:38 +0000 (21:32 +0000)]
Add pvcreate sanity tests, check for label_write() failure in _text_pv_write().

Failure to check for label_write() return code caused the following test
to indicate it passed when it really failed:
pvcreate rejects labelsector > 1000000000000

16 years agoFix pvchange -M1 -u to preserve existing extent locations when there's a VG.
Alasdair Kergon [Wed, 16 Jul 2008 10:46:12 +0000 (10:46 +0000)]
Fix pvchange -M1 -u to preserve existing extent locations when there's a VG.

16 years agoCease recognising snapshot-in-use percentages returned by early development kernels.
Alasdair Kergon [Tue, 15 Jul 2008 00:25:52 +0000 (00:25 +0000)]
Cease recognising snapshot-in-use percentages returned by early development kernels.

16 years agoFix gcc warnings.
Petr Rockai [Fri, 11 Jul 2008 09:19:54 +0000 (09:19 +0000)]
Fix gcc warnings.

16 years agoAdd "flags" metadata field (akin to "status") for backward-compatible flags.
Petr Rockai [Thu, 10 Jul 2008 11:30:57 +0000 (11:30 +0000)]
Add "flags" metadata field (akin to "status") for backward-compatible flags.

The "status" field is treated as it ever has been, unknown flags there are
treated as fatal metadata errors. However, in the "flags" field, any unknown
flags will be ignored and silently dropped. This improves
backward-compatibility possibilities. (Any versions without support for this
new "flag" field will drop the field altogether, which is same as ignoring all
the flags there.)

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