Skip to contentSkip to conversation

nfsdcld: demote pipe opening error to D_GENERAL

PATCH In review Jeff Layton 2 participants 2 messages May 8, 2012 – May 9, 2012

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 nfsdcld: demote pipe opening error to D_GENERAL

It's actually expected that this will fail initially when we start the daemon. Until knfsd has been started, the pipe doesn't exist, and we generally want to start nfsdcld before starting knfsd.

Avoid the scary error message by demoting this message to D_GENERAL.

---
 utils/nfsdcld/nfsdcld.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
utils/nfsdcld/nfsdcld.c +1 -1
index f4e9502..e7af4e3 100644
@@ -138,7 +138,7 @@ cld_pipe_open(struct cld_client *clnt)
 	xlog(D_GENERAL, "%s: opening upcall pipe %s", __func__, pipepath);
 	fd = open(pipepath, O_RDWR, 0);
 	if (fd < 0) {
-		xlog(L_ERROR, "%s: open of %s failed: %m", __func__, pipepath);
+		xlog(D_GENERAL, "%s: open of %s failed: %m", __func__, pipepath);
 		return -errno;
 	}
 
Signature · 1 line
1.7.7.6
#1 lore raw
Quoted 7 lines · Jeff Layton

It's actually expected that this will fail initially when we start the daemon. Until knfsd has been started, the pipe doesn't exist, and we generally want to start nfsdcld before starting knfsd.

Avoid the scary error message by demoting this message to D_GENERAL.

Committed...

steved.

Quoted 17 lines
---
 utils/nfsdcld/nfsdcld.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
utils/nfsdcld/nfsdcld.c +1 -1
index f4e9502..e7af4e3 100644
@@ -138,7 +138,7 @@ cld_pipe_open(struct cld_client *clnt)
 	xlog(D_GENERAL, "%s: opening upcall pipe %s", __func__, pipepath);
 	fd = open(pipepath, O_RDWR, 0);
 	if (fd < 0) {
-		xlog(L_ERROR, "%s: open of %s failed: %m", __func__, pipepath);
+		xlog(D_GENERAL, "%s: open of %s failed: %m", __func__, pipepath);
 		return -errno;
 	}