btrfs: use zstd:1 compression

This commit is contained in:
Daniel Langbein 2021-05-25 22:01:48 +02:00
parent a17c379698
commit e01406f769
2 changed files with 7 additions and 3 deletions

View File

@ -2,7 +2,7 @@
_pkgname=installer _pkgname=installer
_reponame=arch _reponame=arch
pkgname="de-p1st-$_pkgname" pkgname="de-p1st-$_pkgname"
pkgver=0.1.5 pkgver=0.1.6
pkgrel=1 pkgrel=1
pkgdesc="Bash script to install Arch Linux" pkgdesc="Bash script to install Arch Linux"
arch=('any') arch=('any')

View File

@ -96,9 +96,13 @@ function get_default_mount_options() {
case "${FS}" in case "${FS}" in
BTRFS) BTRFS)
# compress=lzo: archwiki -> Btrfs#Compression # "compress=lzo": archwiki -> Btrfs#Compression
# "compress=zstd:1":
# -> https://btrfs.wiki.kernel.org/index.php/Compression#What_are_the_differences_between_compression_methods.3F
# -> https://fedoraproject.org/wiki/Changes/BtrfsTransparentCompression#Q:_Why_use_zstd:1_specifically.3F
#
# "Enable compression (better performance, longer flash lifespan)" # "Enable compression (better performance, longer flash lifespan)"
FS_DEFAULT_MOUNT_OPTIONS+=('compress=lzo') FS_DEFAULT_MOUNT_OPTIONS+=('compress=zstd:1')
;; ;;
EXT4) EXT4)
# https://wiki.archlinux.org/index.php/Ext4#Enabling_metadata_checksums # https://wiki.archlinux.org/index.php/Ext4#Enabling_metadata_checksums