From 17eba16bad9b20518a5d336bc751e749a587ec68 Mon Sep 17 00:00:00 2001 From: Tim Prouty Date: Tue, 3 Feb 2009 15:40:23 -0800 Subject: s3 oplocks: Add capabilites flags field to the kernel_oplocks struct Here is a short description for each of the new capability flags: KOPLOCKS_LEVEL2_SUPPORTED: Level 2 oplocks are supported natively in the kernel. KOPLOCKS_DEFERRED_OPEN_NOTIFICATION: The kernel notifies deferred openers when they can retry the open. KOPLOCKS_TIMEOUT_NOTIFICATION: The kernel notifies smbds when an oplock break times out. KOPLOCKS_OPLOCK_BROKEN_NOTIFICATION: The kernel notifies smbds when an oplock is broken. --- source3/include/proto.h | 1 + 1 file changed, 1 insertion(+) (limited to 'source3/include/proto.h') diff --git a/source3/include/proto.h b/source3/include/proto.h index ceea97bf56..f553f7625e 100644 --- a/source3/include/proto.h +++ b/source3/include/proto.h @@ -6898,6 +6898,7 @@ bool set_file_oplock(files_struct *fsp, int oplock_type); void release_file_oplock(files_struct *fsp); bool remove_oplock(files_struct *fsp); bool downgrade_oplock(files_struct *fsp); +bool should_notify_deferred_opens(void); void reply_to_oplock_break_requests(files_struct *fsp); void process_oplock_async_level2_break_message(struct messaging_context *msg_ctx, void *private_data, -- cgit