Skip to content

Commit

Permalink
NFS: Allow text-based mounts via compat_sys_mount
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Trond Myklebust <[email protected]>
  • Loading branch information
chucklever authored and Trond Myklebust committed Feb 14, 2008
1 parent 8e60029 commit 4267c95
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions fs/compat.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 4267c95

Please sign in to comment.