summaryrefslogtreecommitdiff
path: root/lib/Makefile.in
diff options
context:
space:
mode:
authorDavid Teigland <teigland@redhat.com>2018-08-27 14:53:09 -0500
committerDavid Teigland <teigland@redhat.com>2018-11-06 14:18:41 -0600
commit3ae55695708b5d702f21daf776607d30cebe69c3 (patch)
tree1483934ae24e143943d57dada29046c3db4c953d /lib/Makefile.in
parentcac4a9743acb826d785c0e51e9a752d8959ced80 (diff)
downloadlvm2-3ae55695708b5d702f21daf776607d30cebe69c3.tar.gz
Add dm-writecache support
dm-writecache is used like dm-cache with a standard LV as the cache. $ lvcreate -n main -L 128M -an foo /dev/loop0 $ lvcreate -n fast -L 32M -an foo /dev/pmem0 $ lvconvert --type writecache --cachepool fast foo/main $ lvs -a foo -o+devices LV VG Attr LSize Origin Devices [fast] foo -wi------- 32.00m /dev/pmem0(0) main foo Cwi------- 128.00m [main_wcorig] main_wcorig(0) [main_wcorig] foo -wi------- 128.00m /dev/loop0(0) $ lvchange -ay foo/main $ dmsetup table foo-main_wcorig: 0 262144 linear 7:0 2048 foo-main: 0 262144 writecache p 253:4 253:3 4096 0 foo-fast: 0 65536 linear 259:0 2048 $ lvchange -an foo/main $ lvconvert --splitcache foo/main $ lvs -a foo -o+devices LV VG Attr LSize Devices fast foo -wi------- 32.00m /dev/pmem0(0) main foo -wi------- 128.00m /dev/loop0(0)
Diffstat (limited to 'lib/Makefile.in')
-rw-r--r--lib/Makefile.in1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Makefile.in b/lib/Makefile.in
index 1b170ee56..722e95450 100644
--- a/lib/Makefile.in
+++ b/lib/Makefile.in
@@ -19,6 +19,7 @@ top_builddir = @top_builddir@
SOURCES =\
activate/activate.c \
cache/lvmcache.c \
+ writecache/writecache.c \
cache_segtype/cache.c \
commands/toolcontext.c \
config/config.c \