File tree Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -98,6 +98,23 @@ more CPU the system performance is affected.
98
98
Level 0 always maps to the default. The compression level does not affect
99
99
compatibility.
100
100
101
+ Exceptions
102
+ ----------
103
+
104
+ Any file that has been touched by the *fallocate * system call will always be
105
+ excepted from compression even if *force-compress * mount option is used.
106
+
107
+ The reason for this is that a successful *fallocate * call must guarantee that
108
+ future writes to the allocated range will not fail because of lack of space.
109
+ This is difficult to guarantee in a COW filesystem. To reduce the chances of
110
+ it happening, btrfs preallocates space and disables compression for the file.
111
+
112
+ As a workaround, one can trigger a compressed rewrite for such a file using the
113
+ *btrfs defrag * command. Be aware that if the file is touched again by the
114
+ *fallocate * system call, it will be excepted again from compression for all the
115
+ new data written to it.
116
+
117
+
101
118
Incompressible data
102
119
-------------------
103
120
You can’t perform that action at this time.
0 commit comments