diff options
author | Dave Wysochanski <dwysocha@redhat.com> | 2009-07-01 17:00:50 +0000 |
---|---|---|
committer | Dave Wysochanski <dwysocha@redhat.com> | 2009-07-01 17:00:50 +0000 |
commit | 13e8c7e4344ec57917f5c74f9bca071274d235ce (patch) | |
tree | fa112cef193eb9bd824953b3a504cfcf5ad6b246 /tools/vgck.c | |
parent | b8b3508c59da5eed15b8db507fd8ef6cc771823f (diff) | |
download | lvm2-13e8c7e4344ec57917f5c74f9bca071274d235ce.tar.gz lvm2-13e8c7e4344ec57917f5c74f9bca071274d235ce.tar.xz lvm2-13e8c7e4344ec57917f5c74f9bca071274d235ce.zip |
Rework the toollib interface (process_each_*) on top of new vg_read.
Sun May 3 12:32:30 CEST 2009 Petr Rockai <me@mornfall.net>
* 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.
Diffstat (limited to 'tools/vgck.c')
-rw-r--r-- | tools/vgck.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/tools/vgck.c b/tools/vgck.c index 977f4472..63d2d415 100644 --- a/tools/vgck.c +++ b/tools/vgck.c @@ -18,7 +18,7 @@ static int vgck_single(struct cmd_context *cmd __attribute((unused)), const char *vg_name, - struct volume_group *vg, int consistent, + struct volume_group *vg, void *handle __attribute((unused))) { if (!vg_check_status(vg, EXPORTED_VG)) @@ -32,7 +32,6 @@ static int vgck_single(struct cmd_context *cmd __attribute((unused)), int vgck(struct cmd_context *cmd, int argc, char **argv) { - return process_each_vg(cmd, argc, argv, LCK_VG_READ, - VG_INCONSISTENT_ABORT, NULL, + return process_each_vg(cmd, argc, argv, 0, NULL, &vgck_single); } |