From 0aeb65f5f52903907451cdce7dbf0b4be21d46a3 Mon Sep 17 00:00:00 2001 From: Scott Mayhew Date: Tue, 21 Jun 2016 11:51:40 -0400 Subject: statd: suppress a benign log message in nsm_delete_host() Commit 76f8ce8c (statd: Update existing record if we receive SM_MON with new cookie) added some logic to unconditionally delete some existing on-disk monitor records. That works fine in an HA-NFS setup where there's a good chance of monitor files being left around after service failovers, but in the case where there isn't an existing monitor file statd emits a scary looking message like this: Jun 15 14:14:59 hostname rpc.statd[1368]: Failed to delete: could not stat original file /var/lib/nfs/statd/sm/nfs.smayhew.test: No such file or directory That message can be suppressed. Signed-off-by: Scott Mayhew Signed-off-by: Steve Dickson --- support/include/nsm.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'support/include') diff --git a/support/include/nsm.h b/support/include/nsm.h index fb4d823..080d176 100644 --- a/support/include/nsm.h +++ b/support/include/nsm.h @@ -59,7 +59,8 @@ extern unsigned int extern _Bool nsm_insert_monitored_host(const char *hostname, const struct sockaddr *sap, const struct mon *m); extern void nsm_delete_monitored_host(const char *hostname, - const char *mon_name, const char *my_name); + const char *mon_name, const char *my_name, + const int chatty); extern void nsm_delete_notified_host(const char *hostname, const char *mon_name, const char *my_name); extern size_t nsm_priv_to_hex(const char *priv, char *buf, -- cgit