linux-erofs.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* Problem in EROFS: Not able to read the files after mount
@ 2020-01-20  6:55 Saumya Panda
  2020-01-20  7:41 ` Gao Xiang via Linux-erofs
  0 siblings, 1 reply; 9+ messages in thread
From: Saumya Panda @ 2020-01-20  6:55 UTC (permalink / raw)
  To: linux-erofs

[-- Attachment #1: Type: text/plain, Size: 1640 bytes --]

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.

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

[-- Attachment #2: Type: text/html, Size: 2475 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2020-03-20 11:17 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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
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

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).