GithubHelp home page GithubHelp logo

Comments (1)

mstmdev avatar mstmdev commented on July 23, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.