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

hints: remove warning when clearing hint file

When the hint file cannot be accessed, silently
ignore hints, like other instances do.
This commit is contained in:
David Teigland 2020-09-02 14:06:46 -05:00
parent d1019a6434
commit 8b9028bbe7

View File

@ -274,7 +274,7 @@ static int _clear_hints(struct cmd_context *cmd)
time_t t;
if (!(fp = fopen(_hints_file, "w"))) {
log_warn("Failed to clear hint file.");
log_debug("clear_hints open errno %d", errno);
/* shouldn't happen, but try to unlink in case */
_unlink_hints();
return 0;