Update DESIGN.md

This commit is contained in:
gilbertchen
2016-02-23 12:23:00 -05:00
parent 9f816547b4
commit 1c8fe0810d

View File

@@ -22,25 +22,36 @@ and dir1/file3):
"size": 151901, "size": 151901,
"time": 1455590487, "time": 1455590487,
"mode": 420 "mode": 420
}, { },
{
"path": "file2", "path": "file2",
"content": "2:6108:3:7586", "content": "2:6108:3:7586",
"hash": "f6111c1562fde4df9c0bafe2cf665778c6e25b49bcab5fec63675571293ed644", "size": 172071, "hash": "f6111c1562fde4df9c0bafe2cf665778c6e25b49bcab5fec63675571293ed644",
"size": 172071,
"time": 1455590487, "time": 1455590487,
"mode": 420 "mode": 420
}, { },
{
"path": "dir1/", "path": "dir1/",
"size": 102, "size": 102,
"time": 1455590487, "time": 1455590487,
"mode": 2147484096 "mode": 2147484096
}, { },
{
"path": "dir1/file3", "path": "dir1/file3",
"content": "3:7586:4:1734", "content": "3:7586:4:1734",
"hash": "6bf9150424169006388146908d83d07de413de05d1809884c38011b2a74d9d3f", "size": 118457, "hash": "6bf9150424169006388146908d83d07de413de05d1809884c38011b2a74d9d3f",
"size": 118457,
"time": 1455590487, "time": 1455590487,
"mode": 420 "mode": 420
} ], }
"chunks": [ "9f25db00881a10a8e7bcaa5a12b2659c2358a579118ea45a73c2582681f12919", "6e903aace6cd05e26212fcec1939bb951611c4179c926351f3b20365ef2c212f", "4b0d017bce5491dbb0558c518734429ec19b8a0d7c616f68ddf1b477916621f7", "41841c98800d3b9faa01b1007d1afaf702000da182df89793c327f88a9aba698", "7c11ee13ea32e9bb21a694c5418658b39e8894bbfecd9344927020a9e3129718" ],
"chunks": [
"9f25db00881a10a8e7bcaa5a12b2659c2358a579118ea45a73c2582681f12919",
"6e903aace6cd05e26212fcec1939bb951611c4179c926351f3b20365ef2c212f",
"4b0d017bce5491dbb0558c518734429ec19b8a0d7c616f68ddf1b477916621f7",
"41841c98800d3b9faa01b1007d1afaf702000da182df89793c327f88a9aba698",
"7c11ee13ea32e9bb21a694c5418658b39e8894bbfecd9344927020a9e3129718"
], ],
"lengths": [ "lengths": [
64638, 64638,
@@ -48,7 +59,8 @@ and dir1/file3):
170593, 170593,
124309, 124309,
1734 1734
] } ]
}
``` ```
When Duplicacy splits a file in chunks, if the end of a file is reached and yet the boundary marker for terminating a chunk When Duplicacy splits a file in chunks, if the end of a file is reached and yet the boundary marker for terminating a chunk
@@ -80,10 +92,14 @@ contains sequences of chunk hashes and other fixed size fields:
"start_time": 1455590487, "start_time": 1455590487,
"tag": "first", "tag": "first",
"end_time": 1455590487, "end_time": 1455590487,
"file_sequence": [ "21e4c69f3832e32349f653f31f13cefc7c52d52f5f3417ae21f2ef5a479c3437", "file_sequence": [
"21e4c69f3832e32349f653f31f13cefc7c52d52f5f3417ae21f2ef5a479c3437",
], ],
"chunk_sequence": [ "chunk_sequence": [
"8a36ffb8f4959394fd39bba4f4a464545ff3dd6eed642ad4ccaa522253f2d5d6" ], "8a36ffb8f4959394fd39bba4f4a464545ff3dd6eed642ad4ccaa522253f2d5d6"
"length_sequence": [ "fc2758ae60a441c244dae05f035136e6dd33d3f3a0c5eb4b9025a9bed1d0c328" ],
] } "length_sequence": [
"fc2758ae60a441c244dae05f035136e6dd33d3f3a0c5eb4b9025a9bed1d0c328"
]
}
``` ```