From patchwork Sat Dec 20 23:23:45 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 999 Return-Path: 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=1766273070; bh=Fcyfbit7Q6FRTiZeTz3nx5MIsNTXMEsqxA1IA5MATgE=; 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=lmDo8jpsC6hgkbdgSaKRmtuDH3TuBvz2VjFc+TC4f57YuYIBAa2X2ppCEbhGDgsZI oQETD7KnahUpanwdnRaGWCsYQ/OQrSkssOpeUhJIbz4trXQJ90igu/lQqNJ47/330Q HkvaOYVauUmDijR9zWmBrDeBRNfSP2sbOYuZDmREgWMUoHpXH2wXxQcOnk9Rx2wU/B LBNwl1Y25kdU9VyI382R0yIgA+3s0a8tUz1LiubygcQ8sBzTTQnmIsrYTCIpPvOi5Y ht8XXDWbd5J4XLQPWrJKCZJTVhsO8X0UVGeXLAfNEiKaxxzKXjD+yvkhLox3lCAU8U 8TH4nHjjJo8Tg== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 4E68464C5B for ; Sat, 20 Dec 2025 16:24:30 -0700 (MST) 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 d7nE-cdv-RTa for ; Sat, 20 Dec 2025 16:24:30 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1766273070; bh=Fcyfbit7Q6FRTiZeTz3nx5MIsNTXMEsqxA1IA5MATgE=; 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=lmDo8jpsC6hgkbdgSaKRmtuDH3TuBvz2VjFc+TC4f57YuYIBAa2X2ppCEbhGDgsZI oQETD7KnahUpanwdnRaGWCsYQ/OQrSkssOpeUhJIbz4trXQJ90igu/lQqNJ47/330Q HkvaOYVauUmDijR9zWmBrDeBRNfSP2sbOYuZDmREgWMUoHpXH2wXxQcOnk9Rx2wU/B LBNwl1Y25kdU9VyI382R0yIgA+3s0a8tUz1LiubygcQ8sBzTTQnmIsrYTCIpPvOi5Y ht8XXDWbd5J4XLQPWrJKCZJTVhsO8X0UVGeXLAfNEiKaxxzKXjD+yvkhLox3lCAU8U 8TH4nHjjJo8Tg== Received: from mail.u-boot.org (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 3B76B64C45 for ; Sat, 20 Dec 2025 16:24:30 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1766273068; bh=LnW8yExYQ6cPvw5dvFgA30ikeIcPcSgIykx4Ts/B694=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=AzBNmg2Td/64cMnfwKw4nyfiquyR6WQmhymjTt8B0EY6+LPjQUURlUMAM2DfcxfZX fOmFy73HkZDMYaqfOws6dhMXJTB42F2LxEj3+pLiwb9bxcLIPhCZUDDDtnHLzkwuWw m5wkSLHpWWeqSTGmJCuc/4zwiLyizm+4PMkVXrXroJfAbjN8zNRZujq7U6XBFWNVKI XzkFFuoCdefO7rr5B3312UASV9nPCXpd4T8yKDpi4S4RspqJrCVT+WjAn1HP2Dgdff C16fW1wUH6JP1Rmy2Db26I2jXfhHAycc7mz2AFbY4SaRP9HpigeD/mCS/Xr6KuTlrP iz+IMBVgYirNw== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 6D9F364C29; Sat, 20 Dec 2025 16:24:28 -0700 (MST) 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 dtBJTlrIyFxq; Sat, 20 Dec 2025 16:24:28 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1766273064; bh=i1uxkkiRe1cFBusfSmauXX1rfkkw/vbKlQXaDXfg13g=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=emPUHfi8EGXpjoTK/wAT82sbx2luZrsCOO021UHfYUj/ZCXhfk/ZcvbEX5sXn0nQ8 D3rbKSApCslORiTTQkZs6Em8Vhf9flj7yTN56ilUyw/nQW5yF4Ar96RsgVjb4XSQn8 DjSwYVr73+a3cFZ60y4931hkKkRMT3iRE8djadyf9PtXLvkgHbRGDLeu4Xy3GpVp2V linJjLNvOoCWdQl00wVqwF+E9ExY4m1QL1nr4fnDoUlXx1kmbvHNglQfvgX60ZZs3+ yG88SymljY0M14T1Zh+LP8y+Vyjb5aU/HOYzIwD42Kn481DfuZ1KZzmWEoe7/3Qj1D DxW8IlQ/1CuGw== Received: from u-boot.org (unknown [73.34.74.121]) by mail.u-boot.org (Postfix) with ESMTPSA id 1F67164C25; Sat, 20 Dec 2025 16:24:24 -0700 (MST) From: Simon Glass To: U-Boot Concept Date: Sat, 20 Dec 2025 16:23:45 -0700 Message-ID: <20251220232355.845414-6-sjg@u-boot.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20251220232355.845414-1-sjg@u-boot.org> References: <20251220232355.845414-1-sjg@u-boot.org> MIME-Version: 1.0 Message-ID-Hash: DMNIH2DQBWNCVX5EGKHNN5QRVQB5EFD5 X-Message-ID-Hash: DMNIH2DQBWNCVX5EGKHNN5QRVQB5EFD5 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 , "Claude Opus 4 . 5" X-Mailman-Version: 3.3.10 Precedence: list Subject: [Concept] [PATCH 05/10] ext4l: Add xattr_user.c and xattr_hurd.c List-Id: Discussion and patches related to U-Boot Concept Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: From: Simon Glass Add xattr_user.c and xattr_hurd.c to the ext4l build: - Update includes to use ext4_uboot.h - Add d_sb member to struct dentry - Add XATTR_HURD_PREFIX to linux/xattr.h Co-developed-by: Claude Opus 4.5 Signed-off-by: Simon Glass --- fs/ext4l/Makefile | 4 ++-- fs/ext4l/ext4_uboot.h | 1 + fs/ext4l/xattr_hurd.c | 1 + fs/ext4l/xattr_user.c | 2 +- include/linux/xattr.h | 3 +++ 5 files changed, 8 insertions(+), 3 deletions(-) diff --git a/fs/ext4l/Makefile b/fs/ext4l/Makefile index cfb1413ba30..4a8a94035b9 100644 --- a/fs/ext4l/Makefile +++ b/fs/ext4l/Makefile @@ -8,5 +8,5 @@ obj-y := interface.o stub.o obj-y += balloc.o bitmap.o block_validity.o ext4_jbd2.o extents.o \ extents_status.o hash.o ialloc.o \ indirect.o \ - xattr_trusted.o \ - orphan.o + xattr_hurd.o xattr_trusted.o \ + xattr_user.o orphan.o diff --git a/fs/ext4l/ext4_uboot.h b/fs/ext4l/ext4_uboot.h index 32b497deadc..1d0c58c4f38 100644 --- a/fs/ext4l/ext4_uboot.h +++ b/fs/ext4l/ext4_uboot.h @@ -526,6 +526,7 @@ struct qstr { struct dentry { struct qstr d_name; struct inode *d_inode; + struct super_block *d_sb; }; /* vm_fault_t - stub */ diff --git a/fs/ext4l/xattr_hurd.c b/fs/ext4l/xattr_hurd.c index 8a5842e4cd9..5ef4d058da1 100644 --- a/fs/ext4l/xattr_hurd.c +++ b/fs/ext4l/xattr_hurd.c @@ -9,6 +9,7 @@ #include #include +#include "ext4_uboot.h" #include "ext4.h" #include "xattr.h" diff --git a/fs/ext4l/xattr_user.c b/fs/ext4l/xattr_user.c index 4b70bf4e762..16370f6143d 100644 --- a/fs/ext4l/xattr_user.c +++ b/fs/ext4l/xattr_user.c @@ -7,7 +7,7 @@ */ #include -#include +#include "ext4_uboot.h" #include "ext4_jbd2.h" #include "ext4.h" #include "xattr.h" diff --git a/include/linux/xattr.h b/include/linux/xattr.h index f5dc7953a05..db1bf4d3ee6 100644 --- a/include/linux/xattr.h +++ b/include/linux/xattr.h @@ -27,6 +27,9 @@ #define XATTR_SYSTEM_PREFIX "system." #define XATTR_SYSTEM_PREFIX_LEN 7 +#define XATTR_HURD_PREFIX "gnu." +#define XATTR_HURD_PREFIX_LEN 4 + /* Maximum size of an xattr value */ #define XATTR_SIZE_MAX 65536