From patchwork Tue Feb 8 14:05:08 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jianan Huang X-Patchwork-Id: 1589859 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: bilbo.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20210112 header.b=q3Zh3NUY; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=85.214.62.61; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4JtPtJ0mCFz9sFN for ; Wed, 9 Feb 2022 01:05:44 +1100 (AEDT) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id A0E9E83CAF; Tue, 8 Feb 2022 15:05:38 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="q3Zh3NUY"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id A26DA830AF; Tue, 8 Feb 2022 15:05:36 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-pf1-x432.google.com (mail-pf1-x432.google.com [IPv6:2607:f8b0:4864:20::432]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 93BFA802D6 for ; Tue, 8 Feb 2022 15:05:29 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=jnhuang95@gmail.com Received: by mail-pf1-x432.google.com with SMTP id r19so3276425pfh.6 for ; Tue, 08 Feb 2022 06:05:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=WCRwThXrh6JkUJPqLq+Y106D2oS6z+dR+PsrJSOnpRM=; b=q3Zh3NUYU75JpFVBJ3UscJyvzWZ7Zza27LnAuAS+YgNos8fOb9YALJD67XS4sApbhg LEupbNpgPtiG+LayJPSFVlXpJoyTbiwe+hwpTf89scRhnc/tJmLDP6oeq1uu1pYrwGrS oJqjoWr0zkS2qg3q3YDcOcXV5dDQNZmRHzo6/WBQorQL7B3nu+aNpiNbgmNpo4zvLBTz bRxBtP6turj+azNo+nTCHjr9WblNkYFm8puAzu8STx5vXKljx0rz2JVmZJ6OGAb2AzPc JQoM8JrlLxD31dJqJwTqRYlY+8ueAAaHiGb5rzdDP5dZxiZli2uy9u7hwsqVdcIuFa3a Aq/g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=WCRwThXrh6JkUJPqLq+Y106D2oS6z+dR+PsrJSOnpRM=; b=ahqPCL8Dmc/4QCJ8mVEnEmWawhDX3QdOfWz3KOBJDmsipdtIBM4tXb8Omwrl3I5MAy rC5hWxnOElt21xfwiWPkLr/GMZ4taoh7Z5dWMcbPQI6an8e63hdKDksc2v/ri62kciKX HaBtUwirxKVzDhMnaGJAV6IytENYmK7aTLB0K8TzCFJeG8l1MNULuu97zheEaDK2PbZw B+wYl7A6OLO650gYfMNeKL2CmPX6PAtwxs9sbwAVumMBwdlo2c04uIJmSUh9+pVND4Om JKEp9VtIQVfL3IHqsR3NdfVuO6OvI4G5sMIrvda7m7oLb/Vv27XUjDjgSnPKrVq9aTX6 hvrA== X-Gm-Message-State: AOAM531dplL2TV1j7zibVQ/hYDGlEP4gubIwG0RQauwmCa3Es6ZeMbDZ laez4KMpPc0zaxEBscdUHFmmzo6o9Ls= X-Google-Smtp-Source: ABdhPJzATT7dpIoT4sjXGoYZ3TgnkhCNYeyOmJOB5y+0H3skJXl6sp+3PWSAq9LWPkolDGNRSCliqw== X-Received: by 2002:a65:6d89:: with SMTP id bc9mr3630446pgb.260.1644329127466; Tue, 08 Feb 2022 06:05:27 -0800 (PST) Received: from hjn-PC.localdomain (li1080-207.members.linode.com. [45.33.61.207]) by smtp.gmail.com with ESMTPSA id pj4sm3012006pjb.43.2022.02.08.06.05.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Feb 2022 06:05:27 -0800 (PST) From: Huang Jianan To: u-boot@lists.denx.de, trini@konsulko.com Cc: linux-erofs@lists.ozlabs.org, xiang@kernel.org, Huang Jianan Subject: [PATCH v3 0/5] fs/erofs: new filesystem Date: Tue, 8 Feb 2022 22:05:08 +0800 Message-Id: <20220208140513.30570-1-jnhuang95@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210823123646.9765-1-jnhuang95@gmail.com> References: <20210823123646.9765-1-jnhuang95@gmail.com> MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.5 at phobos.denx.de X-Virus-Status: Clean Changes since v2: - sync up with erofs-utils 1.4; - update lib/lz4 to v1.8.3; - add test for filesystem functions; Changes since v1: - fix the inconsistency between From and SoB; - add missing license header; Huang Jianan (5): fs/erofs: add erofs filesystem support lib/lz4: update LZ4 decompressor module fs/erofs: add lz4 decompression support fs/erofs: add filesystem commands test/py: Add tests for the erofs MAINTAINERS | 9 + cmd/Kconfig | 6 + cmd/Makefile | 1 + cmd/erofs.c | 42 ++ configs/sandbox_defconfig | 1 + fs/Kconfig | 2 + fs/Makefile | 1 + fs/erofs/Kconfig | 21 + fs/erofs/Makefile | 9 + fs/erofs/data.c | 311 +++++++++++++ fs/erofs/decompress.c | 78 ++++ fs/erofs/decompress.h | 24 + fs/erofs/erofs_fs.h | 436 ++++++++++++++++++ fs/erofs/fs.c | 267 +++++++++++ fs/erofs/internal.h | 313 +++++++++++++ fs/erofs/namei.c | 252 +++++++++++ fs/erofs/super.c | 105 +++++ fs/erofs/zmap.c | 601 ++++++++++++++++++++++++ fs/fs.c | 22 + include/erofs.h | 19 + include/fs.h | 1 + include/u-boot/lz4.h | 49 ++ lib/lz4.c | 679 ++++++++++++++++++++-------- lib/lz4_wrapper.c | 23 +- test/py/tests/test_fs/test_erofs.py | 211 +++++++++ 25 files changed, 3268 insertions(+), 215 deletions(-) create mode 100644 cmd/erofs.c create mode 100644 fs/erofs/Kconfig create mode 100644 fs/erofs/Makefile create mode 100644 fs/erofs/data.c create mode 100644 fs/erofs/decompress.c create mode 100644 fs/erofs/decompress.h create mode 100644 fs/erofs/erofs_fs.h create mode 100644 fs/erofs/fs.c create mode 100644 fs/erofs/internal.h create mode 100644 fs/erofs/namei.c create mode 100644 fs/erofs/super.c create mode 100644 fs/erofs/zmap.c create mode 100644 include/erofs.h create mode 100644 test/py/tests/test_fs/test_erofs.py