From 13e8c7e4344ec57917f5c74f9bca071274d235ce Mon Sep 17 00:00:00 2001 From: Dave Wysochanski Date: Wed, 1 Jul 2009 17:00:50 +0000 Subject: Rework the toollib interface (process_each_*) on top of new vg_read. Sun May 3 12:32:30 CEST 2009 Petr Rockai * Rework the toollib interface (process_each_*) on top of new vg_read. Rebased 6/26/09 by Dave W. - Add skipping message to process_each_lv - Remove inconsistent_t. --- tools/vgdisplay.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'tools/vgdisplay.c') diff --git a/tools/vgdisplay.c b/tools/vgdisplay.c index de38d8b8..bbabceef 100644 --- a/tools/vgdisplay.c +++ b/tools/vgdisplay.c @@ -16,10 +16,12 @@ #include "tools.h" static int vgdisplay_single(struct cmd_context *cmd, const char *vg_name, - struct volume_group *vg, int consistent, + struct volume_group *vg, void *handle __attribute((unused))) { /* FIXME Do the active check here if activevolumegroups_ARG ? */ + if (vg_read_error(vg)) + return ECMD_FAILED; vg_check_status(vg, EXPORTED_VG); @@ -91,8 +93,7 @@ int vgdisplay(struct cmd_context *cmd, int argc, char **argv) } **********/ - return process_each_vg(cmd, argc, argv, LCK_VG_READ, - VG_INCONSISTENT_CONTINUE, NULL, + return process_each_vg(cmd, argc, argv, 0, NULL, vgdisplay_single); /******** FIXME Need to count number processed -- cgit