mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
cov: log failing unlink
This commit is contained in:
parent
f1ac130dc1
commit
70950bbd97
@ -225,7 +225,8 @@ static void _online_pvid_file_remove_devno(int major, int minor)
|
|||||||
|
|
||||||
if (!strncmp(buf, buf_in, strlen(buf))) {
|
if (!strncmp(buf, buf_in, strlen(buf))) {
|
||||||
log_debug("Unlink pv online %s %s", buf, path);
|
log_debug("Unlink pv online %s %s", buf, path);
|
||||||
unlink(path);
|
if (unlink(path))
|
||||||
|
log_sys_debug("unlink", path);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -248,7 +249,8 @@ static void _online_pvid_files_remove(void)
|
|||||||
|
|
||||||
memset(path, 0, sizeof(path));
|
memset(path, 0, sizeof(path));
|
||||||
snprintf(path, sizeof(path), "%s/%s", _pvs_online_dir, de->d_name);
|
snprintf(path, sizeof(path), "%s/%s", _pvs_online_dir, de->d_name);
|
||||||
unlink(path);
|
if (unlink(path))
|
||||||
|
log_sys_debug("unlink", path);
|
||||||
}
|
}
|
||||||
if (closedir(dir))
|
if (closedir(dir))
|
||||||
log_sys_debug("closedir", _pvs_online_dir);
|
log_sys_debug("closedir", _pvs_online_dir);
|
||||||
|
Loading…
Reference in New Issue
Block a user