summaryrefslogtreecommitdiff
path: root/lib/zero
Commit message (Collapse)AuthorAgeFilesLines
* device_mapper: remove dbg_malloc.Joe Thornber2018-06-081-2/+3
| | | | | I wrote dbg_malloc before we had valgrind. These days there's just no need.
* build: Don't generate symlinks in include/ dirJoe Thornber2018-05-141-4/+4
| | | | | | | As we start refactoring the code to break dependencies (see doc/refactoring.txt), I want us to use full paths in the includes (eg, #include "base/data-struct/list.h"). This makes it more obvious when we're breaking abstraction boundaries, eg, including a file in metadata/ from base/
* activate: Use macros for target and module names.Alasdair G Kergon2016-03-221-2/+2
|
* doc: change fsf addressZdenek Kabelac2016-01-211-1/+1
| | | | | Hmm rpmlint suggest fsf is using a different address these days, so lets keep it up-to-date
* segtype: check for activationZdenek Kabelac2016-01-141-3/+6
| | | | | Before setting static variable with check passed state, detect if we are allowed to talk to driver.
* segtypes: Use SEG_TYPE_NAME_ string constants.Alasdair G Kergon2015-09-221-1/+1
|
* cleanup: remove unused headersZdenek Kabelac2014-11-131-2/+0
|
* segtype: drop cmdcontex pointerZdenek Kabelac2014-10-301-2/+0
| | | | | Users of context provide their cmd pointer, so don't keep it inside segtype.
* cleanup: drop default implementationZdenek Kabelac2014-10-241-6/+0
| | | | | | | | Now we reference segment name via lvseg_name() and we can drop default implementation and leave its function pointer to be NULL. Default give us 'return seg->segtype->name'.
* cleanup: modules_needed only for devmapperZdenek Kabelac2014-04-301-2/+2
| | | | | | Drop compilation of modules_needed and add_target_lin function when compiled without devmapper support. Cleanup surrounding ifdefs.
* cleanup: reduce inclusion of unnecessary headersZdenek Kabelac2014-04-181-1/+0
| | | | | Remove those file which are not needed by .c files or already include because the headers already needs them.
* cleanup: drop unneeded included header filesZdenek Kabelac2012-08-231-5/+0
| | | | | This headers were not resolving anything used for compiled .c files. Remove unused util.c file.
* Add lv_activate_opts structureZdenek Kabelac2011-06-171-0/+1
| | | | | | | | | | | To avoid modification of 'read-only' volume group structure add a new structure to pass local data around the code for LV activation. As origin_only is one such flag - replace this parameter with new struct lv_activate_opts. More parameters might eventually become part of lv_activate_opts.
* Replace malloc with zalloc when creating segment_type'sJonathan Earl Brassow2011-03-251-1/+1
|
* Remove const usage from destroy callbacksZdenek Kabelac2010-12-201-2/+2
| | | | | | As const segment_type or const format_type are never released use their non-const version and remove const downcast from dm_free calls. This change fixes many gcc warnings we were getting from them.
* Use __attribute__ consistently throughout.Alasdair Kergon2010-07-091-9/+9
|
* Attempt to load dm-zero module if zero target needed but not present. (mbroz)Alasdair Kergon2009-05-271-1/+1
|
* Fix last check-ins: seg can be NULL.Alasdair Kergon2009-02-281-2/+3
|
* Attempt cleanup in child before execing new binary in exec_cmd()Alasdair Kergon2009-02-281-2/+2
|
* Right, a simple build (without options) is working again.Alasdair Kergon2008-11-031-1/+1
|
* Add detection of clustered mirror log capability.Milan Broz2008-04-071-1/+2
| | | | Currently only check for kernel module presence.
* Some whitespace tidy-ups.Alasdair Kergon2008-01-301-6/+6
|
* Use stack return macros throughout.Alasdair Kergon2008-01-301-4/+2
|
* Clean up numerous compiler warnings that crept in recently.Alasdair Kergon2007-08-221-1/+1
| | | | Remove several unused parameters from _allocate().
* Fix inconsistent licence notices: executables are GPLv2; libraries LGPLv2.1.Alasdair Kergon2007-08-201-3/+3
|
* Split metadata-external.h out from metadata.h for the tools to use.Alasdair Kergon2007-07-181-0/+1
|
* Add segment parameter to target_present functions.Alasdair Kergon2006-10-181-1/+1
|
* Add LV column to reports listing kernel modules needed for activation.Alasdair Kergon2006-10-031-0/+13
|
* Fix lvcreate corelog validation.Alasdair Kergon2006-05-161-1/+1
| | | | | | | | | 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.
* Make SIZE_SHORT the default for display_size().Alasdair Kergon2006-05-091-10/+12
| | | | | | | Fix some memory leaks in error paths found by coverity. Use C99 struct initialisers. Move DEFS into configure.h. Clean-ups to remove miscellaneous compiler warnings.
* Check for libsepol.Alasdair Kergon2006-04-191-16/+17
| | | | | | Add some cflow & scope support. Separate out DEFS from CFLAGS. Remove inlines and use unique function names.
* rename deptreeAlasdair Kergon2005-11-091-2/+2
|
* Replacement activation code. [Don't use this yet!]Alasdair Kergon2005-11-081-14/+9
|
* Use hash, bitset, malloc, pool from libdevmapper.Alasdair Kergon2005-10-161-5/+3
|
* Rename old segtypes files to segtype.Alasdair Kergon2004-09-161-1/+1
|
* Write log message when each segtype/format gets initialised.Alasdair Kergon2004-09-141-0/+2
|
* Add --type to lvcreate/resize.Alasdair Kergon2004-05-111-0/+101
Add virtual segment types, zero and error. A large sparse device can be constructed as a writeable snapshot of a large zero device.