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:
parent
52f4042f1a
commit
b1e21cf9ed
@ -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__))
|
||||
|
Loading…
Reference in New Issue
Block a user