dovecot-2.2: lib-fs: Added ITER and RELIABLEITER properties for ...

dovecot at dovecot.org dovecot at dovecot.org
Mon Nov 26 23:03:18 EET 2012


details:   http://hg.dovecot.org/dovecot-2.2/rev/39578785ee92
changeset: 15399:39578785ee92
user:      Timo Sirainen <tss at iki.fi>
date:      Mon Nov 26 23:02:51 2012 +0200
description:
lib-fs: Added ITER and RELIABLEITER properties for backends.

diffstat:

 src/lib-fs/fs-api.h   |  7 ++++++-
 src/lib-fs/fs-posix.c |  2 +-
 2 files changed, 7 insertions(+), 2 deletions(-)

diffs (29 lines):

diff -r bc497e533da4 -r 39578785ee92 src/lib-fs/fs-api.h
--- a/src/lib-fs/fs-api.h	Mon Nov 26 23:01:53 2012 +0200
+++ b/src/lib-fs/fs-api.h	Mon Nov 26 23:02:51 2012 +0200
@@ -11,7 +11,12 @@
 	FS_PROPERTY_LOCKS	= 0x02,
 	FS_PROPERTY_FASTCOPY	= 0x04,
 	FS_PROPERTY_RENAME	= 0x08,
-	FS_PROPERTY_STAT	= 0x10
+	FS_PROPERTY_STAT	= 0x10,
+	/* Iteration is possible */
+	FS_PROPERTY_ITER	= 0x20,
+	/* Iteration always returns all of the files (instead of possibly
+	   slightly out of date view) */
+	FS_PROPERTY_RELIABLEITER= 0x40
 };
 
 enum fs_open_mode {
diff -r bc497e533da4 -r 39578785ee92 src/lib-fs/fs-posix.c
--- a/src/lib-fs/fs-posix.c	Mon Nov 26 23:01:53 2012 +0200
+++ b/src/lib-fs/fs-posix.c	Mon Nov 26 23:02:51 2012 +0200
@@ -124,7 +124,7 @@
 static enum fs_properties fs_posix_get_properties(struct fs *fs ATTR_UNUSED)
 {
 	return FS_PROPERTY_LOCKS | FS_PROPERTY_FASTCOPY | FS_PROPERTY_RENAME |
-		FS_PROPERTY_STAT;
+		FS_PROPERTY_STAT | FS_PROPERTY_ITER | FS_PROPERTY_RELIABLEITER;
 }
 
 static int fs_posix_mkdir_parents(struct posix_fs *fs, const char *path)


More information about the dovecot-cvs mailing list