Alasdair Kergon
91e9ae2629
revert unnecessary 'stack's
2008-09-15 17:06:55 +00:00
Milan Broz
df9c7546a2
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.)
2008-09-12 15:26:45 +00:00
Milan Broz
74f36b9308
Do not scan for lvm1 entries in /proc if not running 2.4 kernel.
...
(LVM1 is only present in 2.4 kernel.)
2008-09-10 10:14:59 +00:00
Alasdair Kergon
7d7d93ac6c
Extend deptree buffers so the largest possible device numbers fit.
2008-09-02 12:16:07 +00:00
Milan Broz
3a2fb07349
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)
...
2008-08-29 13:41:21 +00:00
Dave Wysochanski
18c8a64d3c
Add ctype.h header file to silence compile warning on 'isdigit'.
...
uuid/uuid.c:86: warning: implicit declaration of function 'isdigit'
2008-08-29 00:49:46 +00:00
Milan Broz
9c520b114a
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.
2008-08-28 18:41:51 +00:00
Milan Broz
8ed917d287
format1: Not detecing label on disc is not error, remove <backtrace> from debug log
...
(happens when you explicitly use -M 1)
2008-08-28 13:41:46 +00:00
Milan Broz
2380eaf981
Not detecing label on disc is not error, remove <backtrace> from debug log
...
and report it only if device cannot be read.
2008-08-28 13:28:13 +00:00
Milan Broz
8695f2cecb
fix vgreduce tests to detect partial command failure (Jaroslav Stava)
2008-08-28 11:20:49 +00:00
Milan Broz
cfeb1d3442
add vgcreate rejects repeated invocation test
...
add vgcreate fails when the only pv has --metadatacopies 0 test
(by Jaroslav Stava)
2008-08-28 11:09:58 +00:00
Milan Broz
e2313de3fd
add vgrename by uuid test (Jaroslav Stava)
...
fix vgsplit rejects last mda copy test (Jaroslav Stava)
2008-08-28 10:59:10 +00:00
Milan Broz
050f5d8955
Fix lvmdump metadata gather option (-m) to work correctly. (Jaroslav Stava)
2008-08-28 10:40:44 +00:00
Milan Broz
fa69afe329
Add pvremove usage test (Jaroslav Stava)
2008-08-28 10:24:55 +00:00
Milan Broz
70d4d231fa
- 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)
2008-08-28 10:07:34 +00:00
Dave Wysochanski
747b3cfefa
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.
2008-08-21 14:33:48 +00:00
Zdenek Kabelac
6b7d2770f7
fail testcase for failed commands inside the for loop
2008-08-20 13:34:33 +00:00
Milan Broz
a4a1cd76ba
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.
2008-08-16 09:46:55 +00:00
Zdenek Kabelac
f88fd44680
valid parameter for lvchange -p is 'rw'
2008-08-13 14:28:17 +00:00
Zdenek Kabelac
f84d52765c
added test for coverage improvement
...
added test for metadata type 1
2008-08-13 13:49:07 +00:00
Zdenek Kabelac
38a8b563bf
get lv_list properly from vg->lst and fix compiler warning
2008-08-13 13:42:35 +00:00
Milan Broz
8df4c3748a
Fix vgcfgbackup to properly check filename if template is used.
2008-08-13 12:44:24 +00:00
Milan Broz
a3925393ba
add tests for pvchange and vgreduce usage (Jaroslav Stava)
2008-08-12 10:04:31 +00:00
Milan Broz
47535347c0
test vgsplit: reject to give away pv with the last mda copy (Jaroslav Stava)
2008-08-12 10:01:56 +00:00
Zdenek Kabelac
74b91fad28
* more strict const
2008-08-07 14:02:32 +00:00
Zdenek Kabelac
1e9b55801e
added const modifiers
...
switched const char* to const char[] elements to save few relocation entries
2008-08-07 14:01:17 +00:00
Zdenek Kabelac
1e35409b82
added const and saved relocation entry
2008-08-07 13:59:49 +00:00
Zdenek Kabelac
b145d876a4
configure aborts if lcov or genhtml are missing with --enable-profiling
2008-08-05 14:29:38 +00:00
Zdenek Kabelac
d774b86ce2
add test for pool labels gfs
...
add test for metadatacopies0 and snapshot manipulation
2008-08-05 12:33:41 +00:00
Zdenek Kabelac
3cbf52c97d
put dmeventd into the LD_LIBRARY_PATH for lvm-wrapper
2008-08-05 12:32:08 +00:00
Zdenek Kabelac
e2151fb4af
vgremove tries to remove lv snapshot first.
...
Added function lv_remove_with_dependencies().
2008-08-05 12:05:26 +00:00
Zdenek Kabelac
3b36a5f1c5
avoid endless option parsing loop
...
add support for lvm verbose operation -vvvv
add dlsym path to the test config file
2008-08-05 11:39:54 +00:00
Zdenek Kabelac
e2ebc2a08d
* parse error output for 'auto' keyword
2008-08-04 09:15:15 +00:00
Alasdair Kergon
b7961bdb2f
Improve file descriptor leak detection to display likely culprit and filename.
2008-08-01 19:51:27 +00:00
Zdenek Kabelac
56738d9383
disable mdadm test-case until a better solution is found
2008-08-01 15:44:53 +00:00
Alasdair Kergon
bc9481770a
remove now-redundant slash-stripping
2008-07-31 15:38:52 +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
131bc6f091
Avoid looping forever in _pv_analyze_mda_raw used by pvck.
2008-07-31 13:07:01 +00:00
Alasdair Kergon
021317a547
Change lvchange exit status to indicate if any part of the operation failed.
2008-07-31 13:03:01 +00:00
Alasdair Kergon
a6d9d66dcc
remove unused mdas variable
2008-07-31 12:40:52 +00:00
Alasdair Kergon
32a478cb1f
fix pvremove for pvs without mdas
2008-07-31 12:38:31 +00:00
Alasdair Kergon
1b8b624661
Fix pvchange to handle PVs without mdas.
2008-07-31 12:28:51 +00:00
Alasdair Kergon
29f7cbdabf
Refactor _text_pv_read and always return mda list if requested.
2008-07-31 10:50:18 +00:00
Dave Wysochanski
6ce652e3ec
Add pvcreate tests to verify failure on md array detection.
2008-07-29 21:05:20 +00:00
Dave Wysochanski
73e08af01a
Fix trivial typo in pvcreate man page.
2008-07-29 18:35:00 +00:00
Dave Wysochanski
65a431fe1f
Refactor pvcreate - simplify return codes.
2008-07-25 14:59:51 +00:00
Dave Wysochanski
0e74f8fc65
Refactor pvcreate - --yes argument
2008-07-25 14:45:24 +00:00
Dave Wysochanski
3cf01067cf
Refactor pvcreate - --force parameter.
2008-07-25 14:36:55 +00:00
Dave Wysochanski
8bb4eab0d7
Refactor pvcreate - use '0' for no --uuid or --restorefile options.
2008-07-25 14:12:29 +00:00
Jim Meyering
bc1024f8bc
configure: regenerate
2008-07-25 08:00:40 +00:00