This reverts commit
e689b7d51e6ffd848ab10e160dca2c3a03fc750b.
This is a change in behaviour which needs much further investigation
and testing.
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: David Disseldorp <ddiss@samba.org>
fsp->access_mask = access_mask | FILE_READ_ATTRIBUTES;
}
+ if (file_existed) {
+ /* stat opens on existing files don't get oplocks. */
+ if (is_stat_open(open_access_mask)) {
+ oplock_request = NO_OPLOCK;
+ }
+ }
+
if (new_file_created) {
info = FILE_WAS_CREATED;
} else {
* file structs.
*/
- if (file_existed) {
- /* stat opens on existing files don't get oplocks. */
- if (is_stat_open(open_access_mask)) {
- oplock_request = NO_OPLOCK;
- }
- }
-
grant_fsp_oplock_type(fsp, lck, oplock_request);
status = set_file_oplock(fsp);