diff -r 5b9f20aa88c2 -r 9a4857d6444e dav/scfg.h --- a/dav/scfg.h Thu Mar 21 10:51:14 2019 +0100 +++ b/dav/scfg.h Fri Mar 22 13:07:31 2019 +0100 @@ -49,8 +49,9 @@ #define DEFAULT_TAG_XATTR "tags" #define MACOS_TAG_XATTR "com.apple.metadata:_kMDItemUserTags" -typedef struct TagConfig TagConfig; -typedef struct Versioning Versioning; +typedef struct TagConfig TagConfig; +typedef struct Versioning Versioning; +typedef struct SplitConfig SplitConfig; typedef struct SyncDirectory { char *name; @@ -64,6 +65,7 @@ UcxList *include; UcxList *exclude; UcxList *tagfilter; + UcxList *splitconfig; uint32_t metadata; int max_retry; int allow_cmd; @@ -74,6 +76,23 @@ uint32_t db_settings; } SyncDirectory; +struct SplitConfig { + /* + * path regex pattern or NULL + */ + char *pattern; + + /* + * minimum file size for activating file splitting + * a value of -1 means no size restriction + */ + int64_t minsize; + + /* + * split files into blocks with this size + */ + size_t blocksize; +}; enum TagFormat { TAG_FORMAT_TEXT = 0,