Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* btrfs: compress image at build time Adding force-compress will force btrfs to try compress every file in the image and writing the compression result only if it is smaller than the original file, otherwise the original file will be stored: this will spare space on the user disk while slowing down builds. Compressing the btrfs image makes almost no difference in the size of the xz image (a few bytes, about 1MiB in my tests), and the decompression penality is not noticeable and in case of slow disk loading less data might actually be benefiacial to the end-user. * btrfs: enable run-time compression This commits enable default compression on btrfs using the zstd algorithm with a compression level that is reported as being real-time by official btrfs documentation: https://btrfs.readthedocs.io/en/latest/Compression.html Using compress instead of compress-force leaves enabled the heuristic to determine if compressing the whole file is worth it: this avoids additional strain on the end-user system. * btrfs: allow compression by removing nodatacow Address concerns about data fragmentation by executing a btrfs filesystem defragment.
- Loading branch information