Can mkfs.erofs keep specified files uncompressed?

Gao Xiang hsiangkao at linux.alibaba.com
Tue Jun 11 13:10:23 AEST 2024


Hi Keiichi,

On 2024/6/11 10:58, Keiichi Watanabe wrote:
> Hi,
> 
> Is it possible to exclude specific files from compression when running
> mkfs.erofs?
> I found The --compress-hints option allows me to specify different
> algorithms for files thanks to [1]. It would be great if I could
> specify "uncompress" in the hint file.

I think it's already supported by specifying pclusterblks as 0
to leave these files uncompressed like:
0 0 .*

You could try if it works for your use cases..

Thanks,
Gao Xiang

> 
> [1]: https://github.com/erofs/erofs-utils/commit/dac31f7eb228601c457c6338e6df8dabfcbb039b
> 
> Best regards,
> Keiichi


More information about the Linux-erofs mailing list