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

Reinstate lost vg_write() in lvchange --permission.

This commit is contained in:
Alasdair Kergon 2003-04-02 13:01:04 +00:00
parent 8aa577ad34
commit 6a149cba6b

View File

@ -55,7 +55,7 @@ static int lvchange_permission(struct cmd_context *cmd,
}
log_very_verbose("Updating logical volume \"%s\" on disk(s)", lv->name);
if (!(lv->vg)) {
if (!vg_write(lv->vg)) {
/* FIXME: Attempt reversion? */
unlock_lv(cmd, lv->lvid.s);
return 0;