From 8316237e9ca83d1bd0cecdc63d7e47b44cf13181 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Wed, 12 Apr 2000 17:59:09 +0000 Subject: 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) --- source3/smbd/open.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'source3/smbd/open.c') 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; -- cgit