linux-erofs.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
From: Gao Xiang via Linux-erofs <linux-erofs@lists.ozlabs.org>
To: Saumya Panda <saumya.iisc@gmail.com>
Cc: linux-erofs@lists.ozlabs.org
Subject: Re: Problem in EROFS: Not able to read the files after mount
Date: Mon, 20 Jan 2020 15:41:37 +0800	[thread overview]
Message-ID: <20200120073859.GA32421@hsiangkao-HP-ZHAN-66-Pro-G1> (raw)
In-Reply-To: <CAHmfoRm7xUwuXfTZ2kr-x9fs59x7b707t183ggbLEtEyO_wznA@mail.gmail.com>

Hi Saumya,

On Mon, Jan 20, 2020 at 12:25:15PM +0530, Saumya Panda wrote:
> Hi Experts,
>    I am testing EROFS in openSuse(Kernel: 5.4.7-1-default). I used the
> enwik8 and enwik9 as source file (
> https://cs.fit.edu/~mmahoney/compression/textdata.html) for compression.
> But after I mount the erofs image, I am not able to read it (it is saying
> operation not permitted). Simple "ls" command is not working. But if I
> create EROFS image without compression flag, then after mount I am able to
> read the files. Seems there is some problem during compression.
> 
> I will appreciate if someone can help me out why this is happening.

Could you please check if your opensuse kernel has been enabled
the following configuration?

CONFIG_EROFS_FS_ZIP=y
CONFIG_EROFS_FS_CLUSTER_PAGE_LIMIT=1

By default, they should be enabled, but it seems not according to
the following information you mentioned.

Thanks,
Gao Xiang

> 
> Steps followed:
> *Erofs image creation & mount: *
> mkfs.erofs -zlz4hc enwik8.erofs.img enwik8/
> mkfs.erofs 1.0
>         c_version:           [     1.0]
>         c_dbg_lvl:           [       0]
>         c_dry_run:           [       0]
> mount enwik8.erofs.img /mnt/enwik8/ -t erofs -o loop
> 
> ls -l /mnt/enwik8/
> ls: cannot access '/mnt/enwik8/enwik8': Operation not supported
> total 0
> -????????? ? ? ? ?            ? enwik8
> 
> The problem seen for both lz4 & lz4hc.
> 
> *Erofs image creation & mount without compression: *
> mkfs.erofs  enwik8_nocomp.erofs.img enwik8/
> mkfs.erofs 1.0
>         c_version:           [     1.0]
>         c_dbg_lvl:           [       0]
>         c_dry_run:           [       0]
> 
> mount enwik8_nocomp.erofs.img /mnt/enwik8_nocomp/ -t erofs -o loop
> 
> ls -l /mnt/enwik8_nocomp/
> total 97660
> -rw-r--r-- 1 root root 100000000 Jan 20 01:27 enwik8
> 
> *Original enwik8 file:*
> ls -l enwik8
> total 97660
> -rw-r--r-- 1 root root 100000000 Jan 20 01:14 enwik8
> 
> *Source code used for Lz4 and Erofs utils:*
> https://github.com/hsiangkao/erofs-utils
> https://github.com/lz4/lz4
> 
> -- 
> Thanks,
> Saumya Prakash Panda

  reply	other threads:[~2020-01-20  7:42 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-01-20  6:55 Problem in EROFS: Not able to read the files after mount Saumya Panda
2020-01-20  7:41 ` Gao Xiang via Linux-erofs [this message]
2020-01-22  3:57   ` Saumya Panda
2020-01-22  4:37     ` Gao Xiang via Linux-erofs
2020-01-29  4:13       ` Saumya Panda
2020-01-29  4:50         ` Gao Xiang via Linux-erofs
2020-01-29  4:59         ` Gao Xiang via Linux-erofs
2020-03-20  8:00           ` Saumya Panda
2020-03-20 11:16             ` Gao Xiang via Linux-erofs

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200120073859.GA32421@hsiangkao-HP-ZHAN-66-Pro-G1 \
    --to=linux-erofs@lists.ozlabs.org \
    --cc=hsiangkao@aol.com \
    --cc=saumya.iisc@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).