From nobody Sat Nov 23 12:39:03 2024 Received: from fout-b7-smtp.messagingengine.com (fout-b7-smtp.messagingengine.com [202.12.124.150]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 05B80202650; Wed, 13 Nov 2024 17:55:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=202.12.124.150 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1731520533; cv=none; b=NxQRUSX3kfraYsetyDDddkUL7JUQaWQ83XtFd9uvjL06kOtTyQ+lWH6+B4sZR6sh3OECh7zINwGQHevXd4WjpHiUZJadojK9xlNoDCuUqalX1Qys7vIGnCuizmqyRbtVe/q5J+3H7UmbeiwfYDvVu02v3ppE2BgpTlut+mjLqc0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1731520533; c=relaxed/simple; bh=SLg3Nvd2Ng6Z3O2BakSqNJpdSY8Mjm5+k/iUlOERlV0=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=KD4XaRTMIge8yYq8F3QJ0yy+ftvXq3Wpv1cgec72/wd1vTni/PkPhWIEMrAdWXp8bdGl3p22tqR69Xfh+6lkoE1ZkTB5/DBgmvKDI2d+GW8pNdMsCWbKl0Obr57x5id/x9llMU0LUwaQPmgBZm5JW/Tht0Fc4sV/YISZsY5IE2k= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=e43.eu; spf=pass smtp.mailfrom=e43.eu; dkim=pass (2048-bit key) header.d=e43.eu header.i=@e43.eu header.b=ja2Ublu5; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b=HVMJRe7b; arc=none smtp.client-ip=202.12.124.150 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=e43.eu Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=e43.eu Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=e43.eu header.i=@e43.eu header.b="ja2Ublu5"; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b="HVMJRe7b" Received: from phl-compute-08.internal (phl-compute-08.phl.internal [10.202.2.48]) by mailfout.stl.internal (Postfix) with ESMTP id C8207114009D; Wed, 13 Nov 2024 12:55:29 -0500 (EST) Received: from phl-mailfrontend-01 ([10.202.2.162]) by phl-compute-08.internal (MEProxy); Wed, 13 Nov 2024 12:55:30 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=e43.eu; h=cc:cc :content-transfer-encoding:content-type:content-type:date:date :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fm2; t=1731520529; x=1731606929; bh=JLHWSuoD9LDVViaWJnWQUHzrViCI5wNYkPdZg2ABbyQ=; b= ja2Ublu5wGcgzQYXqoBkO591VZ12L67g+RR6TBTcouTpjWU1lWSz48zavD7BnJU2 fmYGfMjpMhJAybRD3nIIS0YJUN2UPefBCSmkoaKZyBXMKckgEter9NsrL01bj1Gi di9OSOP48/H68DxnXe9bVxRzKjOgdDD/vjpC99lMcASUGEX5vF6zFh0lAdexENQ+ oq61qmWUX2FshXkkvvzoAb0RtretwbP8XzBC8jG5cGdFfIEihkL7pNacBEoqGhgd JXp8a1vxrAJtG/o1Y1QR/qLuAorSsPVM6iiumoT95zmTMBlGSLmaY7hONBhK5CKw HudXBJ9lkVigAmlK4xH2JQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t=1731520529; x= 1731606929; bh=JLHWSuoD9LDVViaWJnWQUHzrViCI5wNYkPdZg2ABbyQ=; b=H VMJRe7bbVq6IHTGhIoes/TG+TZCqa4zgIzlbs7ixvFvw6VVdYEml52FtCc2YnZCC 7XxCzDp8p7OiNWUXqd+/aHvEwcwM1kMHAyUlzRrICtIYqEs0cSMbrsyGd9wOVTOk 2joW6mfZq5d2H9vkm6Dtf1KGToyngu8xu8w5jYAQx8WA4SRdeXZUeW+uY72W+PnS tImZilyIkwpuAqPfT3oioZSqmTszTjSLS3Mo40dLaG1ag8AGEhrILB2g9EWwEFSL DEp71oajH5j25dg8XZTCKc2gY8A9clnlvK9yQOQj8Gja8YwrkNUSlmj+bG6GirHE ubRjLbrr5DTLsydHuUquA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefuddrvddtgddutdehucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggvpdfu rfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnh htshculddquddttddmnecujfgurhephfffufggtgfgkfhfjgfvvefosehtjeertdertdej necuhfhrohhmpefgrhhinhcuufhhvghphhgvrhguuceovghrihhnrdhshhgvphhhvghrug esvgegfedrvghuqeenucggtffrrghtthgvrhhnpeegvdffgedugfeiveeifffggefhvddu uedvkefgvdduueeuheffgffftddtffeuveenucevlhhushhtvghrufhiiigvpedtnecurf grrhgrmhepmhgrihhlfhhrohhmpegvrhhinhdrshhhvghphhgvrhgusegvgeefrdgvuhdp nhgspghrtghpthhtohepuddtpdhmohguvgepshhmthhpohhuthdprhgtphhtthhopegrmh hirhejfehilhesghhmrghilhdrtghomhdprhgtphhtthhopehlihhnuhigqdhkvghrnhgv lhesvhhgvghrrdhkvghrnhgvlhdrohhrghdprhgtphhtthhopehjlhgrhihtohhnsehkvg hrnhgvlhdrohhrghdprhgtphhtthhopegthhhutghkrdhlvghvvghrsehorhgrtghlvgdr tghomhdprhgtphhtthhopehlihhnuhigqdhfshguvghvvghlsehvghgvrhdrkhgvrhhnvg hlrdhorhhgpdhrtghpthhtohepvhhirhhoseiivghnihhvrdhlihhnuhigrdhorhhgrdhu khdprhgtphhtthhopegvrhhinhdrshhhvghphhgvrhgusegvgeefrdgvuhdprhgtphhtth hopehlihhnuhigqdhnfhhssehvghgvrhdrkhgvrhhnvghlrdhorhhgpdhrtghpthhtohep jhgrtghksehsuhhsvgdrtgii X-ME-Proxy: Feedback-ID: i313944f9:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 13 Nov 2024 12:55:28 -0500 (EST) From: Erin Shepherd Date: Wed, 13 Nov 2024 17:55:23 +0000 Subject: [PATCH v2 1/3] pseudofs: add support for export_ops Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20241113-pidfs_fh-v2-1-9a4d28155a37@e43.eu> References: <20241113-pidfs_fh-v2-0-9a4d28155a37@e43.eu> In-Reply-To: <20241113-pidfs_fh-v2-0-9a4d28155a37@e43.eu> To: Christian Brauner , Alexander Viro , Jan Kara , Chuck Lever Cc: linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, Jeff Layton , Amir Goldstein , linux-nfs@vger.kernel.org, Erin Shepherd X-Mailer: b4 0.14.2 Pseudo-filesystems might reasonably wish to implement the export ops (particularly for name_to_handle_at/open_by_handle_at); plumb this through pseudo_fs_context Reviewed-by: Amir Goldstein Signed-off-by: Erin Shepherd --- fs/libfs.c | 1 + include/linux/pseudo_fs.h | 1 + 2 files changed, 2 insertions(+) diff --git a/fs/libfs.c b/fs/libfs.c index 46966fd8bcf9f042e85d0b66134e59fbef83abfd..698a2ddfd0cb94a8927d1d8a3bb= 3b3226d6d5476 100644 --- a/fs/libfs.c +++ b/fs/libfs.c @@ -669,6 +669,7 @@ static int pseudo_fs_fill_super(struct super_block *s, = struct fs_context *fc) s->s_blocksize_bits =3D PAGE_SHIFT; s->s_magic =3D ctx->magic; s->s_op =3D ctx->ops ?: &simple_super_operations; + s->s_export_op =3D ctx->eops; s->s_xattr =3D ctx->xattr; s->s_time_gran =3D 1; root =3D new_inode(s); diff --git a/include/linux/pseudo_fs.h b/include/linux/pseudo_fs.h index 730f77381d55f1816ef14adf7dd2cf1d62bb912c..2503f7625d65e7b1fbe9e64d5ab= f06cd8f017b5f 100644 --- a/include/linux/pseudo_fs.h +++ b/include/linux/pseudo_fs.h @@ -5,6 +5,7 @@ =20 struct pseudo_fs_context { const struct super_operations *ops; + const struct export_operations *eops; const struct xattr_handler * const *xattr; const struct dentry_operations *dops; unsigned long magic; --=20 2.46.1