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=-17.2 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS, UNPARSEABLE_RELAY,URIBL_BLOCKED,USER_AGENT_SANE_1 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 319FCC433FE for ; Sat, 5 Dec 2020 08:43:06 +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 7B14522D72 for ; Sat, 5 Dec 2020 08:43:05 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 7B14522D72 Authentication-Results: mail.kernel.org; dmarc=pass (p=none dis=none) header.from=lists.ozlabs.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=linux-erofs-bounces+linux-erofs=archiver.kernel.org@lists.ozlabs.org Received: from bilbo.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 4Cp34R5y7czDqk9 for ; Sat, 5 Dec 2020 19:43:03 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=lists.ozlabs.org; s=201707; t=1607157783; bh=VCflHxqumDarff5cOu17HrHTEBKQXkH80zoj9mDv1/Y=; h=Subject:To:References:Date:In-Reply-To:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc: From; b=OfRI4dUhioBXxuj1KMa7Jc6Tr4GNhKwDMv9/IbFx7pHLB257xId6qIZ3k8auFaPeT 48LjfGWV5DFDktfxFUiMWrfoFRu5ZUtReeBpa6AE2Ne245DlEysgzuMncBrwsN7JQx XKzRgdO5r8pz1mLbPTklWU2LSrScf6ZZYHnynXP5X7vIUYEqkr3RV7k45QPqmJslNS SQM9IUhAor45pLG79vOA01FMdEGV3OEzQjKLv0G6CWQ0MeBDpiDgE8Pvnk3a4MXau9 xpdwIjTOnDF72OkrHw/fafIuLDdDcQDv7R1NaS1LQTmxZa2NkYilN3Qb5fo1hOFBsI YLaX8EusvkZiA== Authentication-Results: lists.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=aliyun.com (client-ip=115.124.30.5; helo=out30-5.freemail.mail.aliyun.com; envelope-from=bluce.lee@aliyun.com; receiver=) Authentication-Results: lists.ozlabs.org; dmarc=pass (p=quarantine dis=none) header.from=aliyun.com Authentication-Results: lists.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=aliyun.com header.i=@aliyun.com header.a=rsa-sha256 header.s=s1024 header.b=pRNqantw; dkim-atps=neutral Received: from out30-5.freemail.mail.aliyun.com (out30-5.freemail.mail.aliyun.com [115.124.30.5]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 4Cp34J0Dg4zDqWH for ; Sat, 5 Dec 2020 19:42:53 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aliyun.com; s=s1024; t=1607157757; h=Subject:To:From:Message-ID:Date:MIME-Version:Content-Type; bh=TVRAmdClZJ5OKLvfzvEYnWvc+kaLXVg+jujx1dIU5aM=; b=pRNqantwLkIVU4szx28TGWtnWwrgsDwU7AFAwtodYF3PhwCRAzMB+O9PHpQjCmcLEFrBgpOcvbcphiHYM958gSyItcUk1gfAnFIQpoTu6G7QwMRT0GJfbL03ITZ/LCgxVYnfCqS+dOtJwVEyHS7lXUoElHlFlT8lmVmqfYUUE98= X-Alimail-AntiSpam: AC=CONTINUE; BC=0.1007826|-1; CH=green; DM=|CONTINUE|false|; DS=CONTINUE|ham_system_inform|0.113021-0.00746022-0.879519; FP=0|0|0|0|0|-1|-1|-1; HT=e01e04426; MF=bluce.lee@aliyun.com; NM=1; PH=DS; RN=3; RT=3; SR=0; TI=SMTPD_---0UHa1uGE_1607157756; Received: from 172.168.2.18(mailfrom:bluce.lee@aliyun.com fp:SMTPD_---0UHa1uGE_1607157756) by smtp.aliyun-inc.com(127.0.0.1); Sat, 05 Dec 2020 16:42:36 +0800 Subject: Re: [PATCH v4 3/3] erofs-utils: fuse: add compressed file support To: Gao Xiang , linux-erofs@lists.ozlabs.org References: <20201127114617.13055-4-hsiangkao@aol.com> <20201127122409.7035-1-hsiangkao@aol.com> Message-ID: <798ecfbd-e5a7-0688-0189-55b296c56e78@aliyun.com> Date: Sat, 5 Dec 2020 16:42:36 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.5.1 MIME-Version: 1.0 In-Reply-To: <20201127122409.7035-1-hsiangkao@aol.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit 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: , From: Li GuiFu via Linux-erofs Reply-To: Li GuiFu Cc: Guo Weichao Errors-To: linux-erofs-bounces+linux-erofs=archiver.kernel.org@lists.ozlabs.org Sender: "Linux-erofs" On 2020/11/27 20:24, Gao Xiang via Linux-erofs wrote: > From: Huang Jianan > > This patch adds a simple approach (~ 700 LOC) to EROFS fixed-sized > output decompression without inplace I/O or decompression inplace > so it's easy to be ported everywhere with less constraint. > > However, the on-disk compressed index parser (aka. zmap) is largely > kept in line with the kernel side, therefore new on-disk features > under development can be verified effectively first here. > > Signed-off-by: Huang Jianan > Signed-off-by: Guo Weichao > Signed-off-by: Gao Xiang > --- > changes since v3: > - fix build error without lz4 library. > > include/erofs/decompress.h | 35 ++++ > include/erofs/defs.h | 5 + > include/erofs/internal.h | 8 + > lib/Makefile.am | 2 +- > lib/data.c | 72 ++++++- > lib/decompress.c | 87 ++++++++ > lib/namei.c | 4 + > lib/zmap.c | 415 +++++++++++++++++++++++++++++++++++++ > 8 files changed, 626 insertions(+), 2 deletions(-) > create mode 100644 include/erofs/decompress.h > create mode 100644 lib/decompress.c > create mode 100644 lib/zmap.c > It looks good Reviewed-by: Li Guifu Tested-by: Li Guifu Thanks,