Skip to content

Commit 4d2a060

Browse files
Soft-hide global /recompress parameters
Ref: #215
1 parent 6151160 commit 4d2a060

File tree

3 files changed

+3
-6
lines changed

3 files changed

+3
-6
lines changed

man/zram-generator.conf.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ Devices with the final size of *0* will be discarded.
8080
If more than one is given, and recompression is enabled in the kernel, subsequent ones will be set as the recompression algorithms, with decreasing priority.
8181

8282
If a compression algorithm is suffixed with a parenthesised comma-separated list of parameters, those are given to `.../algorithm_params`.
83-
A parenthesised parameter list *without* a compression algorithm is set as the global recompression parameters (`.../recompress`).
83+
A parenthesised parameter list *without* a compression algorithm is written to `.../recompress`.
8484

8585
* `writeback-device`=
8686

tests/test_cases.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,7 @@ fn test_10_example() {
326326
("lzo-rle".into(), "".into()),
327327
("zstd".into(), "level=3".into())
328328
],
329-
recompression_global: "type=idle".into(),
329+
..Default::default()
330330
}
331331
);
332332
assert_eq!(d.options, "");

zram-generator.conf.example

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,7 @@ zram-resident-limit = maxhotplug * 3/4
3838
#
3939
# Subsequent algorithms are used for recompression.
4040
# Comma-separated parameters may be specified in parentheses.
41-
#
42-
# Parameters without a compression algorithm are set as
43-
# global recompression parameters.
44-
compression-algorithm = lzo-rle zstd(level=3) (type=idle)
41+
compression-algorithm = lzo-rle zstd(level=3)
4542

4643
# By default, file systems and swap areas are trimmed on-the-go
4744
# by setting "discard".

0 commit comments

Comments
 (0)