Skip to contentSkip to conversation

master - toollib: Add --cachepolicy and implement get_cachepolicy_params.

PATCH Petr Rockai 1 participant 1 message Nov 20, 2014

lore
Share & tools
lore
#0 lore raw
Gitweb:        http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=f67e1fadb0fcdc5887663f9b0c9c46fc5835d418
Commit:        f67e1fadb0fcdc5887663f9b0c9c46fc5835d418
Parent:        d22ffd8c289f570b3406f684212b6e7821179710
Author:        Petr Rockai <[email protected]>
AuthorDate:    Wed Nov 19 18:39:29 2014 +0100
Committer:     Petr Rockai <[email protected]>
CommitterDate: Thu Nov 20 16:51:06 2014 +0100

toollib: Add --cachepolicy and implement get_cachepolicy_params.

---
 tools/args.h    |    1 +
 tools/toollib.c |   69 +++++++++++++++++++++++++++++++++++++++++++++++++++++++
 tools/toollib.h |    2 +
 3 files changed, 72 insertions(+), 0 deletions(-)
tools/args.h +1 -0
index 000af01..63fee14 100644
@@ -104,6 +104,7 @@ arg(trustcache_ARG, '\0', "trustcache", NULL, 0)
 arg(type_ARG, '\0', "type", segtype_arg, 0)
 arg(unbuffered_ARG, '\0', "unbuffered", NULL, 0)
 arg(uncache_ARG, '\0', "uncache", NULL, 0)
+arg(cachepolicy_ARG, '\0', "cachepolicy", string_arg, ARG_GROUPABLE)
 arg(units_ARG, '\0', "units", string_arg, 0)
 arg(unquoted_ARG, '\0', "unquoted", NULL, 0)
 arg(use_policies_ARG, '\0', "use-policies", NULL, 0)
tools/toollib.c +69 -0

75 lines not on this page · raw message

tools/toollib.h +2 -0
index 9040387..715f65e 100644
@@ -123,6 +123,8 @@ int get_pool_params(struct cmd_context *cmd,
 int get_stripe_params(struct cmd_context *cmd, uint32_t *stripes,
 		      uint32_t *stripe_size);
 
+struct dm_config_tree *get_cachepolicy_params(struct cmd_context *cmd);
+
 int change_tag(struct cmd_context *cmd, struct volume_group *vg,
 	       struct logical_volume *lv, struct physical_volume *pv, int arg);