diff options
author | Petr Rockai <prockai@redhat.com> | 2010-11-30 11:53:31 +0000 |
---|---|---|
committer | Petr Rockai <prockai@redhat.com> | 2010-11-30 11:53:31 +0000 |
commit | 8191fe4f4aebfa6ef55977ba6dfa8ebe01f8d06f (patch) | |
tree | 3917720f959540da970c0df2e3711217630709ae /tools/tools.h | |
parent | 0669d21847969125dee94513f78f3193e40b375f (diff) | |
download | lvm2-8191fe4f4aebfa6ef55977ba6dfa8ebe01f8d06f.tar.gz lvm2-8191fe4f4aebfa6ef55977ba6dfa8ebe01f8d06f.tar.xz lvm2-8191fe4f4aebfa6ef55977ba6dfa8ebe01f8d06f.zip |
Refactor the percent (mirror sync, snapshot usage) handling code to use
fixed-point values instead of a combination of a float value and an enum.
Diffstat (limited to 'tools/tools.h')
-rw-r--r-- | tools/tools.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/tools.h b/tools/tools.h index 07261c8b..cfbceeb4 100644 --- a/tools/tools.h +++ b/tools/tools.h @@ -85,7 +85,7 @@ typedef enum { PERCENT_LV, PERCENT_PVS, PERCENT_ORIGIN -} percent_t; +} percent_type_t; enum { CHANGE_AY = 0, @@ -106,7 +106,7 @@ struct arg_values { int64_t i64_value; uint64_t ui64_value; sign_t sign; - percent_t percent; + percent_type_t percent; /* void *ptr; // Currently not used. */ }; @@ -174,7 +174,7 @@ int64_t arg_int64_value(struct cmd_context *cmd, int a, const int64_t def); uint64_t arg_uint64_value(struct cmd_context *cmd, int a, const uint64_t def); const void *arg_ptr_value(struct cmd_context *cmd, int a, const void *def); sign_t arg_sign_value(struct cmd_context *cmd, int a, const sign_t def); -percent_t arg_percent_value(struct cmd_context *cmd, int a, const percent_t def); +percent_type_t arg_percent_value(struct cmd_context *cmd, int a, const percent_type_t def); int arg_count_increment(struct cmd_context *cmd, int a); unsigned grouped_arg_count(const struct arg_values *av, int a); |