bool kernel_share_modes_taken;
bool update_write_time_triggered;
- uint64_t num_write_time_updates;
- bool got_query_path_info;
struct tevent_timer *update_write_time_event;
bool update_write_time_on_close;
struct timespec close_write_time;
/* Remove the timed event handler. */
TALLOC_FREE(fsp->update_write_time_event);
- if (!fsp->got_query_path_info) {
fsp->update_write_time_triggered = false;
fsp->update_write_time_on_close = false;
- }
}
static void update_write_time_handler(struct tevent_context *ctx,
return;
}
fsp->update_write_time_triggered = true;
- fsp->num_write_time_updates++;
delay = lp_parm_int(SNUM(fsp->conn),
"smbd", "writetimeupdatedelay",
continue;
}
- fsp->got_query_path_info = true;
-
- if (fsp->num_write_time_updates == 1) {
- continue;
- }
-
/*
* We cancel the timer, which means the write time update
* will happen on close.