Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pkg/chunked: add support for sparse files #1102

Merged
merged 5 commits into from
Jan 13, 2022

Commits on Jan 13, 2022

  1. chunked: remove garbage symlink

    Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
    giuseppe committed Jan 13, 2022
    Configuration menu
    Copy the full SHA
    70c783b View commit details
    Browse the repository at this point in the history
  2. cache: store correctly the digestLen field

    commit 10697a0 introduced the issue.
    
    Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
    giuseppe committed Jan 13, 2022
    Configuration menu
    Copy the full SHA
    96c0403 View commit details
    Browse the repository at this point in the history
  3. cache: parse the correct field for offset

    commit 10697a0 introduced the issue.
    
    Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
    giuseppe committed Jan 13, 2022
    Configuration menu
    Copy the full SHA
    ab25eaf View commit details
    Browse the repository at this point in the history
  4. chunked: add tests for the cache

    Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
    giuseppe committed Jan 13, 2022
    Configuration menu
    Copy the full SHA
    fd89b93 View commit details
    Browse the repository at this point in the history
  5. pkg/chunked: add support for sparse files

    automatically detect holes in sparse files (the threshold is hardcoded
    at 1kb for now) and add this information to the manifest file.
    
    The receiver will create a hole (using unix.Seek and unix.Ftruncate)
    instead of writing the actual zeros.
    
    Closes: containers#1091
    
    Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
    giuseppe committed Jan 13, 2022
    Configuration menu
    Copy the full SHA
    1988208 View commit details
    Browse the repository at this point in the history