1 /* |
1 /* |
2 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. |
2 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. |
3 * |
3 * |
4 * Copyright 2018 Olaf Wintermann. All rights reserved. |
4 * Copyright 2019 Olaf Wintermann. All rights reserved. |
5 * |
5 * |
6 * Redistribution and use in source and binary forms, with or without |
6 * Redistribution and use in source and binary forms, with or without |
7 * modification, are permitted provided that the following conditions are met: |
7 * modification, are permitted provided that the following conditions are met: |
8 * |
8 * |
9 * 1. Redistributions of source code must retain the above copyright |
9 * 1. Redistributions of source code must retain the above copyright |
533 dir->lockpush = lockpush; |
533 dir->lockpush = lockpush; |
534 dir->hashing = hashing; |
534 dir->hashing = hashing; |
535 dir->lock_timeout = lock_timeout; |
535 dir->lock_timeout = lock_timeout; |
536 dir->metadata = metadata; |
536 dir->metadata = metadata; |
537 dir->splitconfig = splitconfig; |
537 dir->splitconfig = splitconfig; |
|
538 dir->symlink = SYNC_SYMLINK_STORE; // TODO: add config elements |
538 if((metadata & FINFO_MODE) == FINFO_MODE) { |
539 if((metadata & FINFO_MODE) == FINFO_MODE) { |
539 dir->db_settings = DB_STORE_MODE; |
540 dir->db_settings = DB_STORE_MODE; |
540 } |
541 } |
541 if((metadata & FINFO_OWNER) == FINFO_OWNER) { |
542 if((metadata & FINFO_OWNER) == FINFO_OWNER) { |
542 dir->db_settings |= DB_STORE_OWNER; |
543 dir->db_settings |= DB_STORE_OWNER; |