summaryrefslogtreecommitdiff
path: root/source4/ntvfs/posix/vfs_posix.h
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2008-02-25 08:39:13 +0100
committerStefan Metzmacher <metze@samba.org>2008-02-26 09:32:57 +0100
commitbe1ba5b63164e7dab4bf067bc1aac4ed9cece2bc (patch)
tree0cb2fcfa35c00a9bb4c7e12f4b9679b40415b894 /source4/ntvfs/posix/vfs_posix.h
parent95fafa694cbb6f695488c750d481bb1e427da6eb (diff)
downloadsamba-be1ba5b63164e7dab4bf067bc1aac4ed9cece2bc.tar.gz
samba-be1ba5b63164e7dab4bf067bc1aac4ed9cece2bc.tar.bz2
samba-be1ba5b63164e7dab4bf067bc1aac4ed9cece2bc.zip
pvfs_open: call pvfs_setup_oplock() if an oplock was granted
This is needed to receive oplock breaks from other "processes" metze (This used to be commit dd56f55afdc0d114a0b0bceb0e4feb022919323a)
Diffstat (limited to 'source4/ntvfs/posix/vfs_posix.h')
-rw-r--r--source4/ntvfs/posix/vfs_posix.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/source4/ntvfs/posix/vfs_posix.h b/source4/ntvfs/posix/vfs_posix.h
index 50875c3f9b..72469505cc 100644
--- a/source4/ntvfs/posix/vfs_posix.h
+++ b/source4/ntvfs/posix/vfs_posix.h
@@ -29,6 +29,7 @@
#include "dsdb/samdb/samdb.h"
struct pvfs_wait;
+struct pvfs_oplock;
/* this is the private structure for the posix vfs backend. It is used
to hold per-connection (per tree connect) state information */
@@ -154,6 +155,13 @@ struct pvfs_file_handle {
bool have_opendb_entry;
+ /*
+ * we need to wait for oplock break requests from other processes,
+ * and we need to remember the pvfs_file so we can correctly
+ * forward the oplock break to the client
+ */
+ struct pvfs_oplock *oplock;
+
/* we need this hook back to our parent for lock destruction */
struct pvfs_state *pvfs;