| Message ID | 20260403140523.1998228-15-sjg@u-boot.org |
|---|---|
| State | New |
| Headers |
Return-Path: <concept-bounces+u-boot-concept=u-boot.org@u-boot.org> X-Original-To: u-boot-concept@u-boot.org Delivered-To: u-boot-concept@u-boot.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1775225175; bh=/f1bxRRo5XYJPD8SpCY9bp/jzCstuZsng9lFr8r8N1U=; h=From:To:Date:In-Reply-To:References:CC:Subject:List-Id: List-Archive:List-Help:List-Owner:List-Post:List-Subscribe: List-Unsubscribe:From; b=rVQ7zuVXa8iE3Bl9XtGuIqHNehzwRArUcHeNLedL842EdqG+u8jBmWwZO+VIaP+2i 3cq5vMtznfartqPPrlVy6QRpXuTgoRY8DsPtJKS4qk/TpCwStn8djq2W4yxD3l/HiJ yFOOu7HYaYIXR+7baV+ClMFjNGnvAfa86G8+igBxQPGIV/N9lnue+6F64mbkHJs/Bc UcJVHgKqmZIQdViSDGPgcXtQxyPMbTG+Dp+x5tH1tcKBz+sBewoot6Rcj+9E3Hq+zp 5rc0rONmtb6NiRtJAvAUMxWfOdGTMR6BchkroxaTSqx8uzgI0s66KMi0oomZA2xj1P diWVTkqiq2TiA== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 4FEA86A37B for <u-boot-concept@u-boot.org>; Fri, 3 Apr 2026 08:06:15 -0600 (MDT) X-Virus-Scanned: Debian amavis at Received: from mail.u-boot.org ([127.0.0.1]) by localhost (mail.u-boot.org [127.0.0.1]) (amavis, port 10024) with ESMTP id Rio-migHqfV6 for <u-boot-concept@u-boot.org>; Fri, 3 Apr 2026 08:06:15 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1775225171; bh=/f1bxRRo5XYJPD8SpCY9bp/jzCstuZsng9lFr8r8N1U=; h=From:To:Date:In-Reply-To:References:CC:Subject:List-Id: List-Archive:List-Help:List-Owner:List-Post:List-Subscribe: List-Unsubscribe:From; b=JEHHM+O3/YKGlJZiBsUABW+VC2K25EWyqnXiiF8L+YJ4bB15Frhm7YHUIeQUdll+7 Gbbv3bwBJUaf2EA/w5btavutRw8SEXodmKUM/TPr0zNacvOGjk3y4NRTVuopt89tAm RbYR319F7k212RVw0UsMdw+KzNuO0R+56Y5zI0/uOnk1cKkKZk8E90FjFk6kutEXBm CVnl++rlXKMiESfJWVj7WAjoA80HH6x0acWZEe4G7holL7YgCncFz0mK65w+dWeaEG j1hoXIrjhT8TU42sGECgq6uZIyjf7760nQQ2GGGuu4tRsyEDHLRvvVJwYkuZXjPZ58 edlph8rHNIBuA== Received: from mail.u-boot.org (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id D47AE6A370 for <u-boot-concept@u-boot.org>; Fri, 3 Apr 2026 08:06:11 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1775225169; bh=6ZFxwFcxpFqeWuxlkNU+5BatKLr4ENotXE7po22Fz2Q=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=rLvWxiaF7pEYWCVdMs+dvUWanFvWCNDsnEIELs7Jk1+z6WIVjqLUEM8BT/QKcLy+C CTxWFwayzX+b/anIQBY/rzhsbJjGaU3xqGb66w7A7ZGHDzEw+jSC/Yka4LjT/fYyGO cJ42hEwNprflArG2dv2eclmivmHEZ4Z0TsoRxsHtXPO78488xi6ZMASf+J/1SpDymq OIAuPiPy1x6lM2c6MEi7GeESF18TB0dhlZYd9KS5kzR4AOZH6gAoEcdabcGXn2J97d sSoquEyu9oQ76mw+b91EITCUKHYPUsCohffbTFGhDfs5/JQGWFAt/MtZ3kFCOCQFtU UhpjI6ACvxRlw== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 51A516A351; Fri, 3 Apr 2026 08:06:09 -0600 (MDT) X-Virus-Scanned: Debian amavis at Received: from mail.u-boot.org ([127.0.0.1]) by localhost (mail.u-boot.org [127.0.0.1]) (amavis, port 10026) with ESMTP id mfqhSTN4gGpn; Fri, 3 Apr 2026 08:06:09 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1775225165; bh=mUcuZ8lHVN1u3G0BLCDLawoQG5NxEbUjbzyng/HzL9o=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=JG5bQhZchUoO2BghtyyPu5RH4Kaz7bJludAA2vOh3EgQ12FVA1FaJI6vn0moskDob xTTQ9buvPe/RNFAT2TrJJaC5yN/NXBfWt9xaJoC/WM9AqXwXpGTzlGloFBl8uZ6Z0f 6Vov1MvVBswUfNUKMumndsaZz80zCmPfCBIT6e7Bec1MFOsChvG3VgFwb6Zk9U7Dtl N0sWMqP4730tGHZW6gfsADzhC9HGDjLS1eSULb12YTAuhDyy95JIeKcR/YnLZPpQ+6 dKhyCZjF3IP/B/2s0Na+QVWyb934DBKSg0YCYWG+16xNKkZWRDnKOBNazNKIDFUuLA 77lim/RlEzbyQ== Received: from u-boot.org (unknown [73.34.74.121]) by mail.u-boot.org (Postfix) with ESMTPSA id 6C7B26A34F; Fri, 3 Apr 2026 08:06:05 -0600 (MDT) From: Simon Glass <sjg@u-boot.org> To: U-Boot Concept <concept@u-boot.org> Date: Fri, 3 Apr 2026 08:04:36 -0600 Message-ID: <20260403140523.1998228-15-sjg@u-boot.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20260403140523.1998228-1-sjg@u-boot.org> References: <20260403140523.1998228-1-sjg@u-boot.org> MIME-Version: 1.0 Message-ID-Hash: 4K6WFE35QG5RND2WS3KQBFFP7BVLC3CO X-Message-ID-Hash: 4K6WFE35QG5RND2WS3KQBFFP7BVLC3CO X-MailFrom: sjg@u-boot.org X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; loop; banned-address; emergency; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header CC: Simon Glass <sjg@chromium.org> X-Mailman-Version: 3.3.10 Precedence: list Subject: [Concept] [PATCH 14/34] vfs: Add block-device fields to struct fs_plat List-Id: Discussion and patches related to U-Boot Concept <concept.u-boot.org> Archived-At: <https://lists.u-boot.org/archives/list/concept@u-boot.org/message/4K6WFE35QG5RND2WS3KQBFFP7BVLC3CO/> List-Archive: <https://lists.u-boot.org/archives/list/concept@u-boot.org/> List-Help: <mailto:concept-request@u-boot.org?subject=help> List-Owner: <mailto:concept-owner@u-boot.org> List-Post: <mailto:concept@u-boot.org> List-Subscribe: <mailto:concept-join@u-boot.org> List-Unsubscribe: <mailto:concept-leave@u-boot.org> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit |
| Series |
Add a virtual filesystem (VFS) layer to U-Boot
|
|
Commit Message
Simon Glass
April 3, 2026, 2:04 p.m. UTC
From: Simon Glass <sjg@chromium.org> Add block device descriptor and partition information to struct fs_plat so that block-backed filesystems (ext4, FAT) can access the underlying storage. Non-block filesystems like the sandbox hostfs leave the descriptor as NULL. Signed-off-by: Simon Glass <sjg@chromium.org> --- include/fs.h | 9 +++++++++ 1 file changed, 9 insertions(+)
diff --git a/include/fs.h b/include/fs.h index 6696b9e26c7..c6b6323be3e 100644 --- a/include/fs.h +++ b/include/fs.h @@ -12,6 +12,7 @@ #define __FS_H #include <fs_common.h> +#include <part.h> struct udevice; @@ -23,10 +24,18 @@ enum { /** * struct fs_plat - Filesystem information * + * For block-device-backed filesystems, @desc and @part identify the + * underlying storage. Non-block filesystems (hostfs, rootfs) leave + * @desc as NULL. + * * @name: Name of the filesystem, or empty if not available + * @desc: Block device descriptor, or NULL if not block-backed + * @part: Partition information (valid only when @desc is non-NULL) */ struct fs_plat { char name[FS_MAX_NAME_LEN]; + struct blk_desc *desc; + struct disk_partition part; }; /**