Comments (1)
There are some optimizations for the big file in the universal scene.
The gofs will generate some checkpoints to calculate the file chunk hash value when the file is modified. You can change
the -checkpoint_count
and -chunk_size
flags to control the checkpoints, and for more information see also the checksum section.
For example, execute the following command to output the file checkpoints with default setting:
$ gofs -source=go1.18.3.linux-amd64.tar.gz -checksum
Output:
[
{
"offset": 1048576,
"hash": "a9168dd0ef9e6cdfccb3b71de077ec73"
},
{
"offset": 13631488,
"hash": "f59a9759d0dfe1a149568cb40ad4af4d"
},
{
"offset": 27262976,
"hash": "79711c44daf0a2e5479c108db7568872"
},
{
"offset": 40894464,
"hash": "9c89d776454ec8f03ba916e10e158455"
},
{
"offset": 54525952,
"hash": "36ace0da4eae494ab6a404c2879098a6"
},
{
"offset": 68157440,
"hash": "8d2fc7bb6e4b409f54e0a116f3690ea9"
},
{
"offset": 81788928,
"hash": "96f11fa855f368a56f170cab6f7b0a89"
},
{
"offset": 95420416,
"hash": "11127168e9364025a1ae0524a0154d2b"
},
{
"offset": 109051904,
"hash": "e215df2b5fe8e34ec3ad8f354db62039"
},
{
"offset": 122683392,
"hash": "918aea633289b221faea259c2a50c5f1"
},
{
"offset": 136314880,
"hash": "147792aea5544021114fd3d44478c3f0"
},
{
"offset": 141748419,
"hash": "0dec4243438f5c1c40706d5c6d843ac7"
}
]
The gofs will compare the local source file checkpoints with the destination file checkpoints and sync the data chunks after the last checkpoint offset is hit.
from gofs.
Related Issues (20)
- Found data race in the "tcpServer" HOT 1
- Such a tool needs a feature to limit bandwidth HOT 6
- A suggestion about product design HOT 13
- Consider moving fsctl to a new standalone project HOT 1
- 删除文件的操作无法同步远程 HOT 5
- 重命名函数好像不大对劲 HOT 2
- How to use gofs as a library HOT 2
- remote_client_sync模式当同步路径中包含#,数据不同步 HOT 20
- Build Dockerfile successfully, but failed to run
- 实际使用方法 HOT 1
- Relay HOT 3
- 您好,这个是否支持增量同步呢
- 是否可以直接打包一个可执行文件 HOT 1
- delete the source files and source directories HOT 2
- gofs\server\handler\file_api_handler.go 優化建議 HOT 1
- Found data race in the "Local Disk" mode HOT 1
- Fix code scanning alert - Use of insecure HostKeyCallback implementation
- Fix code scanning alert - Arbitrary file write during zip extraction ("zip slip")
- Found data race in the "Remote Disk Server" and "Remote Disk Client" mode HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gofs.