Skip to contentSkip to conversation

master - hints: remove warning when clearing hint file

PATCH David Teigland 1 participant 1 message Sep 2, 2020

lore
Share & tools
lore
#0 lore raw
Gitweb:        https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=8b9028bbe7a6f2e01ba6bddcf256d02fc11d4858
Commit:        8b9028bbe7a6f2e01ba6bddcf256d02fc11d4858
Parent:        d1019a6434a0ffb2b9ed63985e1895435ddeadcf
Author:        David Teigland <[email protected]>
AuthorDate:    Wed Sep 2 14:06:46 2020 -0500
Committer:     David Teigland <[email protected]>
CommitterDate: Wed Sep 2 14:06:46 2020 -0500

hints: remove warning when clearing hint file

When the hint file cannot be accessed, silently
ignore hints, like other instances do.

---
 lib/label/hints.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
lib/label/hints.c +1 -1
index 8da131428..4177c678f 100644
@@ -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;