diff options
author | Zdenek Kabelac <zkabelac@redhat.com> | 2014-09-29 20:43:11 +0200 |
---|---|---|
committer | Zdenek Kabelac <zkabelac@redhat.com> | 2014-10-06 15:18:05 +0200 |
commit | fc77e4291bdae39e1ea9dfdf0c8ef9af493df9cb (patch) | |
tree | b2826da5bba86817755df79dec10e071654f3f1d /tools/lvscan.c | |
parent | 1a6c892864c409724bcc0fdd48e325ae1674ae8b (diff) | |
download | lvm2-fc77e4291bdae39e1ea9dfdf0c8ef9af493df9cb.tar.gz |
commands: support shortcut -H for cache objects
Introduce cache_long_ARG for those instancies
where --cache is not related to caching LV.
(pvchange,vg|lv|pvscan).
cache_ARG is now with -H shortcut.
Diffstat (limited to 'tools/lvscan.c')
-rw-r--r-- | tools/lvscan.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/lvscan.c b/tools/lvscan.c index f05fd50c3..2d7be074b 100644 --- a/tools/lvscan.c +++ b/tools/lvscan.c @@ -56,7 +56,7 @@ static int lvscan_single(struct cmd_context *cmd, struct logical_volume *lv, const char *active_str, *snapshot_str; - if (arg_count(cmd, cache_ARG)) + if (arg_count(cmd, cache_long_ARG)) return _lvscan_single_lvmetad(cmd, lv); if (!arg_count(cmd, all_ARG) && !lv_is_visible(lv)) @@ -93,7 +93,7 @@ static int lvscan_single(struct cmd_context *cmd, struct logical_volume *lv, int lvscan(struct cmd_context *cmd, int argc, char **argv) { - if (argc && !arg_count(cmd, cache_ARG)) { + if (argc && !arg_count(cmd, cache_long_ARG)) { log_error("No additional command line arguments allowed"); return EINVALID_CMD_LINE; } |