aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nfs/nfs4proc.c
diff options
context:
space:
mode:
authorAnna Schumaker <Anna.Schumaker@netapp.com>2014-10-22 15:53:10 -0400
committerTrond Myklebust <trond.myklebust@primarydata.com>2014-11-12 14:22:54 -0500
commite983120e923aa1c5d2aaf528331c298c88f3ab85 (patch)
treee93c87540690697b609b827ad90e927611662186 /fs/nfs/nfs4proc.c
parent16caf5b6101d03335b386e77e9e14136f989be87 (diff)
NFS: SEEK is an NFS v4.2 feature
Somehow the nfs_v4_1_minor_ops had the NFS_CAP_SEEK flag set, enabling SEEK over v4.1. This is wrong, and can make servers crash. Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com> Tested-by: J. Bruce Fields <bfields@redhat.com> Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
Diffstat (limited to 'fs/nfs/nfs4proc.c')
-rw-r--r--fs/nfs/nfs4proc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/nfs/nfs4proc.c b/fs/nfs/nfs4proc.c
index 41b8fcbfdadd..dca174ce8309 100644
--- a/fs/nfs/nfs4proc.c
+++ b/fs/nfs/nfs4proc.c
@@ -8397,8 +8397,7 @@ static const struct nfs4_minor_version_ops nfs_v4_1_minor_ops = {
8397 | NFS_CAP_CHANGE_ATTR 8397 | NFS_CAP_CHANGE_ATTR
8398 | NFS_CAP_POSIX_LOCK 8398 | NFS_CAP_POSIX_LOCK
8399 | NFS_CAP_STATEID_NFSV41 8399 | NFS_CAP_STATEID_NFSV41
8400 | NFS_CAP_ATOMIC_OPEN_V1 8400 | NFS_CAP_ATOMIC_OPEN_V1,
8401 | NFS_CAP_SEEK,
8402 .init_client = nfs41_init_client, 8401 .init_client = nfs41_init_client,
8403 .shutdown_client = nfs41_shutdown_client, 8402 .shutdown_client = nfs41_shutdown_client,
8404 .match_stateid = nfs41_match_stateid, 8403 .match_stateid = nfs41_match_stateid,
@@ -8420,7 +8419,8 @@ static const struct nfs4_minor_version_ops nfs_v4_2_minor_ops = {
8420 | NFS_CAP_CHANGE_ATTR 8419 | NFS_CAP_CHANGE_ATTR
8421 | NFS_CAP_POSIX_LOCK 8420 | NFS_CAP_POSIX_LOCK
8422 | NFS_CAP_STATEID_NFSV41 8421 | NFS_CAP_STATEID_NFSV41
8423 | NFS_CAP_ATOMIC_OPEN_V1, 8422 | NFS_CAP_ATOMIC_OPEN_V1
8423 | NFS_CAP_SEEK,
8424 .init_client = nfs41_init_client, 8424 .init_client = nfs41_init_client,
8425 .shutdown_client = nfs41_shutdown_client, 8425 .shutdown_client = nfs41_shutdown_client,
8426 .match_stateid = nfs41_match_stateid, 8426 .match_stateid = nfs41_match_stateid,