1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-01-03 05:18:29 +03:00

Add sys_debug loging for unlink

This unlink intentionally silently ignores any errors.
It's still worth to trace its error status in debug mode.
This commit is contained in:
Zdenek Kabelac 2011-01-05 15:06:10 +00:00
parent 5c4622fd2a
commit 5fc79ef6dc

View File

@ -261,7 +261,9 @@ int backup_remove(struct cmd_context *cmd, const char *vg_name)
/*
* Let this fail silently.
*/
unlink(path);
if (unlink(path))
log_sys_debug("unlink", path);
return 1;
}