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 9D023C32771 for ; Wed, 22 Jan 2020 03:58:12 +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 3D2FC2071E for ; Wed, 22 Jan 2020 03:58:12 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="kCGlK9ex" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 3D2FC2071E 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 482WpV0m9WzDqFC for ; Wed, 22 Jan 2020 14:58:10 +1100 (AEDT) Authentication-Results: lists.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gmail.com (client-ip=2a00:1450:4864:20::235; helo=mail-lj1-x235.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=kCGlK9ex; dkim-atps=neutral Received: from mail-lj1-x235.google.com (mail-lj1-x235.google.com [IPv6:2a00:1450:4864:20::235]) (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 482WpN0RTfzDqQD for ; Wed, 22 Jan 2020 14:58:01 +1100 (AEDT) Received: by mail-lj1-x235.google.com with SMTP id m26so5132406ljc.13 for ; Tue, 21 Jan 2020 19:58:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=dyhDSSSW14MiAu4fZim9QCY7gS3qDefw0xYHH/nUSrg=; b=kCGlK9exH4JHJzUuGZ/PTXc9hUoduusen+8FS0k5bhPX5pVe71S5WgGKF+4AtsTWJj 6vNeAcYH2ATkNJ6WZ3o6w030OJvh9GSXkkKVkZssQ/+YOxx7VELDsWhdFbPrIb0dph+E znIAnpSQNjSkn/+tpf0xM4sHSNP9EOHgot/1mbHtbgDIOVM4v1yt9yMvlrIEg4qceK4D N1baKz00t5uadQFFoiV7EzQFVfJqCuz8cRiWjKqXQ1LjEPnDFHa9lqy5p1MVpnHPZpbp fDARluVrpSdZimBuvk+RFy1PNMQS4ZwA9tjn0/RAyZqTuSx9r4+6z/YLH6W67njllSLb zOYg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=dyhDSSSW14MiAu4fZim9QCY7gS3qDefw0xYHH/nUSrg=; b=e3otjgDHi77/ACxDy8LWxtvZNX+w7Hv+YgF7PLGHbf+pgaUdl9qqDq332BCu58eV3x 7Y9eNEhT06HOdOOU+MVfhQSQ876RPpSofCDUwhyDCvTNDWjxxOH54uceCL4H5pwiqsPm gepm05n8ROhy/H1O1a3TNf/zSc+hRgJbyLWbLDA8Wm7JXDFxz2psuuZhed+MW54nWKBv LWdH5ZBwcYBknzdK39eWNuN4wKk9KvCMr7TO5AKAeqTcAM6igs8StFx7nR8e8ez4/5+u feUtBZhBapPwqlF65ColPshuz2ZPUuX+g4jfVV6J8VmuRodU54J1KSgiW58Zs1wOcrh4 d6Cg== X-Gm-Message-State: APjAAAVXjOHwxxehbCSZzkSZlHKl2ls7wrdNe7ggOOkFJXPEvhhMqZ0R 5cOoCLy9G/dywD2TNWbeAfR3cWuOyxfTml6JHIM= X-Google-Smtp-Source: APXvYqxh6L1hdWhFxu2ceoNwzfLrtoHdo3RY4xJ/9z+zvy1n50xOQ/RwZvIf2kucxOiXJgEthlAMVV+Dn9UvKCYDoVA= X-Received: by 2002:a2e:7a13:: with SMTP id v19mr18137006ljc.43.1579665477091; Tue, 21 Jan 2020 19:57:57 -0800 (PST) MIME-Version: 1.0 References: <20200120073859.GA32421@hsiangkao-HP-ZHAN-66-Pro-G1> In-Reply-To: <20200120073859.GA32421@hsiangkao-HP-ZHAN-66-Pro-G1> From: Saumya Panda Date: Wed, 22 Jan 2020 09:27:45 +0530 Message-ID: Subject: Re: Problem in EROFS: Not able to read the files after mount To: Gao Xiang Content-Type: multipart/alternative; boundary="000000000000a0466a059cb28771" 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: , Cc: linux-erofs@lists.ozlabs.org Errors-To: linux-erofs-bounces+linux-erofs=archiver.kernel.org@lists.ozlabs.org Sender: "Linux-erofs" --000000000000a0466a059cb28771 Content-Type: text/plain; charset="UTF-8" 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 On Mon, Jan 20, 2020 at 1:11 PM Gao Xiang wrote: > 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 > -- Thanks, Saumya Prakash Panda --000000000000a0466a059cb28771 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi Gao,
=C2=A0 Thanks for the info. After I= enabled the said configuration, I am now able to read the files after moun= t. 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 wh= ile making the Erofs image.

ls -l enwik*
-= rw-r--r-- 1 saumya users =C2=A061280256 Jan 21 03:22 enwik8.erofs.img
-r= w-r--r-- 1 saumya users =C2=A037355520 Jan 21 03:34 enwik8.sqsh
-rw-r--r= -- 1 saumya users 558133248 Jan 21 03:25 enwik9.erofs.img
-rw-r--r-- 1 s= aumya users 331481088 Jan 21 03:35 enwik9.sqsh

On Mon, Jan 20, 202= 0 at 1:11 PM Gao Xiang <hsiangkao@a= ol.com> wrote:
Hi Saumya,

On Mon, Jan 20, 2020 at 12:25:15PM +0530, Saumya Panda wrote:
> 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 compression.
> But after I mount the erofs image, I am not able to read it (it is say= ing
> operation not permitted). Simple "ls" command is not working= . But if I
> create EROFS image without compression flag, then after mount I am abl= e 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=3Dy
CONFIG_EROFS_FS_CLUSTER_PAGE_LIMIT=3D1

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
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0c_version:=C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0[=C2=A0 =C2=A0 =C2=A01.0]
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0c_dbg_lvl:=C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0[=C2=A0 =C2=A0 =C2=A0 =C2=A00]
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0c_dry_run:=C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0[=C2=A0 =C2=A0 =C2=A0 =C2=A00]
> mount enwik8.erofs.img /mnt/enwik8/ -t erofs -o loop
>
> ls -l /mnt/enwik8/
> ls: cannot access '/mnt/enwik8/enwik8': Operation not supporte= d
> total 0
> -????????? ? ? ? ?=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 ? enwik8 >
> The problem seen for both lz4 & lz4hc.
>
> *Erofs image creation & mount without compression: *
> mkfs.erofs=C2=A0 enwik8_nocomp.erofs.img enwik8/
> mkfs.erofs 1.0
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0c_version:=C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0[=C2=A0 =C2=A0 =C2=A01.0]
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0c_dbg_lvl:=C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0[=C2=A0 =C2=A0 =C2=A0 =C2=A00]
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0c_dry_run:=C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0[=C2=A0 =C2=A0 =C2=A0 =C2=A00]
>
> 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


--
Thanks,
Saumya Prakash Panda

--000000000000a0466a059cb28771--