diff options
author | Trond Myklebust <Trond.Myklebust@netapp.com> | 2010-01-26 23:42:30 +0300 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2010-01-26 23:42:30 +0300 |
commit | 8e469ebd6dc32cbaf620e134d79f740bf0ebab79 (patch) | |
tree | a83e806a7cfa0a57ba6e55aef6da027aa2f08fee /fs/nfs/nfs4_fs.h | |
parent | 2bee72a6aa1e6d0a4f5da56217f0d0bbbdd0d9a3 (diff) | |
download | linux-8e469ebd6dc32cbaf620e134d79f740bf0ebab79.tar.xz |
NFSv4: Don't allow posix locking against servers that don't support it
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Cc: stable@kernel.org
Reviewed-by: Chuck Lever <chuck.lever@oracle.com>
Diffstat (limited to 'fs/nfs/nfs4_fs.h')
-rw-r--r-- | fs/nfs/nfs4_fs.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/nfs/nfs4_fs.h b/fs/nfs/nfs4_fs.h index 865265bdca03..ea2f41b26aea 100644 --- a/fs/nfs/nfs4_fs.h +++ b/fs/nfs/nfs4_fs.h @@ -146,6 +146,7 @@ enum { NFS_O_RDWR_STATE, /* OPEN stateid has read/write state */ NFS_STATE_RECLAIM_REBOOT, /* OPEN stateid server rebooted */ NFS_STATE_RECLAIM_NOGRACE, /* OPEN stateid needs to recover state */ + NFS_STATE_POSIX_LOCKS, /* Posix locks are supported */ }; struct nfs4_state { |