dovecot-2.2: lib-fs: Fixed fs-compress code to actually build an...
dovecot at dovecot.org
dovecot at dovecot.org
Thu May 7 17:37:25 UTC 2015
details: http://hg.dovecot.org/dovecot-2.2/rev/7516211ff7e6
changeset: 18544:7516211ff7e6
user: Timo Sirainen <tss at iki.fi>
date: Thu May 07 20:35:23 2015 +0300
description:
lib-fs: Fixed fs-compress code to actually build and run.
It's a plugin (because it depends on extra compression libraries). We want
to register it only when it's explicitly attempted to be used, not before.
diffstat:
src/lib-fs/fs-api-private.h | 1 -
src/lib-fs/fs-api.c | 1 -
src/lib-fs/fs-compress.c | 2 ++
3 files changed, 2 insertions(+), 2 deletions(-)
diffs (34 lines):
diff -r 4c8fc477d68a -r 7516211ff7e6 src/lib-fs/fs-api-private.h
--- a/src/lib-fs/fs-api-private.h Thu May 07 20:25:44 2015 +0300
+++ b/src/lib-fs/fs-api-private.h Thu May 07 20:35:23 2015 +0300
@@ -134,7 +134,6 @@
void *async_context;
};
-extern const struct fs fs_class_compress;
extern const struct fs fs_class_posix;
extern const struct fs fs_class_metawrap;
extern const struct fs fs_class_sis;
diff -r 4c8fc477d68a -r 7516211ff7e6 src/lib-fs/fs-api.c
--- a/src/lib-fs/fs-api.c Thu May 07 20:25:44 2015 +0300
+++ b/src/lib-fs/fs-api.c Thu May 07 20:35:23 2015 +0300
@@ -63,7 +63,6 @@
static void fs_classes_init(void)
{
i_array_init(&fs_classes, 8);
- fs_class_register(&fs_class_compress);
fs_class_register(&fs_class_posix);
fs_class_register(&fs_class_metawrap);
fs_class_register(&fs_class_sis);
diff -r 4c8fc477d68a -r 7516211ff7e6 src/lib-fs/fs-compress.c
--- a/src/lib-fs/fs-compress.c Thu May 07 20:25:44 2015 +0300
+++ b/src/lib-fs/fs-compress.c Thu May 07 20:35:23 2015 +0300
@@ -30,6 +30,8 @@
struct fs_iter *super;
};
+extern const struct fs fs_class_compress;
+
static struct fs *fs_compress_alloc(void)
{
struct compress_fs *fs;
More information about the dovecot-cvs
mailing list