summaryrefslogtreecommitdiff
path: root/source3/smbd
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2000-04-12 17:59:09 +0000
committerJeremy Allison <jra@samba.org>2000-04-12 17:59:09 +0000
commit8316237e9ca83d1bd0cecdc63d7e47b44cf13181 (patch)
treedaff31da47ad88886634d083c68d4da40b5095c1 /source3/smbd
parentf5da7470c3f4d1fc86dee19e85d189595344bad2 (diff)
downloadsamba-8316237e9ca83d1bd0cecdc63d7e47b44cf13181.tar.gz
samba-8316237e9ca83d1bd0cecdc63d7e47b44cf13181.tar.bz2
samba-8316237e9ca83d1bd0cecdc63d7e47b44cf13181.zip
Code to map tdb locks onto POSIX. Mainly placeholder code at the moment,
but the structure is done enough so that Andrew can look it over and give a yea/nay decision. Jeremy. (This used to be commit db96f83e34a139f47776fcbb5c1624fbf9d9943b)
Diffstat (limited to 'source3/smbd')
-rw-r--r--source3/smbd/open.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source3/smbd/open.c b/source3/smbd/open.c
index 02832308c6..1c5a7e26e2 100644
--- a/source3/smbd/open.c
+++ b/source3/smbd/open.c
@@ -165,6 +165,7 @@ static void open_file(files_struct *fsp,connection_struct *conn,
fsp->modified = False;
fsp->oplock_type = NO_OPLOCK;
fsp->sent_oplock_break = NO_BREAK_SENT;
+ fsp->num_posix_locks = 0;
fsp->is_directory = False;
fsp->stat_open = False;
fsp->directory_delete_on_close = False;
@@ -738,6 +739,7 @@ int open_file_stat(files_struct *fsp,connection_struct *conn,
fsp->modified = False;
fsp->oplock_type = NO_OPLOCK;
fsp->sent_oplock_break = NO_BREAK_SENT;
+ fsp->num_posix_locks = 0;
fsp->is_directory = False;
fsp->stat_open = True;
fsp->directory_delete_on_close = False;
@@ -851,6 +853,7 @@ int open_directory(files_struct *fsp,connection_struct *conn,
fsp->modified = False;
fsp->oplock_type = NO_OPLOCK;
fsp->sent_oplock_break = NO_BREAK_SENT;
+ fsp->num_posix_locks = 0;
fsp->is_directory = True;
fsp->directory_delete_on_close = False;
fsp->conn = conn;