* [PATCH] 2.6.1 nfs4 mount version message
@ 2004-02-03 1:46 Linda Dunaphant
2004-02-03 2:50 ` J. Bruce Fields
0 siblings, 1 reply; 2+ messages in thread
From: Linda Dunaphant @ 2004-02-03 1:46 UTC (permalink / raw)
To: linux-kernel
In the file fs/nfs/inode.c in nfs4_get_sb() there is a test that compares
the version of the incoming nfs4_mount_data versus NFS4_MOUNT_VERSION. If
these do not match, a warning message is printed. Inside the printk() for
this warning message, there is another test of the versions to determine
whether the string "older" or "newer" should be printed.
Shouldn't this second test be comparing NFS4_MOUNT_VERSION instead of
NFS_MOUNT_VERSION?
I have included a patch for linux-2.6.1.
Linda
diff -ur base.linux-2.6.1/fs/nfs/inode.c new.linux-2.6.1/fs/nfs/inode.c
--- base.linux-2.6.1/fs/nfs/inode.c 2004-01-09 01:59:55.000000000 -0500
+++ new.linux-2.6.1/fs/nfs/inode.c 2004-01-30 15:47:55.000000000 -0500
@@ -1499,7 +1499,7 @@
if (data->version != NFS4_MOUNT_VERSION) {
printk("nfs warning: mount version %s than kernel\n",
- data->version < NFS_MOUNT_VERSION ? "older" : "newer");
+ data->version < NFS4_MOUNT_VERSION ? "older" : "newer"); }
p = nfs_copy_user_string(NULL, &data->hostname, 256);
^ permalink raw reply [flat|nested] 2+ messages in thread* Re: [PATCH] 2.6.1 nfs4 mount version message
2004-02-03 1:46 [PATCH] 2.6.1 nfs4 mount version message Linda Dunaphant
@ 2004-02-03 2:50 ` J. Bruce Fields
0 siblings, 0 replies; 2+ messages in thread
From: J. Bruce Fields @ 2004-02-03 2:50 UTC (permalink / raw)
To: linda.dunaphant; +Cc: linux-kernel
On Mon, Feb 02, 2004 at 08:46:29PM -0500, Linda Dunaphant wrote:
> In the file fs/nfs/inode.c in nfs4_get_sb() there is a test that compares
> the version of the incoming nfs4_mount_data versus NFS4_MOUNT_VERSION. If
> these do not match, a warning message is printed. Inside the printk() for
> this warning message, there is another test of the versions to determine
> whether the string "older" or "newer" should be printed.
>
> Shouldn't this second test be comparing NFS4_MOUNT_VERSION instead of
> NFS_MOUNT_VERSION?
Whoops, yes.
> I have included a patch for linux-2.6.1.
Thanks.--Bruce Fields
> diff -ur base.linux-2.6.1/fs/nfs/inode.c new.linux-2.6.1/fs/nfs/inode.c
> --- base.linux-2.6.1/fs/nfs/inode.c 2004-01-09 01:59:55.000000000 -0500
> +++ new.linux-2.6.1/fs/nfs/inode.c 2004-01-30 15:47:55.000000000 -0500
> @@ -1499,7 +1499,7 @@
>
> if (data->version != NFS4_MOUNT_VERSION) {
> printk("nfs warning: mount version %s than kernel\n",
> - data->version < NFS_MOUNT_VERSION ? "older" : "newer");
> + data->version < NFS4_MOUNT_VERSION ? "older" : "newer"); }
>
> p = nfs_copy_user_string(NULL, &data->hostname, 256);
> -
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.tux.org/lkml/
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2004-02-03 2:50 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-02-03 1:46 [PATCH] 2.6.1 nfs4 mount version message Linda Dunaphant
2004-02-03 2:50 ` J. Bruce Fields
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.