| 1 |
What: /sys/fs/erofs/features/ |
| 2 |
Date: November 2021 |
| 3 |
Contact: "Huang Jianan" <[email protected]> |
| 4 |
Description: Shows all enabled kernel features. |
| 5 |
Supported features: |
| 6 |
compr_cfgs, big_pcluster, chunked_file, device_table, |
| 7 |
compr_head2, sb_chksum, ztailpacking, dedupe, fragments, |
| 8 |
48bit, metabox. |
| 9 |
|
| 10 |
What: /sys/fs/erofs/<disk>/sync_decompress |
| 11 |
Date: November 2021 |
| 12 |
Contact: "Huang Jianan" <[email protected]> |
| 13 |
Description: Control strategy of synchronous decompression. Synchronous |
| 14 |
decompression tries to decompress in the reader thread for |
| 15 |
synchronous reads and small asynchronous reads (<= 12 KiB): |
| 16 |
|
| 17 |
- 0 (auto, default): apply to synchronous reads only, but will |
| 18 |
switch to 1 (force on) if any decompression |
| 19 |
request is detected in atomic contexts; |
| 20 |
- 1 (force on): apply to synchronous reads and small |
| 21 |
asynchronous reads; |
| 22 |
- 2 (force off): disable synchronous decompression completely. |
| 23 |
|
| 24 |
What: /sys/fs/erofs/<disk>/drop_caches |
| 25 |
Date: November 2024 |
| 26 |
Contact: "Guo Chunhai" <[email protected]> |
| 27 |
Description: Writing to this will drop compression-related caches, |
| 28 |
currently used to drop in-memory pclusters and cached |
| 29 |
compressed folios: |
| 30 |
|
| 31 |
- 1 : invalidate cached compressed folios |
| 32 |
- 2 : drop in-memory pclusters |
| 33 |
- 3 : drop in-memory pclusters and cached compressed folios |
| 34 |
|
| 35 |
What: /sys/fs/erofs/accel |
| 36 |
Date: May 2025 |
| 37 |
Contact: "Bo Liu" <[email protected]> |
| 38 |
Description: Used to set or show hardware accelerators in effect |
| 39 |
and multiple accelerators are separated by '\n'. |
| 40 |
Supported accelerator(s): qat_deflate. |
| 41 |
Disable all accelerators with an empty string (echo > accel). |
| 42 |
|
| 43 |
What: /sys/fs/erofs/<disk>/dir_ra_bytes |
| 44 |
Date: July 2025 |
| 45 |
Contact: "Chao Yu" <[email protected]> |
| 46 |
Description: Used to set or show readahead bytes during readdir(), by |
| 47 |
default the value is 16384. |
| 48 |
|
| 49 |
- 0: disable readahead. |