mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-04 09:18:36 +03:00
lvmlock: return an error if lvb cannot be written
It doesn't make much difference, because if this happens, it means there are other more significant problems.
This commit is contained in:
parent
9e4dc83241
commit
0f0f6978e7
@ -1675,7 +1675,7 @@ int lm_convert_sanlock(struct lockspace *ls, struct resource *r,
|
|||||||
if (rv < 0) {
|
if (rv < 0) {
|
||||||
log_error("S %s R %s convert_san set_lvb error %d",
|
log_error("S %s R %s convert_san set_lvb error %d",
|
||||||
ls->name, r->name, rv);
|
ls->name, r->name, rv);
|
||||||
rv = -ELMERR;
|
return -ELMERR;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1810,7 +1810,7 @@ int lm_unlock_sanlock(struct lockspace *ls, struct resource *r,
|
|||||||
if (rv < 0) {
|
if (rv < 0) {
|
||||||
log_error("S %s R %s unlock_san set_lvb error %d",
|
log_error("S %s R %s unlock_san set_lvb error %d",
|
||||||
ls->name, r->name, rv);
|
ls->name, r->name, rv);
|
||||||
rv = -ELMERR;
|
return -ELMERR;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user