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

archiver: Shortcut for handling empty files #4267

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Commits on Mar 23, 2023

  1. archiver: Shortcut for handling empty files

    Regular files that are empty according to stat are now not opened for
    reading their contents. Such files are quite common (in my homedir, at
    least) and we can save multiple system calls this way. On a network
    filesystem, that can mean round trips. Also, we can back up empty files
    that we cannot open for reading. Finally, fixes restic#4257.
    
    Existing tests cover this case. fs.Reader now no longer has a meaningful
    Size. Nothing depended on that.
    greatroar committed Mar 23, 2023
    Configuration menu
    Copy the full SHA
    50d8377 View commit details
    Browse the repository at this point in the history