mail perf tuning
[distro-setup] / mount-latest-subvol
index c66eebc1bd0a97d9cb8513cbedc2a4d4b9faf8ae..eb682f4eebf54212768eb03c0c0a07e4f6114879 100644 (file)
@@ -271,8 +271,10 @@ fi
 fa=(/mnt/o/btrbk/o.*); f=${fa[0]}
 if [[ -e $f ]]; then
   if [[ $o_dev != "$root_dev" ]]; then
+    # ,compress=zstd regardless of mopts since these are all text files
+    # and it cuts disk use by about half.
     fstab <<EOF
-$o_dev  /o  btrfs  noatime,subvol=o$mopts  0 0
+$o_dev  /o  btrfs  noatime,subvol=o${mopts/,compress=zstd/},compress=zstd  0 0
 EOF
   fi
   fstab <<EOF