From 7512e5a202e22c77ec69f3be220d5d4e299e08a0 Mon Sep 17 00:00:00 2001 From: Alasdair Kergon Date: Wed, 30 Apr 2003 15:25:34 +0000 Subject: [PATCH] use pvmove flag --- tools/vgcfgbackup.c | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/tools/vgcfgbackup.c b/tools/vgcfgbackup.c index 46f90ec63..bc40e94b2 100644 --- a/tools/vgcfgbackup.c +++ b/tools/vgcfgbackup.c @@ -43,6 +43,15 @@ static int vg_backup_single(struct cmd_context *cmd, const char *vg_name, int vgcfgbackup(struct cmd_context *cmd, int argc, char **argv) { - return process_each_vg(cmd, argc, argv, LCK_VG_READ, 0, NULL, - &vg_backup_single); + int ret; + + if (partial_mode()) + init_pvmove(1); + + ret = process_each_vg(cmd, argc, argv, LCK_VG_READ, 0, NULL, + &vg_backup_single); + + init_pvmove(0); + + return ret; } -- 2.43.5