summaryrefslogtreecommitdiffstats
path: root/sys/fs/nfs/nfs_var.h
diff options
context:
space:
mode:
authorrmacklem <rmacklem@FreeBSD.org>2010-03-30 23:11:50 +0000
committerrmacklem <rmacklem@FreeBSD.org>2010-03-30 23:11:50 +0000
commitad0f267ec8b0b93d570314a3cfd99de391cb0e5a (patch)
tree5846c99ef760da86024607fab46a91c6d4b711c1 /sys/fs/nfs/nfs_var.h
parent3d12965f1db971ad8823972777a8bfbe093cf11d (diff)
downloadFreeBSD-src-ad0f267ec8b0b93d570314a3cfd99de391cb0e5a.zip
FreeBSD-src-ad0f267ec8b0b93d570314a3cfd99de391cb0e5a.tar.gz
This patch should fix handling of byte range locks locally
on the server for the experimental nfs server. When enabled by setting vfs.newnfs.locallocks_enable to non-zero, the experimental nfs server will now acquire byte range locks on the file on behalf of NFSv4 clients, such that lock conflicts between the NFSv4 clients and processes running locally on the server, will be recognized and handled correctly. MFC after: 2 weeks
Diffstat (limited to 'sys/fs/nfs/nfs_var.h')
-rw-r--r--sys/fs/nfs/nfs_var.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/fs/nfs/nfs_var.h b/sys/fs/nfs/nfs_var.h
index 17714d7..498511c 100644
--- a/sys/fs/nfs/nfs_var.h
+++ b/sys/fs/nfs/nfs_var.h
@@ -251,6 +251,7 @@ int nfsv4_lock(struct nfsv4lock *, int, int *, void *);
void nfsv4_unlock(struct nfsv4lock *, int);
void nfsv4_relref(struct nfsv4lock *);
void nfsv4_getref(struct nfsv4lock *, int *, void *);
+int nfsv4_testlock(struct nfsv4lock *);
int nfsrv_mtostr(struct nfsrv_descript *, char *, int);
int nfsrv_checkutf8(u_int8_t *, int);
int newnfs_sndlock(int *);
OpenPOWER on IntegriCloud