dovecot-2.2: lib-fs: struct fs_stats comment updates
dovecot at dovecot.org
dovecot at dovecot.org
Fri Mar 6 09:56:24 UTC 2015
details: http://hg.dovecot.org/dovecot-2.2/rev/0effbc9afeee
changeset: 18300:0effbc9afeee
user: Timo Sirainen <tss at iki.fi>
date: Fri Mar 06 11:55:45 2015 +0200
description:
lib-fs: struct fs_stats comment updates
diffstat:
src/lib-fs/fs-api.h | 16 ++++++++++++++--
1 files changed, 14 insertions(+), 2 deletions(-)
diffs (40 lines):
diff -r 03d9e1e6caaa -r 0effbc9afeee src/lib-fs/fs-api.h
--- a/src/lib-fs/fs-api.h Fri Mar 06 11:51:55 2015 +0200
+++ b/src/lib-fs/fs-api.h Fri Mar 06 11:55:45 2015 +0200
@@ -123,10 +123,12 @@
};
struct fs_stats {
- /* Number of fs_prefetch() calls. */
+ /* Number of fs_prefetch() calls. Counted only if fs_read*() hasn't
+ already been called for the file (which would be pretty pointless
+ to do). */
unsigned int prefetch_count;
/* Number of fs_read*() calls. Counted only if fs_prefetch() hasn't
- been called for the file. */
+ already been called for the file. */
unsigned int read_count;
/* Number of fs_lookup_metadata() calls. Counted only if neither
fs_read*() nor fs_prefetch() has been called for the file. */
@@ -135,11 +137,21 @@
has been called (because the stat result should be cached). */
unsigned int stat_count;
+ /* Number of fs_write*() calls. */
unsigned int write_count;
+ /* Number of fs_exists() calls, which actually went to the backend
+ instead of being handled by fs_stat() call due to fs_exists() not
+ being implemented. */
unsigned int exists_count;
+ /* Number of fs_delete() calls. */
unsigned int delete_count;
+ /* Number of fs_copy() calls. If backend doesn't implement copying
+ operation but falls back to regular read+write instead, this count
+ isn't increased but the read+write counters are. */
unsigned int copy_count;
+ /* Number of fs_rename() calls. */
unsigned int rename_count;
+ /* Number of fs_iter_init() calls. */
unsigned int iter_count;
};
More information about the dovecot-cvs
mailing list