Alasdair Kergon
56d8844068
more fixes
2008-11-04 15:07:45 +00:00
Alasdair Kergon
e50d0e97b1
more missing bits
2008-11-04 14:57:06 +00:00
Alasdair Kergon
2c44337bd5
Right, a simple build (without options) is working again.
2008-11-03 22:14:30 +00:00
Alasdair Kergon
3e5b6ed214
more tweaking to get things to compile - dmlib.h for log fns, list.h
2008-11-03 18:59:59 +00:00
Alasdair Kergon
965566dcf0
Rename a couple of variables that matched function names.
2008-11-03 16:26:27 +00:00
Alasdair Kergon
0782ad5002
further progress
2008-11-01 02:19:19 +00:00
Alasdair Kergon
2cde7dfdb3
add libdevmapper-event.h
2008-10-31 22:41:51 +00:00
Alasdair Kergon
04f06bc91c
autoreconf
2008-10-31 22:34:42 +00:00
Alasdair Kergon
fcc5d4434a
separate lvm-globals
2008-10-30 17:40:00 +00:00
Alasdair Kergon
cf66732d19
Separate out globals from the logging code.
2008-10-30 17:39:00 +00:00
Alasdair Kergon
84b9ec9733
Split out lvm-logging.h from log.h.
2008-10-30 17:27:28 +00:00
Alasdair Kergon
14c9a9aec7
Accept locking fallback_to_* options in the global section as documented.
2008-10-24 01:16:16 +00:00
Alasdair Kergon
9e71c18092
Fix temp table activation in mirror conversions not to happen in other cmds.
...
Fix temp table in mirror conversions to use always-present error not zero.
2008-10-23 11:21:04 +00:00
Alasdair Kergon
5da4feac0e
Use temp table to set device size when converting mirrors.
...
(Avoids having same mirror table loaded twice concurrently by first
using a 'zero' table to set the size of the device so when mirror
table is preloaded it doesn't have to be activated immediately.)
2008-10-17 10:57:15 +00:00
Alasdair Kergon
3935c3ecd6
In resume_mirror_images replace activate_lv with resume_lv as workaround.
...
(The resume has the side-effect of resuming all of the original
mirror's sub-lvs in addition to the new 'error' target middle layer.)
2008-10-17 10:50:14 +00:00
Alasdair Kergon
08b959a50b
Avoid overwriting in-use on-disk text metadata by forgetting MDA_HEADER_SIZE. (Edward Allcutt)
2008-10-17 00:55:46 +00:00
Alasdair Kergon
68f2de6d4a
Add usrlibdir & usrsbindir to configure.
2008-10-07 19:11:59 +00:00
Alasdair Kergon
9c4bf5db4a
Fix conversion of md chunk size into sectors.
2008-10-03 14:22:18 +00:00
Alasdair Kergon
7eb1c3ed92
Free text metadata buffer after a failure writing it.
2008-09-30 20:37:52 +00:00
Milan Broz
9352a2fdad
Fix misleading error message when there is no allocatable extents in VG.
2008-09-29 09:59:10 +00:00
Milan Broz
061fa9c4c5
Fix handling of PVs which reappeared with old metadata version.
2008-09-25 15:59:10 +00:00
Milan Broz
affecdc5fc
Try to fix possible infinite loop in dependency tree walking (by mornfall).
2008-09-25 15:57:02 +00:00
Alasdair Kergon
ecf4eb2273
suppress warning if old value found for now
2008-09-19 18:26:41 +00:00
Alasdair Kergon
87ec948433
.
2008-09-19 07:18:03 +00:00
Alasdair Kergon
cda354087f
rename var
2008-09-19 07:12:45 +00:00
Alasdair Kergon
47d331d3bb
revert unexplained removal of a '<backtrace>' message
2008-09-19 07:03:23 +00:00
Alasdair Kergon
8c5bcdabab
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
86fb36e2b0
Add device/md_chunk_alignment to lvm.conf
2008-09-19 05:33:37 +00:00
Alasdair Kergon
3c2086efdd
adjust pe_align for md chunk size
2008-09-19 05:19:09 +00:00
Alasdair Kergon
f6700b450e
remove unsed var
2008-09-19 04:30:02 +00:00
Alasdair Kergon
a77f5bf258
Pass struct physical_volume to pe_align.
2008-09-19 04:28:58 +00:00
Alasdair Kergon
225ad19114
Store sysfs location in struct cmd_context.
2008-09-19 03:42:37 +00:00
Alasdair Kergon
df6936c9e1
fix last patch return code
2008-09-19 00:20:39 +00:00
Alasdair Kergon
324e23b72d
Avoid shuffling remaining mirror images when removing one, retaining primary.
2008-09-18 19:56:50 +00:00
Alasdair Kergon
4bb7a2f523
Add missing LV error target activation in _remove_mirror_images.
2008-09-18 19:09:47 +00:00
Alasdair Kergon
a0e00ccf3f
Avoid repeatedly wiping cache while VG_GLOBAL is held in vgscan & pvscan.
2008-09-16 18:05:11 +00:00
Alasdair Kergon
91e9ae2629
revert unnecessary 'stack's
2008-09-15 17:06:55 +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
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
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
38a8b563bf
get lv_list properly from vg->lst and fix compiler warning
2008-08-13 13:42:35 +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
e2151fb4af
vgremove tries to remove lv snapshot first.
...
Added function lv_remove_with_dependencies().
2008-08-05 12:05:26 +00:00
Alasdair Kergon
b7961bdb2f
Improve file descriptor leak detection to display likely culprit and filename.
2008-08-01 19:51:27 +00:00