summaryrefslogtreecommitdiffstats
path: root/lib/replicator
Commit message (Collapse)AuthorAgeFilesLines
* cleanup: drop unneeded included header filesZdenek Kabelac2012-08-231-3/+0
| | | | | This headers were not resolving anything used for compiled .c files. Remove unused util.c file.
* Revert free of allocated segtypeZdenek Kabelac2012-02-281-6/+4
| | | | | lvm_register_segtype takes ownership of segtype and call destructor for it in error path.
* Free allocated segment type in error pathZdenek Kabelac2012-01-251-2/+6
|
* Fix last checkin for replicator.Peter Rajnoha2011-11-291-2/+2
|
* Add activation/use_linear_target enabled by default. (prajnoha)Alasdair Kergon2011-11-281-1/+3
| | | | | | | | | LVM metadata knows only of striped segments - not linear ones. The activation code detects segments with a single stripe and switches them to use the linear target. If the new lvm.conf setting is set to 0 (e.g. in a test script), this 'optimisation' is turned off.
* Move the core of the lib/config/config.c functionality into libdevmapper,Petr Rockai2011-08-301-31/+31
| | | | | | | leaving behind the LVM-specific parts of the code (convenience wrappers that handle `struct device` and `struct cmd_context`, basically). A number of functions have been renamed (in addition to getting a dm_ prefix) -- namely, all of the config interface now has a dm_config_ prefix.
* Fix raid shared lib segtype registration (2.02.87).Alasdair Kergon2011-08-241-3/+3
|
* Add lv_activate_opts structureZdenek Kabelac2011-06-171-0/+2
| | | | | | | | | | | 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-2/+2
|
* 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.
* Add more strict const pointers around config treeZdenek Kabelac2010-12-201-2/+2
| | | | | | To have better control were the config tree could be modified use more const pointers and very carefully downcast them back to non-const (for config tree merge).
* Refactor the percent (mirror sync, snapshot usage) handling code to usePetr Rockai2010-11-301-2/+2
| | | | fixed-point values instead of a combination of a float value and an enum.
* Use __attribute__ consistently throughout.Alasdair Kergon2010-07-091-7/+7
|
* Right directory name for replicator files.Zdenek Kabelac2010-05-213-0/+816
My local CVS was placing file in slightly different directory by using obsolete files.