master - writecache: add cvol suffix to attached cachevol
Gitweb: https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=998e7b107513697b3ea966ba49aeef3fe115d908 Commit: 998e7b107513697b3ea966ba49aeef3fe115d908 Parent: 81fe0457141d74e20a7fda45a69164405fc9f151 Author: David Teigland <[email protected]> AuthorDate: Tue Oct 15 16:03:34 2019 -0500 Committer: David Teigland <[email protected]> CommitterDate: Tue Oct 15 16:03:34 2019 -0500
writecache: add cvol suffix to attached cachevol
When an LV is used as a writecache cachevol, give
it the LV name a _cvol suffix. Remove the suffix
when the cachevol is detached, restoring the
original LV name.
--- test/shell/writecache.sh | 4 ++-- tools/lvconvert.c | 44 +++++++++++++++++++++++++++++++++++++++++++- 2 files changed, 45 insertions(+), 3 deletions(-)
test/shell/writecache.sh +2 -2
@@ -52,7 +52,7 @@ lvconvert --yes --type writecache --cachevol $lv2 $vg/$lv1 check lv_field $vg/$lv1 segtype writecache -lvs -a $vg/$lv2 --noheadings -o segtype >out +lvs -a $vg/${lv2}_cvol --noheadings -o segtype >out grep linear out lvchange -ay $vg/$lv1
@@ -94,7 +94,7 @@ lvconvert --yes --type writecache --cachevol $lv2 $vg/$lv1 check lv_field $vg/$lv1 segtype writecache -lvs -a $vg/$lv2 --noheadings -o segtype >out +lvs -a $vg/${lv2}_cvol --noheadings -o segtype >out grep linear out lvchange -ay $vg/$lv1
tools/lvconvert.c +43 -1
80 lines not on this page · raw message