1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00
lvm2/lib/format_text
David Teigland 3ae5569570 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)
2018-11-06 14:18:41 -06:00
..
archive.c Merge branch 'master' into 2018-05-11-fork-libdm 2018-06-01 13:04:12 +01:00
archiver.c Remove lvmetad 2018-07-11 11:26:42 -05:00
archiver.h build: Don't generate symlinks in include/ dir 2018-05-14 10:30:20 +01:00
export.c device_mapper: remove dbg_malloc. 2018-06-08 13:40:53 +01:00
flags.c Add dm-writecache support 2018-11-06 14:18:41 -06:00
format-text.c metadata: prevent writing beyond metadata area 2018-10-29 16:53:17 -05:00
format-text.h build: Don't generate symlinks in include/ dir 2018-05-14 10:30:20 +01:00
import_vsn1.c Remove lvmetad 2018-07-11 11:26:42 -05:00
import-export.h build: Don't generate symlinks in include/ dir 2018-05-14 10:30:20 +01:00
import.c Remove lvmetad 2018-07-11 11:26:42 -05:00
layout.h Remove independent metadata areas 2018-06-13 12:25:19 -05:00
text_export.h coverity: fix possible resource leak of descendants_buffer in _print_historical_lv fn 2016-05-31 09:36:58 +02:00
text_import.h doc: change fsf address 2016-01-21 12:11:37 +01:00
text_label.c device_mapper: remove dbg_malloc. 2018-06-08 13:40:53 +01:00