Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 7E6EAC282EC for ; Sat, 8 Mar 2025 20:16:17 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 6B8A580C93; Sat, 8 Mar 2025 21:16:15 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=denx.de Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1741464975; bh=ownX1Zl+o9UxMsZ9XdtRHYp6H13Xxvr9JajLAUTx48k=; h=From:To:Cc:Subject:Date:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From; b=jVlDeLiHjDYej/R9fdYnaiMQsGnPwsup7if1GmX0fvq4Rm1b/46IFyFdEMhTlln2f UmcHCx5rE6KL1mu3EIZ7lOaq2Lmr0eKq/6Ub0anKkgZAhQxEnoWaakDZzJPLfAOBLk JSWSu2vgyh+vq0q6Q3RUmouZP90IMqIAJx1VtlWdL0xl3wShr5vsy2MfSD7lWr6A2m So+nOiK3aUMxYti8401BnMyiJrMMr94Bxz+C4lN1lQwnvVO2kO49XjWeQGUkYPJ/Xv T3J5Xj+gDERrrBN+h+uvyHcEwdlDP93q47cK0WFow+bjK+YA3bKFmZz2pHpfUDXeZH mQa7Zqzd026UA== Received: by phobos.denx.de (Postfix, from userid 109) id 3486980F70; Sat, 8 Mar 2025 21:16:14 +0100 (CET) Received: from mx.denx.de (mx.denx.de [89.58.32.78]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id EAF26803CC for ; Sat, 8 Mar 2025 21:16:10 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=denx.de Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=marex@denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=denx.de header.i=@denx.de header.b="AYFQlP1H"; dkim-atps=neutral Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id 62B36103D0937; Sat, 8 Mar 2025 21:16:06 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=mx-20241105; t=1741464969; h=from:subject:date:message-id:to:cc:mime-version: content-transfer-encoding; bh=ownX1Zl+o9UxMsZ9XdtRHYp6H13Xxvr9JajLAUTx48k=; b=AYFQlP1HygUROWxlx42YDWOf3GM57N2J5gy4YTYrrrdOrFbzkB3h9KSigI3lgNxtipUPwX aH6FxzeqgSlTfiwuFoS2NTwgSyE1bRdaDIuOCwbiAC/aDe5X7KdkLVUFPrJjAEM4+UXaku fXJZmIJzpux5bfUVLTtSKsG7U6yyCu0A83lI64nJoa/ua0wgdOePvx50C5A+Rx0tptPU4P A4hR2MMZs9dYW0atvzDW0JeNU1qydcBqA3smSZ3RKMJ8fYgdjq0J0wlseDidg0qmvdS4tI XynH1ak8aMTazp/h2Q+ztJu58iLvtLwUoSrjSMNrzakNZttyogNCcn13VzCH2g== From: Marek Vasut To: u-boot@lists.denx.de Cc: Marek Vasut , Baruch Siach , Francesco Dolcini , Heinrich Schuchardt , Hiago De Franco , Ilias Apalodimas , Nam Cao , Simon Glass , Sughosh Ganu , Tom Rini Subject: [PATCH 00/12] fs: exfat: Add exfat port based on exfat-fuse Date: Sat, 8 Mar 2025 21:12:04 +0100 Message-ID: <20250308201533.1315951-1-marex@denx.de> X-Mailer: git-send-email 2.47.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Last-TLS-Session-Version: TLSv1.3 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.8 at phobos.denx.de X-Virus-Status: Clean Import exfat-fuse libexfat, add U-Boot filesystem layer porting glue code and wire exfat support into generic filesystem support code. This adds exfat support to U-Boot. Fill in generic filesystem interface for mkdir and rm commands. Make filesystem tests test the generic interface as well as exfat, to make sure this code does not fall apart. [1] https://github.com/relan/exfat 0b41c6d3560d ("CI: bump FreeBSD to 13.1.") Marek Vasut (12): cmd: fs: Add generic mkdir implementation cmd: fs: Add generic rm implementation test_fs: Allow testing FS_GENERIC linux: Add generic struct stat {} fs: Add generic fs_devread() implementation fs: exfat: Import libexfat from fuse-exfat fs: exfat: Add U-Boot porting layer fs: exfat: Fix conversion overflow errors fs: exfat: Demote filesystem detection failure message to debug() configs: sandbox: Enable exfat support pytest: requirements.txt: Include setuptools test_fs: Add exfat tests cmd/fs.c | 28 + configs/sandbox64_defconfig | 1 + configs/sandbox_defconfig | 1 + fs/Kconfig | 2 + fs/Makefile | 1 + fs/exfat/Kconfig | 4 + fs/exfat/Makefile | 13 + fs/exfat/byteorder.h | 68 ++ fs/exfat/cluster.c | 496 ++++++++++ fs/exfat/compiler.h | 69 ++ fs/exfat/exfat.h | 259 ++++++ fs/exfat/exfatfs.h | 200 +++++ fs/exfat/io.c | 1000 +++++++++++++++++++++ fs/exfat/lookup.c | 225 +++++ fs/exfat/mount.c | 380 ++++++++ fs/exfat/node.c | 1243 ++++++++++++++++++++++++++ fs/exfat/platform.h | 75 ++ fs/exfat/repair.c | 115 +++ fs/exfat/time.c | 175 ++++ fs/exfat/utf.c | 254 ++++++ fs/exfat/utils.c | 192 ++++ fs/fs.c | 22 + fs/fs_internal.c | 102 +++ include/exfat.h | 24 + include/fs.h | 3 +- include/fs_internal.h | 2 + include/linux/stat.h | 45 +- test/py/requirements.txt | 2 + test/py/tests/fs_helper.py | 8 +- test/py/tests/test_fs/conftest.py | 44 +- test/py/tests/test_fs/test_basic.py | 71 +- test/py/tests/test_fs/test_ext.py | 176 ++-- test/py/tests/test_fs/test_mkdir.py | 42 +- test/py/tests/test_fs/test_unlink.py | 38 +- 34 files changed, 5199 insertions(+), 181 deletions(-) create mode 100644 fs/exfat/Kconfig create mode 100644 fs/exfat/Makefile create mode 100644 fs/exfat/byteorder.h create mode 100644 fs/exfat/cluster.c create mode 100644 fs/exfat/compiler.h create mode 100644 fs/exfat/exfat.h create mode 100644 fs/exfat/exfatfs.h create mode 100644 fs/exfat/io.c create mode 100644 fs/exfat/lookup.c create mode 100644 fs/exfat/mount.c create mode 100644 fs/exfat/node.c create mode 100644 fs/exfat/platform.h create mode 100644 fs/exfat/repair.c create mode 100644 fs/exfat/time.c create mode 100644 fs/exfat/utf.c create mode 100644 fs/exfat/utils.c create mode 100644 include/exfat.h --- Cc: Baruch Siach Cc: Francesco Dolcini Cc: Heinrich Schuchardt Cc: Hiago De Franco Cc: Ilias Apalodimas Cc: Nam Cao Cc: Simon Glass Cc: Sughosh Ganu Cc: Tom Rini Cc: u-boot@lists.denx.de -- 2.47.2