Can mkfs.erofs keep specified files uncompressed?

Keiichi Watanabe keiichiw at chromium.org
Tue Jun 11 13:28:50 AEST 2024


Hi Gao,

That's exactly what I wanted. Thank you so much!

Best regards,
Keiichi

On Tue, Jun 11, 2024 at 12:10 PM Gao Xiang <hsiangkao at linux.alibaba.com> wrote:
>
> 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