Lines Matching refs:fs
11 #include "fs-api-private.h"
14 struct fs fs;
22 struct compress_fs *fs;
31 extern const struct fs fs_class_compress;
33 static struct fs *fs_compress_alloc(void)
35 struct compress_fs *fs;
37 fs = i_new(struct compress_fs, 1);
38 fs->fs = fs_class_compress;
39 return &fs->fs;
43 fs_compress_init(struct fs *_fs, const char *args, const
46 struct compress_fs *fs = (struct compress_fs *)_fs;
52 fs->try_plain = TRUE;
72 if (str_to_uint(level_str, &fs->compress_level) < 0 ||
73 fs->compress_level > 9) {
79 fs->handler = compression_lookup_handler(compression_name);
80 if (fs->handler == NULL) {
100 static void fs_compress_deinit(struct fs *_fs)
102 struct compress_fs *fs = (struct compress_fs *)_fs;
106 i_free(fs);
119 struct compress_fs *fs = (struct compress_fs *)_file->fs;
123 file->fs = fs;
170 if (!file->fs->try_plain)
171 return file->fs->handler->create_istream(plain_input, FALSE);
175 try_inputs[0] = file->fs->handler->create_istream(child_input, FALSE);
210 if (file->fs->compress_level == 0) {
218 iostream_temp_create_named(_file->fs->temp_path_prefix,
221 _file->output = file->fs->handler->
222 create_ostream(file->temp_output, file->fs->compress_level);
231 if (file->fs->compress_level == 0)
267 const struct fs fs_class_compress = {