summaryrefslogtreecommitdiff
path: root/source3/include/smb.h
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2000-04-24 20:48:40 +0000
committerJeremy Allison <jra@samba.org>2000-04-24 20:48:40 +0000
commit644f22ac6141f58f2badd3a9761ac156831c16a3 (patch)
tree772d24c3d12fd37ce3401cca60887e25b42c0de0 /source3/include/smb.h
parente82dbfcbe97c79b1c81915ae949bb2b1763970ba (diff)
downloadsamba-644f22ac6141f58f2badd3a9761ac156831c16a3.tar.gz
samba-644f22ac6141f58f2badd3a9761ac156831c16a3.tar.bz2
samba-644f22ac6141f58f2badd3a9761ac156831c16a3.zip
Added the code that keeps fd's open across a close if there are other fsp's
open on the same dev/inode pair with existing POSIX locks. This is done at the smbd/open layer, so smbd just calls fd_close() and the transfer of any open fd's is done under the covers of fd_close(). When an fsp is closed and no other fsp's open on the same dev/inode pair have existing POSIX locks then all fd's associated with this fsp are closed. Now only the hard part of doing the POSIX range unlock code when read locks overlap remains for full POSIX/SMB lock integration.... Jeremy. (This used to be commit 1df48ed55ee303b6d84d7277fd79761cfe5f7052)
Diffstat (limited to 'source3/include/smb.h')
-rw-r--r--source3/include/smb.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/source3/include/smb.h b/source3/include/smb.h
index 7fef3f40b7..5147a567b4 100644
--- a/source3/include/smb.h
+++ b/source3/include/smb.h
@@ -490,6 +490,8 @@ typedef struct files_struct
int oplock_type;
int sent_oplock_break;
unsigned int num_posix_locks;
+ unsigned int num_posix_pending_closes;
+ int *posix_pending_close_fds;
BOOL can_lock;
BOOL can_read;
BOOL can_write;