Mercurial > dovecot > core-2.2
changeset 15399:39578785ee92
lib-fs: Added ITER and RELIABLEITER properties for backends.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Mon, 26 Nov 2012 23:02:51 +0200 |
parents | bc497e533da4 |
children | 5552ac605201 |
files | src/lib-fs/fs-api.h src/lib-fs/fs-posix.c |
diffstat | 2 files changed, 7 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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 {
--- 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)