mirror of
git://sourceware.org/git/lvm2.git
synced 2025-03-06 00:58:48 +03:00
vgdisplay: remove command def for activevolumegroups
too minor to care about separating
This commit is contained in:
parent
acd7cfbc08
commit
f08d1caf47
@ -1872,7 +1872,7 @@ ID: vgcreate_general
|
||||
---
|
||||
|
||||
vgdisplay
|
||||
OO: OO_REPORTING, --short
|
||||
OO: OO_REPORTING, --short, --activevolumegroups
|
||||
OP: VG|Tag ...
|
||||
IO: --partial, --ignoreskippedcluster
|
||||
ID: vgdisplay_general
|
||||
@ -1886,19 +1886,12 @@ ID: vgdisplay_columns
|
||||
DESC: Display output in columns like vgs.
|
||||
|
||||
vgdisplay --colon
|
||||
OO: OO_REPORTING
|
||||
OO: OO_REPORTING, --activevolumegroups
|
||||
OP: VG|Tag ...
|
||||
IO: --partial, --ignoreskippedcluster
|
||||
ID: vgdisplay_colon
|
||||
DESC: Generate colon separated output.
|
||||
|
||||
vgdisplay --activevolumegroups
|
||||
OO: OO_REPORTING, --short, --colon
|
||||
IO: --partial, --ignoreskippedcluster
|
||||
ID: vgdisplay_active
|
||||
RULE: --short not --colon
|
||||
DESC: Display Volume Groups with active LVs.
|
||||
|
||||
---
|
||||
|
||||
OO_VGEXPORT: --reportformat ReportFmt
|
||||
|
@ -101,7 +101,6 @@ static const struct command_function _command_functions[CMD_COUNT] = {
|
||||
/* vgdisplay variants */
|
||||
{ vgdisplay_columns_CMD, vgdisplay_columns_cmd },
|
||||
{ vgdisplay_colon_CMD, vgdisplay_colon_cmd },
|
||||
{ vgdisplay_active_CMD, vgdisplay_active_cmd },
|
||||
{ vgdisplay_general_CMD, vgdisplay_general_cmd },
|
||||
|
||||
/* lvconvert utilities related to repair. */
|
||||
|
@ -196,7 +196,6 @@ int pvdisplay_cmd(struct cmd_context *cmd, int argc, char **argv);
|
||||
int vgdisplay_columns_cmd(struct cmd_context *cmd, int argc, char **argv);
|
||||
int vgdisplay_colon_cmd(struct cmd_context *cmd, int argc, char **argv);
|
||||
int vgdisplay_general_cmd(struct cmd_context *cmd, int argc, char **argv);
|
||||
int vgdisplay_active_cmd(struct cmd_context *cmd, int argc, char **argv);
|
||||
|
||||
int lvconvert_repair_cmd(struct cmd_context *cmd, int argc, char **argv);
|
||||
int lvconvert_replace_pv_cmd(struct cmd_context *cmd, int argc, char **argv);
|
||||
|
@ -59,20 +59,22 @@ static int _vgdisplay_general_single(struct cmd_context *cmd, const char *vg_nam
|
||||
|
||||
int vgdisplay_colon_cmd(struct cmd_context *cmd, int argc, char **argv)
|
||||
{
|
||||
if (argc && arg_is_set(cmd, activevolumegroups_ARG)) {
|
||||
log_error("Option -A is not allowed with volume group names");
|
||||
return EINVALID_CMD_LINE;
|
||||
}
|
||||
|
||||
return process_each_vg(cmd, argc, argv, NULL, NULL, 0, 0, NULL, _vgdisplay_colon_single);
|
||||
}
|
||||
|
||||
int vgdisplay_general_cmd(struct cmd_context *cmd, int argc, char **argv)
|
||||
{
|
||||
return process_each_vg(cmd, argc, argv, NULL, NULL, 0, 0, NULL, _vgdisplay_general_single);
|
||||
}
|
||||
if (argc && arg_is_set(cmd, activevolumegroups_ARG)) {
|
||||
log_error("Option -A is not allowed with volume group names");
|
||||
return EINVALID_CMD_LINE;
|
||||
}
|
||||
|
||||
int vgdisplay_active_cmd(struct cmd_context *cmd, int argc, char **argv)
|
||||
{
|
||||
if (arg_is_set(cmd, colon_ARG))
|
||||
return process_each_vg(cmd, argc, argv, NULL, NULL, 0, 0, NULL, _vgdisplay_colon_single);
|
||||
else
|
||||
return process_each_vg(cmd, argc, argv, NULL, NULL, 0, 0, NULL, _vgdisplay_general_single);
|
||||
return process_each_vg(cmd, argc, argv, NULL, NULL, 0, 0, NULL, _vgdisplay_general_single);
|
||||
}
|
||||
|
||||
int vgdisplay_columns_cmd(struct cmd_context *cmd, int argc, char **argv)
|
||||
|
Loading…
x
Reference in New Issue
Block a user