summaryrefslogtreecommitdiffstats
path: root/src/home/homework-mount.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2021-11-05 15:24:58 +0100
committerLennart Poettering <lennart@poettering.net>2021-11-12 17:33:16 +0100
commita428a4518b7adaae282cf9f1e623a44d4c7191df (patch)
tree8df1e81240daa9b095a942064af66f1e6a74ecd3 /src/home/homework-mount.c
parentexecute: always log a warning when setting SELinux context fails (diff)
downloadsystemd-a428a4518b7adaae282cf9f1e623a44d4c7191df.tar.xz
systemd-a428a4518b7adaae282cf9f1e623a44d4c7191df.zip
homework: default to btrfs compression
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
Diffstat (limited to 'src/home/homework-mount.c')
-rw-r--r--src/home/homework-mount.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/home/homework-mount.c b/src/home/homework-mount.c
index 82b461a987..d73a908f1c 100644
--- a/src/home/homework-mount.c
+++ b/src/home/homework-mount.c
@@ -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;
}