# HG changeset patch # User Olaf Wintermann # Date 1554553507 -7200 # Node ID af91d3c96994094c5a8fc9f345b10446a9901418 # Parent ab46acda106605e94daa2953266cd15d1efaf628 add hashing config diff -r ab46acda1066 -r af91d3c96994 dav/scfg.c --- a/dav/scfg.c Thu Mar 28 20:30:52 2019 +0100 +++ b/dav/scfg.c Sat Apr 06 14:25:07 2019 +0200 @@ -392,6 +392,8 @@ bool backuppull = false; bool lockpull = false; bool lockpush = false; + bool hashing = false; + bool detect_copy = false; time_t lock_timeout = 0; uint32_t metadata = 0; @@ -485,6 +487,8 @@ print_warning(node->line, "integer value " "expected in element\n"); } + } else if(xstreq(node->name, "hashing")) { + hashing = util_getboolean(value); } else { print_error(node->line, "unknown directory config element: %s\n", node->name); @@ -527,6 +531,7 @@ dir->backuppull = backuppull; dir->lockpull = lockpull; dir->lockpush = lockpush; + dir->hashing = hashing; dir->lock_timeout = lock_timeout; dir->metadata = metadata; dir->splitconfig = splitconfig; diff -r ab46acda1066 -r af91d3c96994 dav/scfg.h --- a/dav/scfg.h Thu Mar 28 20:30:52 2019 +0100 +++ b/dav/scfg.h Sat Apr 06 14:25:07 2019 +0200 @@ -73,6 +73,7 @@ bool backuppull; bool lockpull; bool lockpush; + bool hashing; uint32_t db_settings; } SyncDirectory;