changeset 17796:1daf1e2fefb9

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.
author Timo Sirainen <tss@iki.fi>
date Sat, 13 Sep 2014 22:15:35 +0300
parents 73f806838456
children 736a3f6bd5a8
files src/lib-fs/fs-metawrap.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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;
 }