1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-10-28 20:25:52 +03:00
lvm2/lib/metadata
Jonathan Brassow b94a3ee9f6 cache: Add functions that create/remove cache LVs
A cache LV - from LVM's perpective - is a user accessible device that
links the cachepool LV and the origin LV.  The following functions
were added to facilitate the creation and removal of this top-level
LV:
1) 'lv_cache_create' - takes a cachepool and an origin device and links
   them into a new top-level LV of 'cache' segment type.  No allocation
   is necessary in this function, as the sub-LVs contain all of the
   necessary allocated space.  Only the top-level layer needs to be
   created.

2) 'lv_cache_remove' - this function removes the top-level LV of a
   cache LV - promoting the cachepool and origin sub-LVs to top-level
   devices and leaving them exposed to the user.  That is, the
   cachepool is unlinked and free to be used with another origin to
   form a new cache LV; and the origin is no longer cached.
   (Currently, if the cache needs to be flushed, it is done in this
   function and the function waits for it to complete before proceeding.
   This will be taken out in a future patch in favor of polling.)
2014-02-04 07:59:58 -06:00
..
cache_manip.c cache: Add functions that create/remove cache LVs 2014-02-04 07:59:58 -06:00
lv_alloc.h cleanup: self compilable headers 2013-12-12 13:28:19 +01:00
lv_manip.c pool: Make another thin pool fn generic for cache usage also 2014-02-04 07:03:52 -06:00
lv.c thin: merge display 2013-12-04 14:30:26 +01:00
lv.h cleanup: self compilable headers 2013-12-12 13:28:19 +01:00
merge.c thin: snapshot merge support 2013-12-04 14:30:25 +01:00
metadata-exported.h cache: Add functions that create/remove cache LVs 2014-02-04 07:59:58 -06:00
metadata.c compilation: Rename tags variables to tagsl. 2014-01-30 21:09:28 +00:00
metadata.h compilation: Rename tags variables to tagsl. 2014-01-30 21:09:28 +00:00
mirror.c compilation: Rename tags variables to tagsl. 2014-01-30 21:09:28 +00:00
pool_manip.c cache/pool: Make the fns in pool_manip.c work with cache pools 2014-01-28 12:25:07 -06:00
pv_alloc.h cleanup: self compilable headers 2013-12-12 13:28:19 +01:00
pv_manip.c fix missing header 2013-11-22 21:00:55 +01:00
pv_map.c logging: classify log_debug messages 2013-01-07 22:30:29 +00:00
pv_map.h Track unreserved space for all alloc policies and then permit NORMAL to place 2012-02-01 02:10:45 +00:00
pv.c pre-release 2014-01-20 19:22:56 +00:00
pv.h cleanup: self compilable headers 2013-12-12 13:28:19 +01:00
raid_manip.c raid: add temporary activation for raid metadata clear 2014-02-04 14:51:05 +01:00
replicator_manip.c logging: classify log_debug messages 2013-01-07 22:30:29 +00:00
segtype.c clean: remove unneeded assign 2013-06-17 09:34:56 +02:00
segtype.h cache: New 'cachepool' segment type 2014-01-27 05:27:16 -06:00
snapshot_manip.c thin: snapshot merge support 2013-12-04 14:30:25 +01:00
thin_manip.c thin: validate external origin size 2014-01-29 14:58:13 +01:00
vg.c metadata.c: Call refactored vgreduce_single 2013-11-19 14:40:30 -06:00
vg.h cleanup: self compilable headers 2013-12-12 13:28:19 +01:00