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

debug: add stack trace point

This commit is contained in:
Zdenek Kabelac 2017-08-22 10:19:52 +02:00
parent c1e3f96c97
commit 539a48a328
2 changed files with 3 additions and 3 deletions

2
lib/cache/lvmetad.c vendored
View File

@ -1281,7 +1281,7 @@ int lvmetad_vg_update_finish(struct volume_group *vg)
if (pvl->pv->dev && !lvmetad_pv_found(vg->cmd, &pvl->pv->id, pvl->pv->dev,
vgu->fid ? vgu->fid->fmt : pvl->pv->fmt,
pvl->pv->label_sector, NULL, NULL, NULL))
return 0;
return_0;
}
vg->lvmetad_update_pending = 0;

View File

@ -273,7 +273,7 @@ static int _create_control(const char *control, uint32_t major, uint32_t minor)
*/
ret = _control_exists(control, major, minor);
if (ret == -1)
return 0; /* Failed to unlink existing incorrect node */
return_0; /* Failed to unlink existing incorrect node */
if (ret)
return 1; /* Already exists and correct */
@ -284,7 +284,7 @@ static int _create_control(const char *control, uint32_t major, uint32_t minor)
(void) dm_prepare_selinux_context(NULL, 0);
if (!ret)
return 0;
return_0;
log_verbose("Creating device %s (%u, %u)", control, major, minor);