<div dir="ltr"><div>Hi Gao,</div><div> 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. <br></div><div><br></div><div>ls -l enwik*<br>-rw-r--r-- 1 saumya users 61280256 Jan 21 03:22 enwik8.erofs.img<br>-rw-r--r-- 1 saumya users 37355520 Jan 21 03:34 enwik8.sqsh<br>-rw-r--r-- 1 saumya users 558133248 Jan 21 03:25 enwik9.erofs.img<br>-rw-r--r-- 1 saumya users 331481088 Jan 21 03:35 enwik9.sqsh<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Jan 20, 2020 at 1:11 PM Gao Xiang <<a href="mailto:hsiangkao@aol.com">hsiangkao@aol.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi Saumya,<br>
<br>
On Mon, Jan 20, 2020 at 12:25:15PM +0530, Saumya Panda wrote:<br>
> Hi Experts,<br>
> I am testing EROFS in openSuse(Kernel: 5.4.7-1-default). I used the<br>
> enwik8 and enwik9 as source file (<br>
> <a href="https://cs.fit.edu/~mmahoney/compression/textdata.html" rel="noreferrer" target="_blank">https://cs.fit.edu/~mmahoney/compression/textdata.html</a>) for compression.<br>
> But after I mount the erofs image, I am not able to read it (it is saying<br>
> operation not permitted). Simple "ls" command is not working. But if I<br>
> create EROFS image without compression flag, then after mount I am able to<br>
> read the files. Seems there is some problem during compression.<br>
> <br>
> I will appreciate if someone can help me out why this is happening.<br>
<br>
Could you please check if your opensuse kernel has been enabled<br>
the following configuration?<br>
<br>
CONFIG_EROFS_FS_ZIP=y<br>
CONFIG_EROFS_FS_CLUSTER_PAGE_LIMIT=1<br>
<br>
By default, they should be enabled, but it seems not according to<br>
the following information you mentioned.<br>
<br>
Thanks,<br>
Gao Xiang<br>
<br>
> <br>
> Steps followed:<br>
> *Erofs image creation & mount: *<br>
> mkfs.erofs -zlz4hc enwik8.erofs.img enwik8/<br>
> mkfs.erofs 1.0<br>
> c_version: [ 1.0]<br>
> c_dbg_lvl: [ 0]<br>
> c_dry_run: [ 0]<br>
> mount enwik8.erofs.img /mnt/enwik8/ -t erofs -o loop<br>
> <br>
> ls -l /mnt/enwik8/<br>
> ls: cannot access '/mnt/enwik8/enwik8': Operation not supported<br>
> total 0<br>
> -????????? ? ? ? ? ? enwik8<br>
> <br>
> The problem seen for both lz4 & lz4hc.<br>
> <br>
> *Erofs image creation & mount without compression: *<br>
> mkfs.erofs enwik8_nocomp.erofs.img enwik8/<br>
> mkfs.erofs 1.0<br>
> c_version: [ 1.0]<br>
> c_dbg_lvl: [ 0]<br>
> c_dry_run: [ 0]<br>
> <br>
> mount enwik8_nocomp.erofs.img /mnt/enwik8_nocomp/ -t erofs -o loop<br>
> <br>
> ls -l /mnt/enwik8_nocomp/<br>
> total 97660<br>
> -rw-r--r-- 1 root root 100000000 Jan 20 01:27 enwik8<br>
> <br>
> *Original enwik8 file:*<br>
> ls -l enwik8<br>
> total 97660<br>
> -rw-r--r-- 1 root root 100000000 Jan 20 01:14 enwik8<br>
> <br>
> *Source code used for Lz4 and Erofs utils:*<br>
> <a href="https://github.com/hsiangkao/erofs-utils" rel="noreferrer" target="_blank">https://github.com/hsiangkao/erofs-utils</a><br>
> <a href="https://github.com/lz4/lz4" rel="noreferrer" target="_blank">https://github.com/lz4/lz4</a><br>
> <br>
> -- <br>
> Thanks,<br>
> Saumya Prakash Panda<br>
</blockquote></div><br clear="all"><br>-- <br><div dir="ltr" class="gmail_signature">Thanks,<br>Saumya Prakash Panda<br><br></div>