From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.6 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,HTML_MESSAGE,MAILING_LIST_MULTI, MENTIONS_GIT_HOSTING,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id AF2DDC33CA1 for ; Mon, 20 Jan 2020 07:02:41 +0000 (UTC) Received: from lists.ozlabs.org (lists.ozlabs.org [203.11.71.2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 60D802077C for ; Mon, 20 Jan 2020 07:02:41 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="PNPBHbqg" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 60D802077C Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=linux-erofs-bounces+linux-erofs=archiver.kernel.org@lists.ozlabs.org Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 481N0H4gVNzDqGt for ; Mon, 20 Jan 2020 18:02:39 +1100 (AEDT) Authentication-Results: lists.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gmail.com (client-ip=2a00:1450:4864:20::22b; helo=mail-lj1-x22b.google.com; envelope-from=saumya.iisc@gmail.com; receiver=) Authentication-Results: lists.ozlabs.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20161025 header.b=PNPBHbqg; dkim-atps=neutral Received: from mail-lj1-x22b.google.com (mail-lj1-x22b.google.com [IPv6:2a00:1450:4864:20::22b]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 481MrG0hYLzDqWp for ; Mon, 20 Jan 2020 17:55:35 +1100 (AEDT) Received: by mail-lj1-x22b.google.com with SMTP id a13so32606225ljm.10 for ; Sun, 19 Jan 2020 22:55:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=EHIAHS+SGodrYevwbzPxyr+SKq78FjiPSgEvNtf2oNI=; b=PNPBHbqgfeIoHjq1ZhrxQG1n0V6+tpb5YpvOmCgcfRNdHlCCORn0t9UhDuP4dRgOab YvOJ0I84yC7ElFkZLot1OyM63hPM5DA4YeCcEVo36CjnrSbzfDjeGh69LFrONX3G/heW RYv7MuCRFT3Qa20krKsVXvYI9wS4KIa5ZUEC6LEOPxm1f/rlkgFzBDSne4RIWuLV2+t+ 36byho1BINUcXpTQ6L4xEg1VljDBtI/q/CfZ13KRI92H0uISnWBLdfEMcZf0rAUB9xy5 IUXa0/Kv+0bR6MU264b+CBHBKFkCO2PVMT+mrGgjQ5u1X09bon3XegjJYjhXbGkkoGsY nPTA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=EHIAHS+SGodrYevwbzPxyr+SKq78FjiPSgEvNtf2oNI=; b=M5LeFCHg6OEa0uqAwvwye2tUxuCKEiPbpWrUh4ZvWFbNBv+HSSWsBziOFfhjs4bDeg N+NbdlmBXIOwYS0WvSq4lRvkZ6FSswy4g9lQixVY3R92SeQMtHtKHP1wi20G0unNvbPA bIO5uSlhmwMOUwR4OB7h4FnIaB840Gklmqc7tyei4ZeSI/R+dSXJYpGA0m4T2NDJCNU7 C54lTWK7Glsj/NUEWh7fgTDQPhxjDAlTeaV0Dc9kolCZL2n7ex8Ech+ONir5xwrzHMGt Q9+FI+xrjUj5xPU0qfV62ftO8pu3q05QIqs7pyVB2HjoeYlmC+TgIpkJ/nMRxbwlnRLO I5FQ== X-Gm-Message-State: APjAAAWrVXYbCw+Y7P36VRrcxR0TN3IZQPvAdyYZbRedH9kEt1NsK1y9 +kDF7jvp68RLISK8FR+WtTL5oSw4/tOGneM0qtJh8n4GUAY= X-Google-Smtp-Source: APXvYqwwrta4fEjnE1ZN/MhSftWnA/Ei4NZn5QAaOmGnhyh+XYpr70YS/JG59zald/YYmIUrPOJW7b8d8KKDGdAK/JY= X-Received: by 2002:a2e:7d01:: with SMTP id y1mr12955105ljc.100.1579503327400; Sun, 19 Jan 2020 22:55:27 -0800 (PST) MIME-Version: 1.0 From: Saumya Panda Date: Mon, 20 Jan 2020 12:25:15 +0530 Message-ID: Subject: Problem in EROFS: Not able to read the files after mount To: linux-erofs@lists.ozlabs.org Content-Type: multipart/alternative; boundary="000000000000c05781059c8cc695" X-BeenThere: linux-erofs@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Development of Linux EROFS file system List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: linux-erofs-bounces+linux-erofs=archiver.kernel.org@lists.ozlabs.org Sender: "Linux-erofs" --000000000000c05781059c8cc695 Content-Type: text/plain; charset="UTF-8" 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 --000000000000c05781059c8cc695 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi Experts,
=C2=A0=C2=A0 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 comp= ression. 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 work= ing. 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 compressio= n.

I will appreciate if someone can help me o= ut why this is happening.

Steps followed:
=
Erofs image creation & mount:
mkfs.ero= fs -zlz4hc enwik8.erofs.img enwik8/
mkfs.erofs 1.0
=C2=A0 =C2= =A0 =C2=A0 =C2=A0 c_version: =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 [ =C2=A0 = =C2=A0 1.0]
=C2=A0 =C2=A0 =C2=A0 =C2=A0 c_dbg_lvl: =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 [ =C2=A0 =C2=A0 =C2=A0 0]
=C2=A0 =C2=A0 =C2=A0 =C2=A0 c_dr= y_run: =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 [ =C2=A0 =C2=A0 =C2=A0 0]
mount enwik8.erofs.img /mnt/enwik8/ -t erofs -o loop

<= /div>
ls -l /mnt/enwik8/
ls: cannot access '/mnt/enwik8/enwik8&#= 39;: Operation not supported
total 0
-????????? ? ? ? ? =C2=A0 =C2=A0= =C2=A0 =C2=A0 =C2=A0 =C2=A0? enwik8

The probl= em seen for both lz4 & lz4hc.

Erofs im= age creation & mount without compression:
mkfs.erofs =C2= =A0enwik8_nocomp.erofs.img enwik8/
mkfs.erofs 1.0
=C2=A0 =C2=A0 =C2= =A0 =C2=A0 c_version: =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 [ =C2=A0 =C2=A0 1.= 0]
=C2=A0 =C2=A0 =C2=A0 =C2=A0 c_dbg_lvl: =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 [ =C2=A0 =C2=A0 =C2=A0 0]
=C2=A0 =C2=A0 =C2=A0 =C2=A0 c_dry_run: = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 [ =C2=A0 =C2=A0 =C2=A0 0]

=
mount enwik8_nocomp.erofs.img /mnt/enwik8_nocomp/ -t erofs -o lo= op

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/hs= iangkao/erofs-utils

--
Thanks,
Saumya Prak= ash Panda

--000000000000c05781059c8cc695--