summaryrefslogtreecommitdiff
path: root/tools/commands.h
diff options
context:
space:
mode:
authorZdenek Kabelac <zkabelac@redhat.com>2016-04-25 13:39:30 +0200
committerZdenek Kabelac <zkabelac@redhat.com>2016-05-19 18:40:14 +0200
commit197066c863607a884c0eef2f16d969aa00adcab1 (patch)
treeabff01fc601d1a1f44eb129537b444b067f4165e /tools/commands.h
parent8fd886f735125de4b3e32fc0a188af0192a0d173 (diff)
downloadlvm2-197066c863607a884c0eef2f16d969aa00adcab1.tar.gz
lvchange: allow change of cache mode
Add support for active cache LV. Handle --cachemode args validation during command line processing. Rework some lvm2 internal to use lvm2 defined CACHE_MODE enums indepently on libdm defines and use enum around the code instead of passing and comparing strings.
Diffstat (limited to 'tools/commands.h')
-rw-r--r--tools/commands.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/commands.h b/tools/commands.h
index 7b32835ea..da432a708 100644
--- a/tools/commands.h
+++ b/tools/commands.h
@@ -146,6 +146,7 @@ xx(lvchange,
"\t[--addtag <Tag>]\n"
"\t[--alloc <AllocationPolicy>]\n"
"\t[-C|--contiguous {y|n}]\n"
+ "\t[--cachemode <CacheMode>]\n"
"\t[--cachepolicy <policyname>] [--cachesettings <parameter=value>]\n"
"\t[--commandprofile <ProfileName>]\n"
"\t[-d|--debug]\n"
@@ -185,7 +186,8 @@ xx(lvchange,
"\t<LogicalVolume[Path]> [<LogicalVolume[Path]>...]\n",
activationmode_ARG, addtag_ARG, alloc_ARG, autobackup_ARG, activate_ARG,
- available_ARG, cachepolicy_ARG, cachesettings_ARG, contiguous_ARG, deltag_ARG,
+ available_ARG, cachemode_ARG, cachepolicy_ARG, cachesettings_ARG,
+ contiguous_ARG, deltag_ARG,
discards_ARG, detachprofile_ARG, errorwhenfull_ARG, force_ARG,
ignorelockingfailure_ARG, ignoremonitoring_ARG, ignoreactivationskip_ARG,
ignoreskippedcluster_ARG, major_ARG, metadataprofile_ARG, minor_ARG,