aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBryan Schumaker <bjschuma@netapp.com>2013-06-19 13:41:43 -0400
committerTrond Myklebust <Trond.Myklebust@netapp.com>2013-06-19 13:55:43 -0400
commit7017310ad737880d8520a7fc7e25a26b2e7e37f0 (patch)
tree82b0ff69cea829303b8945dba0450e9f44d59e20
parent6b140b85d92bd65db44f0a7a065b2e39a91e9a9d (diff)
NFS: Apply v4.1 capabilities to v4.2
This fixes POSIX locks and possibly a few other v4.2 features, like readdir plus. Signed-off-by: Bryan Schumaker <bjschuma@netapp.com> Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
-rw-r--r--fs/nfs/nfs4proc.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/fs/nfs/nfs4proc.c b/fs/nfs/nfs4proc.c
index dfef23f1a66a..c0d3123b6eba 100644
--- a/fs/nfs/nfs4proc.c
+++ b/fs/nfs/nfs4proc.c
@@ -7399,9 +7399,16 @@ static const struct nfs4_minor_version_ops nfs_v4_1_minor_ops = {
7399#if defined(CONFIG_NFS_V4_2) 7399#if defined(CONFIG_NFS_V4_2)
7400static const struct nfs4_minor_version_ops nfs_v4_2_minor_ops = { 7400static const struct nfs4_minor_version_ops nfs_v4_2_minor_ops = {
7401 .minor_version = 2, 7401 .minor_version = 2,
7402 .init_caps = NFS_CAP_READDIRPLUS
7403 | NFS_CAP_ATOMIC_OPEN
7404 | NFS_CAP_CHANGE_ATTR
7405 | NFS_CAP_POSIX_LOCK
7406 | NFS_CAP_STATEID_NFSV41
7407 | NFS_CAP_ATOMIC_OPEN_V1,
7402 .call_sync = nfs4_call_sync_sequence, 7408 .call_sync = nfs4_call_sync_sequence,
7403 .match_stateid = nfs41_match_stateid, 7409 .match_stateid = nfs41_match_stateid,
7404 .find_root_sec = nfs41_find_root_sec, 7410 .find_root_sec = nfs41_find_root_sec,
7411 .free_lock_state = nfs41_free_lock_state,
7405 .reboot_recovery_ops = &nfs41_reboot_recovery_ops, 7412 .reboot_recovery_ops = &nfs41_reboot_recovery_ops,
7406 .nograce_recovery_ops = &nfs41_nograce_recovery_ops, 7413 .nograce_recovery_ops = &nfs41_nograce_recovery_ops,
7407 .state_renewal_ops = &nfs41_state_renewal_ops, 7414 .state_renewal_ops = &nfs41_state_renewal_ops,