]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
fs-metawrap: Add FS_PROPERTY_COPY_METADATA property for wrapped fs backends.
authorTimo Sirainen <tss@iki.fi>
Sat, 13 Sep 2014 19:15:35 +0000 (22:15 +0300)
committerTimo Sirainen <tss@iki.fi>
Sat, 13 Sep 2014 19:15:35 +0000 (22:15 +0300)
This is because if we simply use the parent copy the metadata gets copied
as well.

src/lib-fs/fs-metawrap.c

index cd2f7f74769c62b9976b0fe46d65b6eca57ec26d..669f0f2cc8171245114cc5ca25b7611c989d5ebc 100644 (file)
@@ -85,6 +85,8 @@ static enum fs_properties fs_metawrap_get_properties(struct fs *_fs)
                /* 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;
 }