From c99dd5c23e25f4c1cc34f223f563915c0aa4bb6f Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Thu, 5 Nov 2009 22:58:12 -0800 Subject: Got the logic simplification worked out so we still pass BASE-DELAYWRITE and also RAW-CLOSE. Jeremy. --- source3/smbd/fileio.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'source3/smbd/fileio.c') diff --git a/source3/smbd/fileio.c b/source3/smbd/fileio.c index 62e9a98a8d..c0deaebcfc 100644 --- a/source3/smbd/fileio.c +++ b/source3/smbd/fileio.c @@ -171,16 +171,13 @@ static int wcp_file_size_change(files_struct *fsp) return ret; } -static void update_write_time_handler(struct event_context *ctx, +void update_write_time_handler(struct event_context *ctx, struct timed_event *te, struct timeval now, void *private_data) { files_struct *fsp = (files_struct *)private_data; - /* Remove the timed event handler. */ - TALLOC_FREE(fsp->update_write_time_event); - DEBUG(5, ("Update write time on %s\n", fsp_str_dbg(fsp))); /* change the write time in the open file db. */ @@ -189,6 +186,9 @@ static void update_write_time_handler(struct event_context *ctx, /* And notify. */ notify_fname(fsp->conn, NOTIFY_ACTION_MODIFIED, FILE_NOTIFY_CHANGE_LAST_WRITE, fsp->fsp_name->base_name); + + /* Remove the timed event handler. */ + TALLOC_FREE(fsp->update_write_time_event); } /********************************************************* -- cgit