dovecot-2.2: lib-fs: Fixed metawrap_fs.copy() to work with FS_PR...
    dovecot at dovecot.org 
    dovecot at dovecot.org
       
    Thu Aug 28 13:45:11 UTC 2014
    
    
  
details:   http://hg.dovecot.org/dovecot-2.2/rev/48aa40ae3039
changeset: 17754:48aa40ae3039
user:      Timo Sirainen <tss at iki.fi>
date:      Thu Aug 28 22:44:18 2014 +0900
description:
lib-fs: Fixed metawrap_fs.copy() to work with FS_PROPERTY_COPY_METADATA backends.
This is done by simply copying the entire file with the metadata included
instead of rewriting it.
diffstat:
 src/lib-fs/fs-metawrap.c |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
diffs (12 lines):
diff -r 866bb1354e85 -r 48aa40ae3039 src/lib-fs/fs-metawrap.c
--- a/src/lib-fs/fs-metawrap.c	Thu Aug 28 22:10:25 2014 +0900
+++ b/src/lib-fs/fs-metawrap.c	Thu Aug 28 22:44:18 2014 +0900
@@ -378,7 +378,7 @@
 	struct metawrap_fs_file *src = (struct metawrap_fs_file *)_src;
 	struct metawrap_fs_file *dest = (struct metawrap_fs_file *)_dest;
 
-	if (!dest->fs->wrap_metadata) {
+	if (!dest->fs->wrap_metadata || !_dest->metadata_changed) {
 		if (_src != NULL)
 			return fs_copy(src->super, dest->super);
 		else
    
    
More information about the dovecot-cvs
mailing list