summaryrefslogtreecommitdiff
path: root/tools/lvmcmdline.c
diff options
context:
space:
mode:
authorAlasdair G Kergon <agk@redhat.com>2012-08-07 21:24:41 +0100
committerAlasdair G Kergon <agk@redhat.com>2012-08-07 21:24:41 +0100
commit701b4a8363417b7d72a7255ca663991f3be95859 (patch)
tree5fff7a719ab236d3808d5b494e76bae426a62e4f /tools/lvmcmdline.c
parentdf452b47a1ae0288e737cfcdc171f8fe31e4a876 (diff)
downloadlvm2-701b4a8363417b7d72a7255ca663991f3be95859.tar.gz
thin: use discards as plural rather than singular
Global change from --discard to --discards, as that feels more natural.
Diffstat (limited to 'tools/lvmcmdline.c')
-rw-r--r--tools/lvmcmdline.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/tools/lvmcmdline.c b/tools/lvmcmdline.c
index 50a2ac182..99648170f 100644
--- a/tools/lvmcmdline.c
+++ b/tools/lvmcmdline.c
@@ -216,15 +216,15 @@ int activation_arg(struct cmd_context *cmd __attribute__((unused)), struct arg_v
return 1;
}
-int discard_arg(struct cmd_context *cmd __attribute__((unused)), struct arg_values *av)
+int discards_arg(struct cmd_context *cmd __attribute__((unused)), struct arg_values *av)
{
- thin_discard_t discard;
+ thin_discards_t discards;
- if (!get_pool_discard(av->value, &discard))
+ if (!get_pool_discards(av->value, &discards))
return_0;
- av->i_value = discard;
- av->ui_value = discard;
+ av->i_value = discards;
+ av->ui_value = discards;
return 1;
}