Alasdair Kergon
2293567c8c
Fix lvcreate corelog validation.
...
Add --config for overriding most config file settings from cmdline.
Quote arguments when printing command line.
Remove linefeed from 'initialising logging' message.
Add 'Completed' debug message.
Don't attempt library exit after reloading config files.
Always compile with libdevmapper, even if device-mapper is disabled.
2006-05-16 16:48:31 +00:00
Alasdair Kergon
8a2fc58645
Check for libsepol.
...
Add some cflow & scope support.
Separate out DEFS from CFLAGS.
Remove inlines and use unique function names.
2006-04-19 15:33:07 +00:00
Alasdair Kergon
2262b32057
Use hash, bitset, malloc, pool from libdevmapper.
2005-10-16 23:03:59 +00:00
Alasdair Kergon
60f13f01d2
Basic support for mirrors.
2005-06-01 16:51:55 +00:00
Alasdair Kergon
c708ec79b1
Fix loopfiles mem alloc.
2005-05-09 17:02:52 +00:00
Alasdair Kergon
4d12267641
Un-inline dbg_strdup.
2005-05-09 17:01:06 +00:00
Alasdair Kergon
ed2799e7fe
Fix some size_t printing.
2005-01-20 18:14:04 +00:00
Alasdair Kergon
894a05fffa
Fix 64 bit xlate consts.
2005-01-20 18:13:17 +00:00
Alasdair Kergon
c3a4c63c15
Trap large memory allocation requests.
2004-11-24 21:34:56 +00:00
Alasdair Kergon
bd46a496c7
pool debugging
2004-11-23 18:23:23 +00:00
Alasdair Kergon
2b176f9034
Fix pool_empty so it really does empty the memory pool.
2004-09-16 20:09:55 +00:00
Alasdair Kergon
e26c4fd2a2
Some fixes to memory debugging code.
...
Exclude internal commands formats & segtypes from install.
2004-09-16 16:53:39 +00:00
Alasdair Kergon
28acccca2a
Restructure xlate.h
2004-09-02 13:53:25 +00:00
Alasdair Kergon
6606c3ae81
Update copyright notices.
2004-03-30 19:35:44 +00:00
Alasdair Kergon
f22969328b
tweak memlock includes
2004-03-26 21:11:34 +00:00
Alasdair Kergon
2534fa5203
Add string display to mem leak dump.
2004-03-26 21:09:44 +00:00
Alasdair Kergon
814643d8a2
rename config file vars & always use / as separator
2004-03-08 18:28:45 +00:00
Alasdair Kergon
a43a1312d2
don't inline pool_zalloc(); lift duplicated pool_str(n)dup to pool.c
2004-02-13 15:38:54 +00:00
Alasdair Kergon
034db45e26
Immediate error on big memory allocations when --enable-debug.
2003-11-13 23:54:02 +00:00
Alasdair Kergon
4c22730b53
Some tidyups and minor fixes.
2003-08-20 15:48:27 +00:00
Alasdair Kergon
914c97239f
Another sync point - numerous fixes & clean ups.
2003-07-04 22:34:56 +00:00
Alasdair Kergon
9a079266dd
Add pool_strndup
2003-04-24 21:58:34 +00:00
Alasdair Kergon
b896caa19b
Improve build robustness.
2003-04-15 13:24:42 +00:00
Alasdair Kergon
34e0f798e3
size_t tidying
2003-04-02 19:11:23 +00:00
Alasdair Kergon
26e7f2e0c4
Tidy various pre-processing incl. making libdl optional.
2003-03-24 18:08:53 +00:00
Alasdair Kergon
8ef2b021ed
Default stripesize 64k & config file setting for it;
...
Clear many compiler warnings (i386) & associated bugs - hopefully without
introducing too many new bugs:-) (Same exercise required for other archs.)
Default compilation has optimisation - or else use ./configure --enable-debug
2002-12-19 23:25:55 +00:00
Alasdair Kergon
d1d9800ef1
Refactoring.
2002-11-18 14:01:16 +00:00
Alasdair Kergon
1f835295d8
Revert to standard linux macros (for correct behaviour on rare architectures).
2002-05-21 12:37:07 +00:00
Andres Salomon
8ac9aae78a
implement our own swabbing functions, instead of relying on the kernel's.
2002-05-07 15:28:59 +00:00
Andres Salomon
b9923fe3f2
Make lvm2 compile on big endian archs; use the kernel/glibc's endian
...
conversion stuff, instead of implementing our own. Tested on a little
endian system (x86); I'll let the debian handle big endian testing. :)
2002-05-07 05:54:14 +00:00
Alasdair Kergon
25b733809a
Merge with text format branch.
...
Lots of changes/very little testing so far => there'll be bugs!
Use 'vgcreate -M text' to create a volume group with its metadata stored
in text files. Text format metadata changes should be reasonably atomic,
with a (basic) automatic recovery mechanism if the system crashes while a
change is in progress.
Add a metadata section to lvm.conf to specify multiple directories if
you want (recommended) to keep multiple copies of the metadata (eg on
different filesystems).
e.g. metadata {
dirs = ["/etc/lvm/metadata1","/usr/local/lvm/metadata2"]
}
Plenty of refinements still in the pipeline.
2002-04-24 18:20:51 +00:00
Patrick Caulfield
f09d2b350f
use portable <inttypes.h> macros for printing.
2002-02-12 14:12:13 +00:00
Joe Thornber
4b2ec1929a
o There were some alignment problems with pool-debug which I've resolved
...
by allocating the data block with an additional dbg_malloc.
o Added an assertion to check that no one is requesting alternate
alignment for memory allocated from pool. I can't see us needing this
for LVM2.
2002-01-28 09:16:09 +00:00
Alasdair Kergon
1176eb2597
Tweak some error message levels.
2002-01-27 21:30:47 +00:00
Patrick Caulfield
d738054256
#include <string.h>
2002-01-16 12:02:06 +00:00
Joe Thornber
f2f2634990
o vgcfgrestore works ! (with the couple of examples I tried).
2002-01-15 17:37:23 +00:00
Joe Thornber
ea31a9b09c
o Reformat comment and correct typo.
2002-01-14 09:59:12 +00:00
Alasdair Kergon
cf633b70c2
More detail in error msgs.
2002-01-10 16:47:25 +00:00
Joe Thornber
e2031c81b5
o Put in the 'out of memory' log_err for pool.
2002-01-10 09:35:55 +00:00
Alasdair Kergon
67fb2a39a7
Allow pool_begin_object in empty pool.
2002-01-09 13:06:02 +00:00
Joe Thornber
145eef414b
o Remove anomalous punctuation.
2002-01-08 10:51:13 +00:00
Joe Thornber
18ce960755
o Introduction to pool for those without psychic powers.
2002-01-08 10:47:17 +00:00
Joe Thornber
493793dcbc
o Debug version of the pool_grow stuff.
2001-12-20 12:27:41 +00:00
Joe Thornber
9f44467d44
o sync backup changes
2001-12-20 11:52:54 +00:00
Joe Thornber
6b4657e81f
o I figure if I can't remember how to use my code, then I should add
...
a comment. It's quite cool, wish I remember writing it.
2001-12-13 16:09:06 +00:00
Alasdair Kergon
faa556e759
Add internal cache holding a 'hint' list of the PVs belonging to each VG.
...
A substantial speed-up - particularly in readline mode.
If the hints turn out to be wrong, the relevant parts get thrown away.
vgscan destroys it totally. In both cases it then rebuilds itself as
required.
2001-12-13 00:07:29 +00:00
Alasdair Kergon
394fae7fc5
fix for clean compilation
2001-12-12 16:25:53 +00:00
Joe Thornber
8a14dc290a
o pool-debug version of end_object wasn't returning the object.
2001-12-12 16:05:52 +00:00
Joe Thornber
c155eb83c2
o Add error checking in _new_chunk
2001-12-12 14:54:24 +00:00
Joe Thornber
2fbe588881
o pool-debug versions of begin_object, grow_object etc.
2001-12-12 14:25:20 +00:00
Joe Thornber
252c7708f5
o pool_free was leaving one block hanging around.
2001-11-28 14:58:33 +00:00
Joe Thornber
4a8d120415
o pool-debug.c contains an alternative implementation of pool that gets
...
a seperate chunk of memory from dbg_malloc for each pool_alloc. This
will allow the bounds checking code in dbg_malloc to do it's stuff.
o The normal implementation moved to pool-fast.c
o pool.c now just contains a #ifdef and includes the appropriate .c file.
Alasdair, could you make sure that gcc -MM get's passed all the
CFLAGS please, otherwise the dependencies get calculated incorrectly.
2001-11-28 09:13:00 +00:00
Patrick Caulfield
afe46c849b
size_ts aren't really pointers but there are no format specifiers for them,
...
so this will just have to do.
2001-11-16 11:37:45 +00:00
Patrick Caulfield
f96175e75e
Fix format characters for printing size_ts
2001-11-16 10:56:11 +00:00
Patrick Caulfield
79b5666abe
#include <string.h> for memset
2001-11-15 11:46:00 +00:00
Joe Thornber
801495c0f7
o pool_empty was very wrong
2001-11-07 14:11:20 +00:00
Joe Thornber
1b9fcf48b1
o LGPL list implementation
2001-10-31 12:47:01 +00:00
Alasdair Kergon
20a2b71c9c
filter integration into tools
2001-10-23 11:50:49 +00:00
Alasdair Kergon
a381c45a6e
vgchange
2001-10-16 16:25:28 +00:00
Alasdair Kergon
ca8f8837c2
o lvm readline error-case tidy-up
...
o more vgcreate error cases
2001-10-15 12:49:58 +00:00
Joe Thornber
72a5e12b5c
o pvcreate
...
o added uuid unit
o stubbed partition stuff
2001-10-12 10:32:06 +00:00
Joe Thornber
9761650d1f
o read_vg_t compiles
2001-10-08 10:20:25 +00:00
Joe Thornber
812efa0f48
o get things compiling
2001-10-08 09:45:16 +00:00
Joe Thornber
e6efb2b0bd
o got dbg_malloc_t working, Alasdair could you look at the Makefile.in it
...
seems to be having trouble with the dependencies.
o removed some files from the lib makefile that don't compile yet.
2001-10-04 10:13:07 +00:00
Joe Thornber
5bdbd4b380
o Use the __alignof__ extension to set DEFAULT_ALIGNMENT to that required
...
for a 'double'.
2001-10-04 09:10:11 +00:00
Joe Thornber
b8e4e502d3
o code sync for dev-cache.c
...
o made copyright headers the same
o added __attribute ((format ... to print_log so we'll get better compile errors
o added iterator to the hash table
2001-10-03 11:06:31 +00:00
Alasdair Kergon
1f6db21f32
Another step towards consistency & compilation.
2001-10-01 22:12:10 +00:00
Alasdair Kergon
b8ef655fb7
Tidy include files
2001-10-01 15:14:39 +00:00
Patrick Caulfield
30a9f48024
Fix prototype for malloc_aux
2001-09-27 10:01:17 +00:00
Alasdair Kergon
269930c0da
lvactivate checkpoint commit
2001-09-25 12:49:28 +00:00
Patrick Caulfield
7c045c523b
Fix includes so that string functions get prototyped.
...
Fix cast - repeat after me Joe: "I must not cast pointers to ints"!
2001-09-13 12:38:08 +00:00
Patrick Caulfield
758af97c3b
Set DEFAULT_ALIGNMENT to 8 for Alpha.
...
If you think this is wasteful on other arches then stick some ifdefs in.
2001-09-13 09:03:42 +00:00
AJ Lewis
bb6ddc2de7
o Added a basic makefile to build liblvm.a again
...
o Modified source files so that this works
2001-08-21 15:23:45 +00:00
Joe Thornber
df88dece8b
o Populating with stuff from experimental
2001-08-21 12:56:08 +00:00