Linux NFS development
 help / color / mirror / Atom feed
From: Steve Dickson <SteveD@redhat.com>
To: nfs@lists.sourceforge.net
Subject: [PATCH] [nfs-utils: mountd] exports too verbose.
Date: Tue, 13 Mar 2007 12:02:13 -0400	[thread overview]
Message-ID: <45F6CB05.6010604@RedHat.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 176 bytes --]

This patch is relative to the git tree at:
git://git.infradead.org/~steved/nfs-utils.git
which has been updated to the nfs-utils-1.0.12
release.

Please consider...

steved.



[-- Attachment #2: exports-nonverbose.patch --]
[-- Type: text/x-patch, Size: 1172 bytes --]

commit daf1b781bf92177ed616e4ced1a3f90353acde25
Author: Steve Dickson <steved@redhat.com>
Date:   Tue Mar 13 11:55:00 2007 -0400

    This patch tones down the verbosity of exports that export
    the same directory for both read-only and read-write.
    Something similar to:
    
    /var    10.12.32.32(rw,nohide,fsid=1)
    /var    *(ro,nohide,fsid=1)
    
    Every time the export is access, the following syslog
    is logged:
    
    /var exported to both * and 10.12.32.32 in *,10.12.32.32
    
    Since the exports are working as expected, this
    syslog is really not needed. So this patch changes
    that syslog from a warning to a debugging message.
    
    Signed-off-by: Steve Dickson <steved@redhat.com>

diff --git a/utils/mountd/cache.c b/utils/mountd/cache.c
index a14f4f2..3e30a76 100644
--- a/utils/mountd/cache.c
+++ b/utils/mountd/cache.c
@@ -511,7 +511,7 @@ void nfsd_export(FILE *f)
 			if (!found)
 				found = exp;
 			else {
-				xlog(L_WARNING, "%s exported to both %s and %s in %s",
+				xlog(D_GENERAL, "%s exported to both %s and %s in %s",
 				     path, exp->m_client->m_hostname, found->m_client->m_hostname,
 				     dom);
 			}

[-- Attachment #3: Type: text/plain, Size: 345 bytes --]

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV

[-- Attachment #4: Type: text/plain, Size: 140 bytes --]

_______________________________________________
NFS maillist  -  NFS@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nfs

             reply	other threads:[~2007-03-13 16:02 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-03-13 16:02 Steve Dickson [this message]
2007-03-16  0:36 ` [PATCH] [nfs-utils: mountd] exports too verbose Neil Brown
2007-03-16 13:22   ` Steve Dickson
2007-03-18 23:23     ` Neil Brown
2007-03-19 18:47       ` Steve Dickson

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=45F6CB05.6010604@RedHat.com \
    --to=steved@redhat.com \
    --cc=nfs@lists.sourceforge.net \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox