Received: by 2002:ab2:2994:0:b0:1ef:ca3e:3cd5 with SMTP id n20csp916650lqb; Fri, 15 Mar 2024 09:47:22 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWFU46PNKIS6SEGda+LbSkMEGXygqLZCFy70F2S9dirSW/myY0A3RPhtzi3D/SDkylvO3wj6y/2/goZd95rrutKMCu6GH16GaZxDJQRvA== X-Google-Smtp-Source: AGHT+IE6mYUnLXwXT2ZbX9TYlUYYs6GpRsytbRLXQCAfi1iH3CSSZ229RILsZYDQgHFvGCiZA8Pj X-Received: by 2002:a05:622a:1305:b0:430:a20f:5aed with SMTP id v5-20020a05622a130500b00430a20f5aedmr4986429qtk.0.1710521241698; Fri, 15 Mar 2024 09:47:21 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710521241; cv=pass; d=google.com; s=arc-20160816; b=PMo5f4R03bOaaGi7m9lCQW+vMDfIusbuqfnSm0Z6sk7CPHJzWXKZeqXACLDhPihFVn T5WG42PjTIzUy1APSgpPB8AWv2aLQCT9hl4PXrWaYmxPPWibqEqm0cx8lJzhUFcGyuMM yQSd9enlWpbVadMK2INMcD1WADs17MNTldL5dgrsivphQ8rrVEq5BEdBZRndlliHdIbh LhSivsdTAwfT9quILrM8kC4Sx3dD8sQWgI+xaTGeO0F007KGcMyciNXnGxBUdHSwXt+h Y6vwhtgivkLq8xyMc9QF96TGU7aQCBWDXONzRgXMbFNI1JK5xDYDUu2goPuboN+F8G4H 7C6A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=PJckWANlFb0272VsNdOUMV4l5mzBM543zgeS+z8pMNY=; fh=iuiN7FHTdAbBaXid6oAaykMuFskL+l7LzIyAyc65GE0=; b=NfyNWrBPlJZqccmMdacUgHiEWIWyy48a05H04PClNhOxYO/HQBlOtXo8niHxCS8pUm V2PItkiVvznmx2NUmLOa8LPxExihllyQpCa/EVs84X6M6tH/cxUG8mK3dAPhMPhDNp2F YMmNn9H7w0QekUJYZrKj+XaIJeAnnN81rkrWIYLUgTLas/DMM0I4Xe5thQI/hfmZ6ckz EGc5FaaaRr9onIjFBq9wXZhv2JQCZ3vVnUiNIvzkiio3MdqXPQVNWWK0dRo08B3UEb96 g3beI0k7mQMH4kjciP+kuN2Qgwoj2KoRGIi579SaW0jS60TIlH/CXhjUISUnGr4PxL9s l+ZA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@mit.edu header.s=outgoing header.b=Y8Wtl+d1; arc=pass (i=1 spf=pass spfdomain=mit.edu dkim=pass dkdomain=mit.edu dmarc=pass fromdomain=mit.edu); spf=pass (google.com: domain of linux-kernel+bounces-104646-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-104646-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=mit.edu Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id b5-20020a05622a020500b00430b1f59a94si1486030qtx.166.2024.03.15.09.47.21 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Mar 2024 09:47:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-104646-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@mit.edu header.s=outgoing header.b=Y8Wtl+d1; arc=pass (i=1 spf=pass spfdomain=mit.edu dkim=pass dkdomain=mit.edu dmarc=pass fromdomain=mit.edu); spf=pass (google.com: domain of linux-kernel+bounces-104646-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-104646-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=mit.edu Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 6E5981C2236E for ; Fri, 15 Mar 2024 16:47:21 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0AFD2482C6; Fri, 15 Mar 2024 16:46:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=mit.edu header.i=@mit.edu header.b="Y8Wtl+d1" Received: from outgoing.mit.edu (outgoing-auth-1.mit.edu [18.9.28.11]) (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 B240E4654D for ; Fri, 15 Mar 2024 16:46:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=18.9.28.11 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710521195; cv=none; b=P/mXi0w3fjSCb9c4PLHfdq2ZRBIKFZt26Qmu/sDQzbeyxqcwZE6joOW7teI5F8/jyxMskf7+hcWX2I++/XUSNwCvlzPKTsXVCWGxIZ8rIraTsluD369I6F7CYh8suVUmQ6o+voijM9wImkMU513dEC4aCzjKB2AWvIYY4xG4J0g= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710521195; c=relaxed/simple; bh=7r/guup6gq63ysvWIpmrTJ2Z/ZX0MkaNzjep6pE6Cv8=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=gAQEOQefS5LxhELSPb9giMF5f4QF9OEVuOtGIO6rYX1BGIBkvUKYu7LPSTEIuJ9YLwNMtwQ+8/aKFx7tnYZrBGDsUBpVSTv2MMKFdLJi+VVaHJR00coXa/Y6Q2+ECF6J+cftTtEOS2SJk7vz+4Kp3BnPYw6dZScVEltxEOyByVs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=mit.edu; spf=pass smtp.mailfrom=mit.edu; dkim=pass (2048-bit key) header.d=mit.edu header.i=@mit.edu header.b=Y8Wtl+d1; arc=none smtp.client-ip=18.9.28.11 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=mit.edu Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=mit.edu Received: from cwcc.thunk.org (pool-173-48-116-252.bstnma.fios.verizon.net [173.48.116.252]) (authenticated bits=0) (User authenticated as tytso@ATHENA.MIT.EDU) by outgoing.mit.edu (8.14.7/8.12.4) with ESMTP id 42FGjppu026032 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 15 Mar 2024 12:45:52 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mit.edu; s=outgoing; t=1710521153; bh=PJckWANlFb0272VsNdOUMV4l5mzBM543zgeS+z8pMNY=; h=Date:From:Subject:Message-ID:MIME-Version:Content-Type; b=Y8Wtl+d1zafwyh9EK+nl0WIQlt+a5zDPXzWmrGBUgQ/y784PbkKcfhtSqnNIdVAsk qyimJ1lh6zbuIA/GualkF+BLBvnzINI5OWBabz+fL1MidCcscO8Pkw5F3gc1Yx0q/5 NhsQZ+k0DcQX/p/IYi6nyyLrgxDSlXDf6Df4Y3GOHiL9bPe2WlvLjQp1aJ1iTSjJd8 c4LQNNc6Siw+19fx9/Bde3bhmOdGsYncaB28KvPAUx14RVKXoNmuDRm8iSjtc97c82 Pn5wgLmCrTxtNV6g/vqbkrDWDVi80azXTmhT0oylrjl6eSZk5X9QGkSArEiRvdnZzN e9XBY+kvUK1Mw== Received: by cwcc.thunk.org (Postfix, from userid 15806) id D6AA515C0C93; Fri, 15 Mar 2024 12:45:50 -0400 (EDT) Date: Fri, 15 Mar 2024 12:45:50 -0400 From: "Theodore Ts'o" To: Kent Overstreet Cc: torvalds@linux-foundation.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, Christian Brauner , Andreas Dilger , linux-ext4@vger.kernel.org Subject: Re: [PATCH 3/3] ext4: Add support for FS_IOC_GETFSSYSFSPATH Message-ID: <20240315164550.GD324770@mit.edu> References: <20240315035308.3563511-1-kent.overstreet@linux.dev> <20240315035308.3563511-4-kent.overstreet@linux.dev> 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=us-ascii Content-Disposition: inline In-Reply-To: <20240315035308.3563511-4-kent.overstreet@linux.dev> On Thu, Mar 14, 2024 at 11:53:02PM -0400, Kent Overstreet wrote: > the new sysfs path ioctl lets us get the /sys/fs/ path for a given > filesystem in a fs agnostic way, potentially nudging us towards > standarizing some of our reporting. > > --- a/fs/ext4/super.c > +++ b/fs/ext4/super.c > @@ -5346,6 +5346,7 @@ static int __ext4_fill_super(struct fs_context *fc, struct super_block *sb) > sb->s_quota_types = QTYPE_MASK_USR | QTYPE_MASK_GRP | QTYPE_MASK_PRJ; > #endif > super_set_uuid(sb, es->s_uuid, sizeof(es->s_uuid)); > + super_set_sysfs_name_bdev(sb); Should we perhaps be hoisting this call up to the VFS layer, so that all file systems would benefit? - Ted