changeset 18544:7516211ff7e6

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.
author Timo Sirainen <tss@iki.fi>
date Thu, 07 May 2015 20:35:23 +0300
parents 4c8fc477d68a
children f2a8e1793718
files src/lib-fs/fs-api-private.h src/lib-fs/fs-api.c src/lib-fs/fs-compress.c
diffstat 3 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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;
--- 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);
--- 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;