mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-04 09:18:36 +03:00
fix pvsegs report too
This commit is contained in:
parent
898b3d4d78
commit
4bbfe1cf5b
@ -150,6 +150,18 @@ static int _pvs_in_vg(struct cmd_context *cmd, const char *vg_name,
|
|||||||
return process_each_pv_in_vg(cmd, vg, NULL, handle, &_pvs_single);
|
return process_each_pv_in_vg(cmd, vg, NULL, handle, &_pvs_single);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static int _pvsegs_in_vg(struct cmd_context *cmd, const char *vg_name,
|
||||||
|
struct volume_group *vg, int consistent,
|
||||||
|
void *handle)
|
||||||
|
{
|
||||||
|
if (!vg) {
|
||||||
|
log_error("Volume group %s not found", vg_name);
|
||||||
|
return ECMD_FAILED;
|
||||||
|
}
|
||||||
|
|
||||||
|
return process_each_pv_in_vg(cmd, vg, NULL, handle, &_pvsegs_single);
|
||||||
|
}
|
||||||
|
|
||||||
static int _report(struct cmd_context *cmd, int argc, char **argv,
|
static int _report(struct cmd_context *cmd, int argc, char **argv,
|
||||||
report_type_t report_type)
|
report_type_t report_type)
|
||||||
{
|
{
|
||||||
@ -323,7 +335,7 @@ static int _report(struct cmd_context *cmd, int argc, char **argv,
|
|||||||
report_handle, &_pvsegs_single);
|
report_handle, &_pvsegs_single);
|
||||||
else
|
else
|
||||||
r = process_each_vg(cmd, argc, argv, LCK_VG_READ, 0,
|
r = process_each_vg(cmd, argc, argv, LCK_VG_READ, 0,
|
||||||
report_handle, &_pvs_in_vg);
|
report_handle, &_pvsegs_in_vg);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user