diff options
author | Jeremy Allison <jra@samba.org> | 2012-06-29 13:00:29 -0700 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2012-06-30 02:23:39 +0200 |
commit | d1e1aa552d3feb430b6b48c572ba2b713dfffec5 (patch) | |
tree | f9c3dcf5dcc6d1aa14459a339f5bf13a75d16d30 | |
parent | 0362dcbd09f27b33ed8c5264c7f22ee00ddc5d64 (diff) | |
download | samba-d1e1aa552d3feb430b6b48c572ba2b713dfffec5.tar.gz samba-d1e1aa552d3feb430b6b48c572ba2b713dfffec5.tar.bz2 samba-d1e1aa552d3feb430b6b48c572ba2b713dfffec5.zip |
Add new bool field async_open to struct deferred_open_record. Not used yet.
-rw-r--r-- | source3/smbd/open.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source3/smbd/open.c b/source3/smbd/open.c index c6d2f63b14..468b9cc315 100644 --- a/source3/smbd/open.c +++ b/source3/smbd/open.c @@ -35,6 +35,7 @@ extern const struct generic_mapping file_generic_mapping; struct deferred_open_record { bool delayed_for_oplocks; + bool async_open; struct file_id id; }; @@ -1532,6 +1533,7 @@ static void schedule_defer_open(struct share_mode_lock *lck, a 1 second delay for share mode conflicts. */ state.delayed_for_oplocks = True; + state.async_open = false; state.id = lck->data->id; if (!request_timed_out(request_time, timeout)) { @@ -2166,6 +2168,7 @@ static NTSTATUS open_file_ntcreate(connection_struct *conn, a 1 second delay for share mode conflicts. */ state.delayed_for_oplocks = False; + state.async_open = false; state.id = id; if ((req != NULL) @@ -2307,6 +2310,7 @@ static NTSTATUS open_file_ntcreate(connection_struct *conn, struct deferred_open_record state; state.delayed_for_oplocks = False; + state.async_open = false; state.id = id; /* Do it all over again immediately. In the second |