]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-fs: Add fs metadata key for file size.
authorsergey.kitov <sergey.kitov@open-xchange.com>
Fri, 17 Feb 2023 16:06:07 +0000 (18:06 +0200)
committersergey.kitov <sergey.kitov@open-xchange.com>
Fri, 14 Apr 2023 14:03:58 +0000 (17:03 +0300)
src/lib-fs/fs-api.h

index f69cc79c83914f18647afd9b1461318ea7959820..714cb53bc14a6b3e1ac61073d50e64a0fd1b784c 100644 (file)
@@ -22,6 +22,8 @@ struct hash_method;
    backend may be something different, e.g. object ID. This allows the backend
    to still access the original path. */
 #define FS_METADATA_ORIG_PATH FS_METADATA_INTERNAL_PREFIX"OrigPath"
+/* Size of the file, this will allow to replace missing file with spaces */
+#define FS_METADATA_FILE_SIZE FS_METADATA_INTERNAL_PREFIX"Size"
 
 enum fs_properties {
        FS_PROPERTY_METADATA    = 0x01,