mirror of
git://sourceware.org/git/lvm2.git
synced 2025-03-08 08:58:50 +03:00
command.h comment tidying
This commit is contained in:
parent
9a0f0c70bf
commit
d9d5b8414b
@ -110,7 +110,6 @@ struct pos_arg {
|
|||||||
};
|
};
|
||||||
|
|
||||||
/*
|
/*
|
||||||
*
|
|
||||||
* Commands using a given command definition must follow a set
|
* Commands using a given command definition must follow a set
|
||||||
* of rules. If a given command+LV matches the conditions in
|
* of rules. If a given command+LV matches the conditions in
|
||||||
* opts/lvt_bits/lvp_bits, then the checks are applied.
|
* opts/lvt_bits/lvp_bits, then the checks are applied.
|
||||||
@ -133,10 +132,11 @@ struct cmd_rule {
|
|||||||
uint32_t rule; /* RULE_INVALID, RULE_REQUIRE: check values must [not] be true */
|
uint32_t rule; /* RULE_INVALID, RULE_REQUIRE: check values must [not] be true */
|
||||||
int opts_count; /* entries in opts[] */
|
int opts_count; /* entries in opts[] */
|
||||||
int check_opts_count; /* entries in check_opts[] */
|
int check_opts_count; /* entries in check_opts[] */
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
* Array sizes
|
||||||
|
*
|
||||||
* CMD_RO_ARGS needs to accomodate a list of options,
|
* CMD_RO_ARGS needs to accomodate a list of options,
|
||||||
* of which one is required after which the rest are
|
* of which one is required after which the rest are
|
||||||
* optional.
|
* optional.
|
||||||
@ -152,8 +152,8 @@ struct cmd_rule {
|
|||||||
* one or more from required_opt_args is required,
|
* one or more from required_opt_args is required,
|
||||||
* then the rest are optional.
|
* then the rest are optional.
|
||||||
*/
|
*/
|
||||||
#define CMD_FLAG_ONE_REQUIRED_OPT 1
|
#define CMD_FLAG_ONE_REQUIRED_OPT 1 /* lvchange/vgchage require one item from required_opt_args */
|
||||||
#define CMD_FLAG_SECONDARY_SYNTAX 2
|
#define CMD_FLAG_SECONDARY_SYNTAX 2 /* allows syntax variants to be suppressed in certain output */
|
||||||
|
|
||||||
/* a register of the lvm commands */
|
/* a register of the lvm commands */
|
||||||
struct command {
|
struct command {
|
||||||
@ -197,11 +197,9 @@ struct command {
|
|||||||
int rp_count;
|
int rp_count;
|
||||||
int op_count;
|
int op_count;
|
||||||
int io_count;
|
int io_count;
|
||||||
|
|
||||||
/* used for processing current position */
|
|
||||||
int pos_count;
|
|
||||||
|
|
||||||
int rule_count;
|
int rule_count;
|
||||||
|
|
||||||
|
int pos_count; /* temp counter used by create-command */
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user