Alasdair Kergon
f5c395adb2
some makefile fixes for liblvm2cmd & remove some hardcoded .so
2008-11-14 20:59:56 +00:00
Zdeněk Kabeláč
1c38ce8245
cleaner const char* usage for last_path_component()
2008-11-12 09:53:33 +00:00
Zdeněk Kabeláč
702cfe15be
minor compiler warning fix for function declaration prototype
2008-11-12 09:49:06 +00:00
Milan Broz
a98888ad07
Fix lvm2.static build.
2008-11-10 13:41:43 +00:00
Dave Wysochanski
640d07bf35
Fix vgdisplay return code and exit status.
2008-11-07 19:02:47 +00:00
Alasdair Kergon
abba6e0642
make install_device-mapper
2008-11-04 17:25:32 +00:00
Alasdair Kergon
03ed7d73fc
more missing bits
2008-11-04 14:57: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
ba70dce803
further progress
2008-11-01 02:19:19 +00:00
Alasdair Kergon
424bdade0b
drop explicit libdevmapper.h
2008-10-30 17:52:06 +00:00
Alasdair Kergon
759e49f025
Split out lvm-logging.h from log.h.
2008-10-30 17:27:28 +00:00
Alasdair Kergon
43924e31b8
Split out dm-logging.h from log.h
2008-10-30 17:24:04 +00:00
Milan Broz
c350798528
Fix validation of --minor and --major in lvcreate to require -My always.
2008-09-24 16:32:51 +00:00
Alasdair Kergon
04d52b450b
fix last release
2008-09-19 15:44:03 +00:00
Alasdair Kergon
a586a89547
.
2008-09-19 07:18:03 +00:00
Alasdair Kergon
1905eacf15
rename var
2008-09-19 07:12:45 +00:00
Alasdair Kergon
95d43e17b3
Improve the way VGs with PVs missing are handled so manual intervention
...
is required in fewer circumstances. (mornfall)
2008-09-19 06:42:00 +00:00
Alasdair Kergon
5ee86fc5d0
remove unused var
2008-09-19 03:45:34 +00:00
Alasdair Kergon
1be3e86aa0
Avoid shuffling remaining mirror images when removing one, retaining primary.
2008-09-18 19:56:50 +00:00
Alasdair Kergon
410904bef1
Prevent resizing an LV while lvconvert is using it.
2008-09-18 18:51:58 +00:00
Milan Broz
fbc34d70b0
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
1989ef4ebc
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
Milan Broz
666cc72661
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
6594fe077d
Fix vgcfgbackup to properly check filename if template is used.
2008-08-13 12:44:24 +00:00
Alasdair Kergon
2d364d4d80
Improve file descriptor leak detection to display likely culprit and filename.
2008-08-01 19:51:27 +00:00
Alasdair Kergon
d30a2653b5
remove now-redundant slash-stripping
2008-07-31 15:38:52 +00:00
Alasdair Kergon
5936ac58c2
Change lvchange exit status to indicate if any part of the operation failed.
2008-07-31 13:03:01 +00:00
Alasdair Kergon
ded77e3f5c
remove unused mdas variable
2008-07-31 12:40:52 +00:00
Alasdair Kergon
8a29df0a6c
fix pvremove for pvs without mdas
2008-07-31 12:38:31 +00:00
Alasdair Kergon
9db22babaf
Fix pvchange to handle PVs without mdas.
2008-07-31 12:28:51 +00:00
Dave Wysochanski
61243c65cd
Add pvcreate tests to verify failure on md array detection.
2008-07-29 21:05:20 +00:00
Dave Wysochanski
cbf1447ebd
Refactor pvcreate - simplify return codes.
2008-07-25 14:59:51 +00:00
Dave Wysochanski
30104441bf
Refactor pvcreate - --yes argument
2008-07-25 14:45:24 +00:00
Dave Wysochanski
b4a70804f0
Refactor pvcreate - --force parameter.
2008-07-25 14:36:55 +00:00
Dave Wysochanski
74f6707bde
Refactor pvcreate - use '0' for no --uuid or --restorefile options.
2008-07-25 14:12:29 +00:00
Dave Wysochanski
43e05607af
Refactor pvcreate - move uuid and restorefile options.
2008-07-25 00:30:57 +00:00
Alasdair Kergon
03ed19dad5
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
2008-07-24 15:25:09 +00:00
Dave Wysochanski
bc7a54c615
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.
2008-07-23 19:46:33 +00:00
Dave Wysochanski
1bda393678
Refactor pvcreate - move labelsector parameter parsing & validation.
2008-07-23 19:29:58 +00:00
Dave Wysochanski
bb5495c6bd
Refactor pvcreate - divide parameter parsing & validation from create logic.
...
Move size (setphysicalvolumesize option), metadatacopies and metadatasize
validation.
2008-07-21 19:27:22 +00:00
Dave Wysochanski
484f905749
Refactor pvcreate to divide parameter parsing & validation from create logic.
2008-07-21 19:26:33 +00:00
Dave Wysochanski
e643a16ba5
Refactor _lvcreate() - no functional change.
2008-07-17 15:19:42 +00:00
Alasdair Kergon
707c898f66
Fix pvchange -M1 -u to preserve existing extent locations when there's a VG.
2008-07-16 10:46:12 +00:00
Alasdair Kergon
b0dc94d187
Update validation of safe mirror log type conversions in lvconvert. (brassow)
2008-06-26 23:05:11 +00:00
Alasdair Kergon
0383c4e1d8
Fix lvconvert to disallow snapshot and mirror combinations. (mpatocka)
2008-06-26 21:38:58 +00:00
Alasdair Kergon
a7fabfd8cb
Fix reporting of LV fields alongside unallocated PV segments.
2008-06-25 16:52:27 +00:00
Alasdair Kergon
65f0656f54
Add --rows to dmsetup.
2008-06-24 22:53:48 +00:00
Alasdair Kergon
507ece15a5
Add --rows to reports.
2008-06-24 22:48:53 +00:00
Alasdair Kergon
30be4d1613
Add --unquoted to reporting tools.
2008-06-24 21:21:04 +00:00
Alasdair Kergon
366e89bda0
dmsetup --unquoted
2008-06-24 20:16:47 +00:00