All of lore.kernel.org
 help / color / mirror / Atom feed
From: David Teigland <teigland@sourceware.org>
To: lvm-devel@redhat.com
Subject: master - hints: remove warning when clearing hint file
Date: Wed,  2 Sep 2020 19:08:21 +0000 (GMT)	[thread overview]
Message-ID: <20200902190821.AD9853857C48@sourceware.org> (raw)

Gitweb:        https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=8b9028bbe7a6f2e01ba6bddcf256d02fc11d4858
Commit:        8b9028bbe7a6f2e01ba6bddcf256d02fc11d4858
Parent:        d1019a6434a0ffb2b9ed63985e1895435ddeadcf
Author:        David Teigland <teigland@redhat.com>
AuthorDate:    Wed Sep 2 14:06:46 2020 -0500
Committer:     David Teigland <teigland@redhat.com>
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(-)

diff --git a/lib/label/hints.c b/lib/label/hints.c
index 8da131428..4177c678f 100644
--- a/lib/label/hints.c
+++ b/lib/label/hints.c
@@ -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;



                 reply	other threads:[~2020-09-02 19:08 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200902190821.AD9853857C48@sourceware.org \
    --to=teigland@sourceware.org \
    --cc=lvm-devel@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.