Actions
FileManager » History » Revision 6
« Previous |
Revision 6/7
(diff)
| Next »
Greg Burri, 05/28/2010 03:51 PM
FileManager¶
Algorithms¶
Sharing¶
There is two type of shared directory :
- Readonly : The content will only be uploaded.
- Read and write : New downloaded file goes here.
- Two same directories cannot be shared.
- A shared directory can be a subdirectory of an existing share
- A shared directory can contains an existing share
Symlinks : pay attention ...
Starting process¶
The process begin in FileManager::FileManager()
.
- Load the cache (proto buff) -> c.
- Give c to the cache.
- The cache create shared directories (
SharedDirectory
) -> S, sub directories (Directory
) and files (File
) according c. - For each s in S :
fileUpdater->addRoot(s)
(via signals).
fileUpdater->start()
// Start the file updater daemon (thread).- For each s in S :
scan(s)
// Read all directories and file from the file system.restoreFromFile(s)
// Give the known hashes from c to the corresponding files.
- For each s in S :
Updated by Greg Burri over 14 years ago · 6 revisions