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

btrfs-progs: mkfs: add --compression #882

Merged
merged 4 commits into from
Nov 5, 2024

Commits on Oct 15, 2024

  1. btrfs-progs: mkfs: refactor add_file_items

    There were two major problems with the function add_file_items: it was
    writing all files sector-by-sector, making compression impossible, and
    it was assuming that pread would never do a short read.
    
    Fix these problems, and create a new helper function read_and_write_extent.
    
    Signed-off-by: Mark Harmstone <[email protected]>
    maharmstone committed Oct 15, 2024
    Configuration menu
    Copy the full SHA
    e35b891 View commit details
    Browse the repository at this point in the history
  2. btrfs-progs: mkfs: add --compress option

    Adds an option --compress to mkfs.btrfs, to allow creating files
    using zlib when using --rootdir.
    
    Signed-off-by: Mark Harmstone <[email protected]>
    maharmstone committed Oct 15, 2024
    Configuration menu
    Copy the full SHA
    82cec85 View commit details
    Browse the repository at this point in the history
  3. btrfs-progs: mkfs: add zstd to --compress option

    Allows --compress to work with zstd, when compiled in.
    
    Signed-off-by: Mark Harmstone <[email protected]>
    maharmstone committed Oct 15, 2024
    Configuration menu
    Copy the full SHA
    c614436 View commit details
    Browse the repository at this point in the history
  4. btrfs-progs: mkfs: add lzo to --compress option

    Allows --compress to work with lzo.
    
    Signed-off-by: Mark Harmstone <[email protected]>
    maharmstone committed Oct 15, 2024
    Configuration menu
    Copy the full SHA
    094d7ef View commit details
    Browse the repository at this point in the history