[PATCH 1/8] Bug 9395 - Samba fails the simple_nodelete test of smb2.rename tests from master.
Jeremy Allison
jra at samba.org
Fri Nov 16 12:54:13 MST 2012
Make rename opens internal-only. They don't break oplocks.
Signed-off-by: Jeremy Allison <jra at samba.org>
---
source3/smbd/reply.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/source3/smbd/reply.c b/source3/smbd/reply.c
index 8db9c62..f1c7478 100644
--- a/source3/smbd/reply.c
+++ b/source3/smbd/reply.c
@@ -6597,7 +6597,7 @@ NTSTATUS rename_internals(TALLOC_CTX *ctx,
FILE_OPEN, /* create_disposition*/
create_options, /* create_options */
posix_pathnames ? FILE_FLAG_POSIX_SEMANTICS|0777 : 0, /* file_attributes */
- 0, /* oplock_request */
+ INTERNAL_OPEN_ONLY, /* oplock_request */
0, /* allocation_size */
0, /* private_flags */
NULL, /* sd */
@@ -6743,7 +6743,7 @@ NTSTATUS rename_internals(TALLOC_CTX *ctx,
FILE_OPEN, /* create_disposition*/
create_options, /* create_options */
posix_pathnames ? FILE_FLAG_POSIX_SEMANTICS|0777 : 0, /* file_attributes */
- 0, /* oplock_request */
+ INTERNAL_OPEN_ONLY, /* oplock_request */
0, /* allocation_size */
0, /* private_flags */
NULL, /* sd */
--
1.7.7.3
More information about the samba-technical
mailing list