1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

backup: set in vg_commit

Another step towards better automatic handling of backup,
and automatically setup needs_backup after commit.

In some next step we should reduce number of backups and takem
then only at the command finish with  vg_committed content.
This commit is contained in:
Zdenek Kabelac 2021-03-09 11:30:28 +01:00
parent 88d04e9173
commit 177b63becc
2 changed files with 2 additions and 3 deletions

View File

@ -6791,8 +6791,6 @@ int lv_remove_single(struct cmd_context *cmd, struct logical_volume *lv,
display_lvname(pool_lv));
}
vg->needs_backup = 1;
lockd_lv(cmd, lock_lv, "un", LDLV_PERSISTENT);
lockd_free_lv(cmd, vg, lv->name, &lv->lvid.id[1], lv->lock_args);

View File

@ -3173,6 +3173,7 @@ int vg_commit(struct volume_group *vg)
dm_list_init(&vg->msg_list);
vg->needs_write_and_commit = 0;
}
vg->needs_backup = 0;
}
/* If at least one mda commit succeeded, it was committed */