]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
homework: default to btrfs compression
authorLennart Poettering <lennart@poettering.net>
Fri, 5 Nov 2021 14:24:58 +0000 (15:24 +0100)
committerLennart Poettering <lennart@poettering.net>
Fri, 12 Nov 2021 16:33:16 +0000 (17:33 +0100)
This follows what Fedora did with 34: enables compression by default,
lowering IO bandwidth and reducing disk space use, at the price of
slightly higher CPU use.

https://fedoraproject.org/wiki/Changes/BtrfsTransparentCompression

src/home/homework-mount.c

index 82b461a9873616aed05e7ec71a7a78d6f54edbec..d73a908f1cfcde07c2d449b08690ef7d3c0bfa09 100644 (file)
@@ -25,7 +25,7 @@ static const char *mount_options_for_fstype(const char *fstype) {
         if (streq(fstype, "xfs"))
                 return "noquota";
         if (streq(fstype, "btrfs"))
-                return "noacl";
+                return "noacl,compress=zstd:1";
         return NULL;
 }