Received: by 2002:ab2:2994:0:b0:1ef:ca3e:3cd5 with SMTP id n20csp918521lqb; Fri, 15 Mar 2024 09:50:55 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXzwrtAMFyTaxQbUwZUi/qSM73hP5AF2hcgw35Wp3IxRrTBqYY9YHi8NHABY5QCNQ9Fq8OxUTbaZCVicAVfAPY2r3MG7/mzhKDZILfvNw== X-Google-Smtp-Source: AGHT+IHbUiFjh7ux630IpO8meDiNLIqIiOv81AxigMBYmDvPJz5cCi3SgQF8WmZe0TWT0Fh2b1xy X-Received: by 2002:a05:6358:56a2:b0:17e:9ca7:c3a2 with SMTP id o34-20020a05635856a200b0017e9ca7c3a2mr3216086rwf.21.1710521454766; Fri, 15 Mar 2024 09:50:54 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710521454; cv=pass; d=google.com; s=arc-20160816; b=0SP3lM78tK7CoI6iiNcN63VsMrMNclOrc4y4dbFJJT3IoIR3b8elPDoHRMxnwuYei4 qAzWOjIHYvavlEYuw76+9SFbMeX6qE/T+2gNgYdeE87KQDdUlNEV7iqGOUDRolUF2jTv 58xbMWxnHg5ylGKujIdwPKtTLLVs9aJVFTDcucsNASqqM/pC0HyeLEtqHXi4tBv9TYtK afotfrHoybJz9f5QIS5ug5BhS71A/75jnuSfJ32bx/Soz/Fy1r2N0z/NHeRTRiMMkmsw HFy1QCKmiamYk1gBXo16VBNNDu0mZhvIyPfz/Inwti08yqKHrF22MAx2pzMT54QEs6UO WuTQ== 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:dkim-signature:date; bh=zo40Qzdo/CwJ9JXAYKrTmNI4kAnF/70CKG12hoxZK9Q=; fh=MUe++CaLHZyVwSLGRNgTORiR4DZH9K/bMRiz+zCUwIg=; b=OZbapUOikUq7mCtHQVpo/Yd9XCiG8lSntCEujc4tuaFJaOHIPDNny9GkboNSwPiI4r neSIZdLSV2JFX3u9RC7QVDZflvivID1xI5dkuwQEK6FahgczfAn9nC4OdZmU/c+kpJ1r v+yXGfzmd52G78NQE9zvUGOSTyEF2kqCsfn0oT8bTnOoAgIQo95HFs/VQErhDSMoFU9U eTS1q2DkUO3bYOqZj5SmzZM9Q85x2Pp+ToxWpttQEcyiC/REuIH2Gowfh2oXusR3EECB +vCcspXNZm7oMRT/uotS99tknzysGuRdfulCQp+/FTOyRSf9xsNaNL9IuwPrANCwtdAO +zmQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=MgqYNQWp; arc=pass (i=1 spf=pass spfdomain=linux.dev dkim=pass dkdomain=linux.dev dmarc=pass fromdomain=linux.dev); spf=pass (google.com: domain of linux-kernel+bounces-104650-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-104650-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id a24-20020a637f18000000b005dc556a8765si3061771pgd.466.2024.03.15.09.50.54 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Mar 2024 09:50:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-104650-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=MgqYNQWp; arc=pass (i=1 spf=pass spfdomain=linux.dev dkim=pass dkdomain=linux.dev dmarc=pass fromdomain=linux.dev); spf=pass (google.com: domain of linux-kernel+bounces-104650-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-104650-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev 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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 6BE5B281088 for ; Fri, 15 Mar 2024 16:50:54 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3BFB945008; Fri, 15 Mar 2024 16:50:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="MgqYNQWp" Received: from out-188.mta1.migadu.com (out-188.mta1.migadu.com [95.215.58.188]) (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 369DE2BD19 for ; Fri, 15 Mar 2024 16:50:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=95.215.58.188 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710521448; cv=none; b=iYGrDYI/c3yNfonvsH718o5YsBsb2BqLzZNeoFdlRE1rPmoLeLgFKJ4PtQpAxbwvttAfhugpjS43EQGDWXCNvgzdnlC4XFiVwFPHj7RzbYy4Gjiwnw/j3hyIyBOVmcBoZp2ZOxefS78e9TSMKPFI0mdkheQIaqQe48c7UY/Wbmo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710521448; c=relaxed/simple; bh=+1zM7cQOmjEK5zeishajGM7/9lDXdEAF+fHjVpsU/Fc=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=tYfSa6TWFyIGf4IBwMjtnfivdkrtHqDxe5f5IV9Nv/83N1nhcmRKJIuJG/m72Vu8TYjTc9d2PGGg+07cTpvmvrJbh091ExLCUCoEPxQNTewltbmlY1WcKfFjfzKlt0HA/5FPZsE+vIqh4UvmpZt6d7pI3QEehTS8U+FyCYLytO4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b=MgqYNQWp; arc=none smtp.client-ip=95.215.58.188 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev Date: Fri, 15 Mar 2024 12:50:39 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1710521444; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=zo40Qzdo/CwJ9JXAYKrTmNI4kAnF/70CKG12hoxZK9Q=; b=MgqYNQWpAaz6mM9OZjN7rmNmF0vafWaVA8KED7+Ndu/K95ZiQrE2cVoEeiPFjucxxg9B0O kHkPtxxI8ntiXVQcbV04nI979FbHGa3TjPLCSzVc/3CvMb32jpwnTJ214U84SExTcMMovV jw+oi871WIej0aScuSii64lkDdON3JM= X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Kent Overstreet To: Theodore Ts'o 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: References: <20240315035308.3563511-1-kent.overstreet@linux.dev> <20240315035308.3563511-4-kent.overstreet@linux.dev> <20240315164550.GD324770@mit.edu> 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: <20240315164550.GD324770@mit.edu> X-Migadu-Flow: FLOW_OUT On Fri, Mar 15, 2024 at 12:45:50PM -0400, Theodore Ts'o wrote: > 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? I did as much hoisting as I could. For some filesystems (single device filesystems) the sysfs name is the block device, for the multi device filesystems I've looked at it's the UUID.