Problem in EROFS: Not able to read the files after mount

Gao Xiang hsiangkao at aol.com
Wed Jan 22 15:37:03 AEDT 2020


On Wed, Jan 22, 2020 at 09:27:45AM +0530, Saumya Panda wrote:
> Hi Gao,
>   Thanks for the info. After I enabled the said configuration, I am now
> able to read the files after mount. But I am seeing Squashfs has better
> compression ratio compared to Erofs (more than 60% than that of Erofs). Am
> I missing something? I used lz4hc while making the Erofs image.
> 
> ls -l enwik*
> -rw-r--r-- 1 saumya users  61280256 Jan 21 03:22 enwik8.erofs.img
> -rw-r--r-- 1 saumya users  37355520 Jan 21 03:34 enwik8.sqsh
> -rw-r--r-- 1 saumya users 558133248 Jan 21 03:25 enwik9.erofs.img
> -rw-r--r-- 1 saumya users 331481088 Jan 21 03:35 enwik9.sqsh

Yes, it's working as expect. Currently EROFS is compressed in 4k
fixed-sized output compression granularity as mentioned in many
available materials. That is the use case for our smartphones.
You should compare with similar block configuration of squashfs.
and there are some 3rd data by other folks as well [1].

In the future, we will support other compression algorithms and
larger compressed size (> 4k).

[1] In chinese,
    https://blog.csdn.net/scnutiger/article/details/102507596

Thanks,
Gao Xiang



More information about the Linux-erofs mailing list