mirror of
git://sourceware.org/git/lvm2.git
synced 2025-08-02 04:22:02 +03:00
use pvmove flag
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user