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:
parent
88d04e9173
commit
177b63becc
@ -6791,8 +6791,6 @@ int lv_remove_single(struct cmd_context *cmd, struct logical_volume *lv,
|
|||||||
display_lvname(pool_lv));
|
display_lvname(pool_lv));
|
||||||
}
|
}
|
||||||
|
|
||||||
vg->needs_backup = 1;
|
|
||||||
|
|
||||||
lockd_lv(cmd, lock_lv, "un", LDLV_PERSISTENT);
|
lockd_lv(cmd, lock_lv, "un", LDLV_PERSISTENT);
|
||||||
lockd_free_lv(cmd, vg, lv->name, &lv->lvid.id[1], lv->lock_args);
|
lockd_free_lv(cmd, vg, lv->name, &lv->lvid.id[1], lv->lock_args);
|
||||||
|
|
||||||
|
@ -3173,6 +3173,7 @@ int vg_commit(struct volume_group *vg)
|
|||||||
dm_list_init(&vg->msg_list);
|
dm_list_init(&vg->msg_list);
|
||||||
vg->needs_write_and_commit = 0;
|
vg->needs_write_and_commit = 0;
|
||||||
}
|
}
|
||||||
|
vg->needs_backup = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* If at least one mda commit succeeded, it was committed */
|
/* If at least one mda commit succeeded, it was committed */
|
||||||
|
Loading…
Reference in New Issue
Block a user