vfs: Introduce PinState db storage #6815
authorChristian Kamm <mail@ckamm.de>
Mon, 26 Nov 2018 12:40:51 +0000 (13:40 +0100)
committerKevin Ottens <kevin.ottens@nextcloud.com>
Tue, 15 Dec 2020 09:58:29 +0000 (10:58 +0100)
commit68126ac208cf3c07057396fff0a027c15fe49ec8
tree3bd04a894299211d8f03434277645a0d918cb5fa
parentdfedb09fd8228c8cfd5912353d52146e0fd3ffb3
vfs: Introduce PinState db storage #6815

The idea is to allow folders (and later maybe files?) to be
- pinned to be available locally
- pinned to be online only
- inherit their pin from the parent

Where this pinning only controls the default for new files.
Subfolders may have a different pin state, and contained files
may be hydrated or dehydrated based on user actions.

This value is stored in a new 'flags' table. The idea is to store
data there that doesn't necessarily exist for each metadata entry.
The selective sync state could be migrated to this table.
src/common/syncjournaldb.cpp
src/common/syncjournaldb.h
test/testsyncjournaldb.cpp