mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
lvmlockd: return error from vgcreate init_vg_sanlock
in vgcreate for shared sanlock vg, if sanlock_write_resource returns an unexpected error, then make init_vg_sanlock fail which will cause the vgcreate to fail.
This commit is contained in:
parent
99f9bb28c9
commit
d14245c724
@ -684,10 +684,10 @@ int lm_init_vg_sanlock(char *ls_name, char *vg_name, uint32_t flags, char *vg_ar
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (rv) {
|
if (rv < 0) {
|
||||||
log_error("clear lv resource area %llu error %d",
|
log_error("clear lv resource area %llu error %d",
|
||||||
(unsigned long long)offset, rv);
|
(unsigned long long)offset, rv);
|
||||||
break;
|
return rv;
|
||||||
}
|
}
|
||||||
offset += align_size;
|
offset += align_size;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user