Adds an additional mechanism to trigger cleanup of possibly stale Persistent
Handle state.
Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Anoop C S <anoopcs@samba.org>
#include "lib/util/time_basic.h"
#include "lib/util/smb_strtox.h"
#include "source3/smbd/dir.h"
+#include "scavenger.h"
#if defined(HAVE_LINUX_MAGIC_H)
#include <linux/magic.h>
if (e->protect) {
uint32_t file_available_mask = SMB2_LEASE_HANDLE;
+ scavenger_schedule_disconnected(
+ fsp->conn->sconn->msg_ctx,
+ e->share_file_id,
+ &fsp->file_id,
+ fsp->name_hash);
+
if (file_has_brlocks(fsp)) {
/*
* If a file has byterange locks, require an exclusive