Updated Path Specific Filer Store (markdown)

Chris Lu 2020-12-21 23:11:02 -08:00
parent 234bcf4ac8
commit bf346c8ab2

@ -41,6 +41,14 @@ When any request comes in, the directory is matched to all locations with custom
This only works for new data or new updates. Existing data for old directories will become `lost` or invisible. So only apply this to new directories. This only works for new data or new updates. Existing data for old directories will become `lost` or invisible. So only apply this to new directories.
# Data Storage
The directory path stored in the path-specific filer store has the `location` prefix trimmed and persists to the store. For example, the file `/my/home/tmp/file.txt` stored in path-specific filer store with the `location = "/my/home/" will only store "/tmp/file.txt" to the store.
When reading back, the prefix will be transparently added back.
This trimming saves some storage, but that is not the purpose. This means the path-specific filer store can later change `location` to another directory, or even another filer.
# What still works? # What still works?
This can not be applied to existing directories. Besides this requirement, all other meta data operations are almost transparent to this configuration change. For example, This can not be applied to existing directories. Besides this requirement, all other meta data operations are almost transparent to this configuration change. For example,