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

raid: fix write_commit_backup

With commit 41c10034aa we actually
do require LV to be used with _vg_write_lv_suspend_commit_backup().

So write a proper separte single wrapper for write && commit && backup.
This commit is contained in:
Zdenek Kabelac 2017-06-26 23:25:24 +02:00
parent 52f4042f1a
commit b1e21cf9ed

View File

@ -2155,7 +2155,12 @@ static int _vg_write_lv_suspend_commit_backup(struct volume_group *vg,
static int _vg_write_commit_backup(struct volume_group *vg)
{
return _vg_write_lv_suspend_commit_backup(vg, NULL, 1, 1);
if (!vg_write(vg) || !vg_commit(vg))
return_0;
backup(vg);
return 1;
}
__attribute__ ((__unused__))