(koplocks != NULL);
struct file_id_buf buf;
+ smb_vfs_assert_allowed();
+
if (fsp->oplock_type == LEVEL_II_OPLOCK && use_kernel) {
DEBUG(10, ("Refusing level2 oplock, kernel oplocks "
"don't support them\n"));
struct kernel_oplocks *koplocks = sconn->oplocks.kernel_ops;
bool use_kernel;
+ smb_vfs_assert_allowed();
+
if (koplocks == NULL) {
return;
}
bool use_kernel = lp_kernel_oplocks(SNUM(fsp->conn)) &&
(koplocks != NULL);
+ smb_vfs_assert_allowed();
+
if (!EXCLUSIVE_OPLOCK_TYPE(fsp->oplock_type)) {
DEBUG(0, ("trying to downgrade an already-downgraded oplock!\n"));
return;
uint16_t break_to;
bool break_needed = true;
+ smb_vfs_assert_allowed();
+
msg = talloc(talloc_tos(), struct oplock_break_message);
if (msg == NULL) {
DBG_WARNING("talloc failed\n");