]> sourceware.org Git - lvm2.git/commit
Add dm-writecache support
authorDavid Teigland <teigland@redhat.com>
Mon, 27 Aug 2018 19:53:09 +0000 (14:53 -0500)
committerDavid Teigland <teigland@redhat.com>
Tue, 6 Nov 2018 20:18:41 +0000 (14:18 -0600)
commit3ae55695708b5d702f21daf776607d30cebe69c3
tree1483934ae24e143943d57dada29046c3db4c953d
parentcac4a9743acb826d785c0e51e9a752d8959ced80
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)
28 files changed:
configure.ac
device_mapper/all.h
device_mapper/libdm-deptree.c
device_mapper/libdm-targets.c
lib/Makefile.in
lib/activate/activate.c
lib/activate/activate.h
lib/activate/dev_manager.c
lib/activate/dev_manager.h
lib/commands/toolcontext.c
lib/device/dev-type.c
lib/device/dev-type.h
lib/format_text/flags.c
lib/metadata/lv.c
lib/metadata/lv_manip.c
lib/metadata/merge.c
lib/metadata/metadata-exported.h
lib/metadata/metadata.c
lib/metadata/segtype.h
lib/writecache/writecache.c [new file with mode: 0644]
test/shell/writecache.sh [new file with mode: 0644]
tools/args.h
tools/command-lines.in
tools/lv_types.h
tools/lvconvert.c
tools/lvmcmdline.c
tools/toollib.c
tools/tools.h
This page took 0.044406 seconds and 5 git commands to generate.