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:
parent
5c4622fd2a
commit
5fc79ef6dc
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user