summaryrefslogtreecommitdiff
path: root/source3/smbd/oplock.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2010-06-09 19:12:02 -0700
committerJeremy Allison <jra@samba.org>2010-06-09 19:12:02 -0700
commitd28fa8faab5de5979dcd5535a7cd7095d3233e29 (patch)
tree4649a9beaaede86b7b29371c722897de170259cd /source3/smbd/oplock.c
parent3c0eead9fd0693c81388b42f34fadd503edfe891 (diff)
downloadsamba-d28fa8faab5de5979dcd5535a7cd7095d3233e29.tar.gz
samba-d28fa8faab5de5979dcd5535a7cd7095d3233e29.tar.bz2
samba-d28fa8faab5de5979dcd5535a7cd7095d3233e29.zip
Rename "allow_smb2" -> "using_smb2" and make the usage clearer.
Diffstat (limited to 'source3/smbd/oplock.c')
-rw-r--r--source3/smbd/oplock.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source3/smbd/oplock.c b/source3/smbd/oplock.c
index a6702a5595..88fce91954 100644
--- a/source3/smbd/oplock.c
+++ b/source3/smbd/oplock.c
@@ -403,7 +403,7 @@ void break_level2_to_none_async(files_struct *fsp)
fsp_str_dbg(fsp)));
/* Now send a break to none message to our client. */
- if (sconn->allow_smb2) {
+ if (sconn->using_smb2) {
send_break_message_smb2(fsp, OPLOCKLEVEL_NONE);
} else {
send_break_message_smb1(fsp, OPLOCKLEVEL_NONE);
@@ -542,7 +542,7 @@ static void process_oplock_break_message(struct messaging_context *msg_ctx,
wait_before_sending_break();
}
- if (sconn->allow_smb2) {
+ if (sconn->using_smb2) {
send_break_message_smb2(fsp, break_to_level2 ?
OPLOCKLEVEL_II : OPLOCKLEVEL_NONE);
} else {
@@ -608,7 +608,7 @@ static void process_kernel_oplock_break(struct messaging_context *msg_ctx,
return;
}
- if (sconn->allow_smb2) {
+ if (sconn->using_smb2) {
send_break_message_smb2(fsp, OPLOCKLEVEL_NONE);
} else {
send_break_message_smb1(fsp, OPLOCKLEVEL_NONE);