From patchwork Sat Feb 26 07:05:46 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jianan Huang X-Patchwork-Id: 1598066 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=p6dk6ET4; 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 4K5Hjs5GvLz9sG0 for ; Sat, 26 Feb 2022 18:06:09 +1100 (AEDT) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 4F06083A5F; Sat, 26 Feb 2022 08:06:03 +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="p6dk6ET4"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 41C488380F; Sat, 26 Feb 2022 08:06:01 +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-x42e.google.com (mail-pf1-x42e.google.com [IPv6:2607:f8b0:4864:20::42e]) (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 1B5E7837C9 for ; Sat, 26 Feb 2022 08:05:58 +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-x42e.google.com with SMTP id u16so6586403pfg.12 for ; Fri, 25 Feb 2022 23:05:58 -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:mime-version :content-transfer-encoding; bh=12pF2J7VBd40PUm9/P8/z1pEuEYwhjfpzTNllR1MSO8=; b=p6dk6ET4Fbcvyvu5WHqBCiTebJdb33LNQrnjkl53DesNTYAPqGHKKuUBqHQPh6yv6Y CqE+0q2WrjvLp4NdZchXp0xSEsYoX2Djza7UYLEdJungV53Y8+MIdpboPk90sBElzMCS Ow/yRNvR+l9tHq8GpTxEOpWR7ZQkzhRgtDIfDkHKanqXXYIWKkZOV237iCPGItuAWSit HhFG9RWleGj8w5W50hNNPEjSP7fPix7CsrrfrPY8j0tJ7X0fhgsBcAGg9hLGViX2k6mW pllY9wh/TXMoSHdBk/0ZCcqC9qCr83u2xOBBsK+duOLzKZIlr/ByvnWrB0py8OsYkILs WCTg== 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:mime-version :content-transfer-encoding; bh=12pF2J7VBd40PUm9/P8/z1pEuEYwhjfpzTNllR1MSO8=; b=2cF1rp9fMRcaMGxePQFykvP8fZPv8IPcFVbdc7ZBsbvnEc2Sh98ZZjNDxUZfxo/HHi /CMi16+4ulgzbot5bq/lhRxunhfVIB7W1kDH0NRhZB6WRr4Vh1Tti9KI4rDE9WKgwjrP EDEFWsk7TcD8DiaBbo4haJb+cOyp2Gnck1kFnFOvG6lpRQ4rjfOgMgEIk/dI1TTwng2+ kaXuRLxHrhB5oEzEPkUZJnpR8GaP5X5J6+a/MkVM82FthyQq/pNEtiUaxf9L+zmbZfVf zA+Tx+wAlToMJYZvsZfYZQuBmr9J2JmG60nadfRC9mYpftNBC9a55MCoN7bUiPnZYd/u dDdg== X-Gm-Message-State: AOAM5301t07Y/2iKY9NFpup319hCzApml/YmlE+o1fPIBSoxES4rVc3B nL4GpjbhaUIqJ/Gr1saPT02Eq/o4qIAbMA== X-Google-Smtp-Source: ABdhPJyunwZkIIamynu+s2SqwmhCJLv7G/YpTBi0/PTU1Jj+zmg4jqVacwWpT8GMUt5dhB8eXbnygg== X-Received: by 2002:a63:e718:0:b0:34b:8596:4a0d with SMTP id b24-20020a63e718000000b0034b85964a0dmr9107387pgi.327.1645859156105; Fri, 25 Feb 2022 23:05:56 -0800 (PST) Received: from hjn-PC.localdomain (li1080-207.members.linode.com. [45.33.61.207]) by smtp.gmail.com with ESMTPSA id e20-20020a17090ab39400b001bc4f9ad3cbsm11044489pjr.3.2022.02.25.23.05.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 25 Feb 2022 23:05:55 -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 v4 0/5] fs/erofs: new filesystem Date: Sat, 26 Feb 2022 15:05:46 +0800 Message-Id: <20220226070551.9833-1-jnhuang95@gmail.com> X-Mailer: git-send-email 2.25.1 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 v3: - update tools/docker/Dockerfile; 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 +++++++++ tools/docker/Dockerfile | 1 + 26 files changed, 3269 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