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:
parent
d1019a6434
commit
8b9028bbe7
@ -274,7 +274,7 @@ static int _clear_hints(struct cmd_context *cmd)
|
|||||||
time_t t;
|
time_t t;
|
||||||
|
|
||||||
if (!(fp = fopen(_hints_file, "w"))) {
|
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 */
|
/* shouldn't happen, but try to unlink in case */
|
||||||
_unlink_hints();
|
_unlink_hints();
|
||||||
return 0;
|
return 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user