NFS: Allow text-based mounts via compat_sys_mount

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <git-commits-head@...>
Date: Friday, February 15, 2008 - 6:01 pm

Gitweb:     http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=4267c9...
Commit:     4267c9561d9c3bb2abf45abed9c75a1c892d7d15
Parent:     8e60029f403781b8a63b7ffdb7dc1faff6ca651e
Author:     Chuck Lever <chuck.lever@oracle.com>
AuthorDate: Wed Feb 13 14:55:17 2008 -0500
Committer:  Trond Myklebust <Trond.Myklebust@netapp.com>
CommitDate: Wed Feb 13 23:24:05 2008 -0500

    NFS: Allow text-based mounts via compat_sys_mount
    
    The compat_sys_mount() system call throws EINVAL for text-based NFSv4
    mounts.
    
    The text-based mount interface assumes that any mount option blob that
    doesn't set the version field to "1" is a C string (ie not a legacy
    mount request).  The compat_sys_mount() call treats blobs that don't
    set the version field to "1" as an error.  We just relax the check in
    compat_sys_mount() a bit to allow C strings to be passed down to the NFSv4
    client.
    
    Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
    Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
---
 fs/compat.c |    3 ---
 1 files changed, 0 insertions(+), 3 deletions(-)

diff --git a/fs/compat.c b/fs/compat.c
index ee80ff3..439292a 100644
--- a/fs/compat.c
+++ b/fs/compat.c
@@ -702,9 +702,6 @@ static int do_nfs4_super_data_conv(void *raw_data)
 		real->flags = raw->flags;
 		real->version = raw->version;
 	}
-	else {
-		return -EINVAL;
-	}
 
 	return 0;
 }
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
NFS: Allow text-based mounts via compat_sys_mount, Linux Kernel Mailing List..., (Fri Feb 15, 6:01 pm)