dovecot-2.2: fs-metawrap: Add FS_PROPERTY_COPY_METADATA property...

dovecot at dovecot.org dovecot at dovecot.org
Sat Sep 13 19:17:08 UTC 2014


details:   http://hg.dovecot.org/dovecot-2.2/rev/1daf1e2fefb9
changeset: 17796:1daf1e2fefb9
user:      Timo Sirainen <tss at iki.fi>
date:      Sat Sep 13 22:15:35 2014 +0300
description:
fs-metawrap: Add FS_PROPERTY_COPY_METADATA property for wrapped fs backends.
This is because if we simply use the parent copy the metadata gets copied
as well.

diffstat:

 src/lib-fs/fs-metawrap.c |  2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diffs (12 lines):

diff -r 73f806838456 -r 1daf1e2fefb9 src/lib-fs/fs-metawrap.c
--- a/src/lib-fs/fs-metawrap.c	Sat Sep 13 22:14:09 2014 +0300
+++ b/src/lib-fs/fs-metawrap.c	Sat Sep 13 22:15:35 2014 +0300
@@ -85,6 +85,8 @@
 		/* we don't have a quick stat() to see the file's size,
 		   because of the metadata header */
 		props &= ~FS_PROPERTY_STAT;
+		/* Copying can copy the whole metadata. */
+		props |= FS_PROPERTY_COPY_METADATA;
 	}
 	return props;
 }


More information about the dovecot-cvs mailing list