char *username, *session_id;
- struct fs_settings set;
-
/* may be used by fs_wait_async() to do the waiting */
struct ioloop *wait_ioloop, *prev_ioloop;
struct fs_iter *iters;
struct event *event;
+ bool enable_timing;
struct fs_stats stats;
ARRAY(union fs_api_module_context *) module_contexts;
fs = fs_class->v.alloc();
fs->refcount = 1;
- fs->set.enable_timing = set->enable_timing;
+ fs->enable_timing = set->enable_timing;
i_array_init(&fs->module_contexts, 5);
fs->event = fs_create_event(fs, event_parent);
static void fs_file_timing_start(struct fs_file *file, enum fs_op op)
{
- if (!file->fs->set.enable_timing)
+ if (!file->fs->enable_timing)
return;
if (file->timing_start[op].tv_sec == 0)
i_gettimeofday(&file->timing_start[op]);
void fs_file_timing_end(struct fs_file *file, enum fs_op op)
{
- if (!file->fs->set.enable_timing || file->timing_start[op].tv_sec == 0)
+ if (!file->fs->enable_timing || file->timing_start[op].tv_sec == 0)
return;
fs_timing_end(&file->fs->stats.timings[op], &file->timing_start[op]);
fs_file_timing_end(file, FS_OP_READ);
return input;
}
- if (file->fs->set.enable_timing) {
+ if (file->fs->enable_timing) {
struct istream *input2 = i_stream_create_fs_stats(input, file);
i_stream_unref(&input);
(fs_get_properties(fs) & FS_PROPERTY_OBJECTIDS) != 0);
fs->stats.iter_count++;
- if (fs->set.enable_timing)
+ if (fs->enable_timing)
i_gettimeofday(&now);
if (fs->v.iter_init == NULL)
iter = i_new(struct fs_iter, 1);
i_strdup(set->temp_file_prefix) : i_strdup("temp.dovecot.");
fs->temp_file_prefix_len = strlen(fs->temp_file_prefix);
fs->root_path = i_strdup(set->root_path);
- fs->fs.set.temp_file_prefix = fs->temp_file_prefix;
- fs->fs.set.root_path = fs->root_path;
fs->lock_method = FS_POSIX_LOCK_METHOD_FLOCK;
fs->mode = FS_DEFAULT_MODE;