Prepares for Directory Lease breaks.
Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
struct notify_context *notify_ctx = conn->sconn->notify_ctx;
const char *path = smb_fname->base_name;
+ if (action & NOTIFY_ACTION_DIRLEASE_BREAK) {
+ contend_dirleases(conn, smb_fname, lease);
+ }
+ action &= ~NOTIFY_ACTION_DIRLEASE_BREAK;
+ if (action == 0) {
+ return;
+ }
+
if (path[0] == '.' && path[1] == '/') {
path += 2;
}