mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
Updated Directories and Files (markdown)
parent
9ce0c8c72a
commit
8bfe42da4f
|
@ -52,7 +52,7 @@ For reads:
|
|||
2. Client Read File Chunks => Weed Volume Servers
|
||||
|
||||
For writes:
|
||||
1. Client write to Filer
|
||||
1. Client stream files to Filer
|
||||
2. Filer uploads data to Weed Volume Servers, and break the large files into chunks.
|
||||
3. Filer writes the metadata and chunk information into Filer database.
|
||||
|
||||
|
@ -64,6 +64,10 @@ For file listing under a particular directory, the listing is just a simple scan
|
|||
|
||||
For adding one file, the parent directories will be recursively created if not exists. And then the file entry will be created.
|
||||
|
||||
For file renaming, it is just O(1) operations, with deleting the old metadata and inserting the new metadata, without changing the actual file content on volume servers.
|
||||
|
||||
For directory renaming, it will be O(N) operations, with N as the number of files and folders underneath the to-be-renamed directory. This is because each of them will need to adjust the metadata. But still there are no change for the actual file content on volume servers.
|
||||
|
||||
### Comparing Storage Options
|
||||
|
||||
Here is a comparison of different filer store options.
|
||||
|
@ -76,7 +80,7 @@ Here is a comparison of different filer store options.
|
|||
|
||||
### Extending Storage Options
|
||||
|
||||
For any new storage option, please check the FilerStore interface. It should be fairly straight forward to implement. Welcome to contribute back.
|
||||
For any new storage option, please implement the FilerStore interface. It should be fairly straight forward to implement. Welcome to contribute back.
|
||||
|
||||
### Use Cases
|
||||
|
||||
|
|
Loading…
Reference in a new issue