public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [patch] silence nfs mount messages
@ 2004-03-29 19:00 Andries.Brouwer
  2004-03-29 19:11 ` Trond Myklebust
  0 siblings, 1 reply; 8+ messages in thread
From: Andries.Brouwer @ 2004-03-29 19:00 UTC (permalink / raw)
  To: akpm, torvalds, trond.myklebust; +Cc: linux-kernel

People complain about the kernel messages when mounting NFS.
(Just like last time a new NFS version was introduced.)
It is perfectly normal to have mount newer than the kernel,
or the kernel newer than mount. No messages are needed or useful.

Andries

diff -uprN -X /linux/dontdiff a/fs/nfs/inode.c b/fs/nfs/inode.c
--- a/fs/nfs/inode.c	2004-02-18 11:33:18.000000000 +0100
+++ b/fs/nfs/inode.c	2004-03-29 20:53:28.000000000 +0200
@@ -1292,8 +1292,10 @@ static struct super_block *nfs_get_sb(st
 		memset(root->data+root->size, 0, sizeof(root->data)-root->size);
 
 	if (data->version != NFS_MOUNT_VERSION) {
+#if 0
 		printk("nfs warning: mount version %s than kernel\n",
 			data->version < NFS_MOUNT_VERSION ? "older" : "newer");
+#endif
 		if (data->version < 2)
 			data->namlen = 0;
 		if (data->version < 3)
@@ -1599,10 +1601,12 @@ static struct super_block *nfs4_get_sb(s
 	/* Zero out the NFS state stuff */
 	init_nfsv4_state(server);
 
+#if 0
 	if (data->version != NFS4_MOUNT_VERSION) {
 		printk("nfs warning: mount version %s than kernel\n",
 			data->version < NFS_MOUNT_VERSION ? "older" : "newer");
 	}
+#endif
 
 	p = nfs_copy_user_string(NULL, &data->hostname, 256);
 	if (IS_ERR(p))

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2004-03-30  1:56 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-03-29 19:00 [patch] silence nfs mount messages Andries.Brouwer
2004-03-29 19:11 ` Trond Myklebust
2004-03-29 19:54   ` Andries Brouwer
2004-03-29 23:24     ` Trond Myklebust
2004-03-29 23:46       ` Andries Brouwer
2004-03-30  0:20         ` Trond Myklebust
2004-03-30  1:33           ` Andries Brouwer
2004-03-30  1:56             ` Trond Myklebust

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox