@@ -52,7 +52,7 @@ Within the native client, multiple threads are spawned to fetch I/O requests fro |
52 | 52 |
|
53 | 53 | ### Location of file chunks |
54 | 54 |
|
55 | | -3FS divides file data into equally sized chunks and stripes them across multiple replication chains (replication chains and chain tables are defined in Section [Data placement](#data-placement). Users can specify the chain table, chunk size, and stripe size for files on a per-directory basis. Each chunk is independently stored on multiple storage services, with its chunk ID generated by concatenating the file’s inode id and chunk index. |
| 55 | +3FS divides file data into equally sized chunks and stripes them across multiple replication chains (replication chains and chain tables are defined in Section [Data placement](#data-placement)). Users can specify the chain table, chunk size, and stripe size for files on a per-directory basis. Each chunk is independently stored on multiple storage services, with its chunk ID generated by concatenating the file’s inode id and chunk index. |
56 | 56 |
|
57 | 57 | When creating a new file, the metadata service employs a round-robin strategy to select consecutive replication chains from the designated chain table, based on the stripe size. Next, a random seed is generated to shuffle the selected chains. This allocation strategy ensures balanced data distribution across chains and SSDs. |
58 | 58 |
|
@@ -74,7 +74,7 @@ The file system metadata primarily consists of two core structures: inodes and d |
74 | 74 |
|
75 | 75 | Directory entry keys are composed of a "DENT" prefix, the parent inode ID, and the entry name. Directory entry values store the target inode id and inode type. All entries within a directory naturally form a contiguous key range, allowing efficient directory listing via range queries. |
76 | 76 |
|
77 | | -The meta operations leverages FoundationDB’s transactions: |
| 77 | +The meta operations leverage FoundationDB’s transactions: |
78 | 78 |
|
79 | 79 | - Read-only transactions used for metadata queries: fstat, lookup, listdir etc. |
80 | 80 |
|
@@ -206,7 +206,7 @@ A storage target can change from one public state to another in response to the |
206 | 206 |
|
207 | 207 | - If a storage service finds public state of any local storage target is lastsrv or offline, it exits immediately. The service may be isolated from the cluster manager by network partition error. |
208 | 208 |
|
209 | | -- Once the date recovery of a storage target in syncing state is completed, the storage service set the target’s local state to up-to-date in subsequent heartbeat messages sent to cluster manager. |
| 209 | +- Once the data recovery of a storage target in syncing state is completed, the storage service set the target’s local state to up-to-date in subsequent heartbeat messages sent to cluster manager. |
210 | 210 |
|
211 | 211 | | Local State | Current Public State | Predecessor’s Public State | Next Public State | |
212 | 212 | | :---------- | :------------------- | :------------------------- | :---------------- | |
@@ -253,7 +253,7 @@ When a storage service finds a previously offline successor is online: |
253 | 253 |
|
254 | 254 | - The chunk lock is first acquired for each chunk. |
255 | 255 |
|
256 | | - - The chain version, commited version number and chunk content are read and transferred to successor by sending a full-chunk-replace request. |
| 256 | + - The chain version, committed version number and chunk content are read and transferred to successor by sending a full-chunk-replace request. |
257 | 257 |
|
258 | 258 | - The chunk lock is released. |
259 | 259 |
|
|