summaryrefslogtreecommitdiff
path: root/tools/args.h
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 /tools/args.h
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 'tools/args.h')
-rw-r--r--tools/args.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/args.h b/tools/args.h
index adca84b2e..cc65be541 100644
--- a/tools/args.h
+++ b/tools/args.h
@@ -816,6 +816,9 @@ arg(withversions_ARG, '\0', "withversions", 0, 0, 0,
"each configuration node. If the setting is deprecated, also display\n"
"the version since which it is deprecated.\n")
+arg(writecacheblocksize_ARG, '\0', "writecacheblocksize", sizekb_VAL, 0, 0,
+ "The block size to use for cache blocks in writecache.\n")
+
arg(writebehind_ARG, '\0', "writebehind", number_VAL, 0, 0,
"The maximum number of outstanding writes that are allowed to\n"
"devices in a RAID1 LV that is marked write-mostly.\n"