diff options
author | David Teigland <teigland@redhat.com> | 2017-02-17 11:45:13 -0600 |
---|---|---|
committer | David Teigland <teigland@redhat.com> | 2017-02-17 13:20:15 -0600 |
commit | f88ce5fb9954721b41fa1fc19c53abc18006c395 (patch) | |
tree | c284b2aa90c9f991179d230125cfe4285d1abe02 /tools/command.h | |
parent | 56deed9d54c9070cc586f040264a8e1985b19bdc (diff) | |
download | lvm2-f88ce5fb9954721b41fa1fc19c53abc18006c395.tar.gz |
lvconvert: include swap behavior in generic pool syntax
For this syntax:
lvconvert --thinpool LV1 --poolmetadata LV2
lvconvert --cachepool LV1 --poolmetadata LV2
Restore the metadata swapping behavior in addition to
the pool creation behavior. When LV1 is already a pool,
the metadata LV will be swapped with LV2.
When LV1 is not a pool, it will be converted to a
pool using the specified LV for metadata.
This syntax is no longer advertised because of the
ambiguous behavior. The primary syntaxes for pool
creation and metadata swapping will be the advertised
methods.
Diffstat (limited to 'tools/command.h')
-rw-r--r-- | tools/command.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/command.h b/tools/command.h index fcf0ccb7a..95bd797cb 100644 --- a/tools/command.h +++ b/tools/command.h @@ -166,7 +166,8 @@ struct cmd_rule { */ #define CMD_FLAG_ONE_REQUIRED_OPT 1 /* lvchange/vgchage require one item from required_opt_args */ #define CMD_FLAG_SECONDARY_SYNTAX 2 /* allows syntax variants to be suppressed in certain output */ -#define CMD_FLAG_PARSE_ERROR 4 /* error parsing command-lines.in def */ +#define CMD_FLAG_PREVIOUS_SYNTAX 4 /* allows syntax variants to not be advertised in output */ +#define CMD_FLAG_PARSE_ERROR 8 /* error parsing command-lines.in def */ /* a register of the lvm commands */ struct command { |