projects
/
systemd
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
006d186
)
homework: default to btrfs compression
author
Lennart Poettering
<lennart@poettering.net>
Fri, 5 Nov 2021 14:24:58 +0000
(15:24 +0100)
committer
Lennart 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
patch
|
blob
|
history
diff --git
a/src/home/homework-mount.c
b/src/home/homework-mount.c
index 82b461a9873616aed05e7ec71a7a78d6f54edbec..d73a908f1cfcde07c2d449b08690ef7d3c0bfa09 100644
(file)
--- 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;
}