Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp1458184lqp; Fri, 22 Mar 2024 16:09:37 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXIeWuFOw7qmIW3w0/JeD4YkTxFDIqPvM4DjhpDigEZ8MWuba5s2mnvMBK2HwG4C3vidfksABEJvP0KHnyEYPsBi/iTKrmZ/vYW3n637Q== X-Google-Smtp-Source: AGHT+IFJ3jzn8MzFjE9gqvlVwBTeaGQe5slht4B0sPlRfcGWbvfBuOLyTTr3ABJrvNDY7w1kTCLe X-Received: by 2002:a17:90a:aa89:b0:29b:972a:4990 with SMTP id l9-20020a17090aaa8900b0029b972a4990mr1056646pjq.29.1711148977070; Fri, 22 Mar 2024 16:09:37 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711148977; cv=pass; d=google.com; s=arc-20160816; b=BcMWkfEC3k57rtiLy8i+ntCbkYHbyYAonhAc10MEAF2rloA3ToiekFrvrbNsLlgLcz kfr96mHi8u+MXYY+9BtdN1pkBymUZj+wdMVZLTQT/sJ2RZ7TDIptCAvr45Mv3tHQd0eY lZhzWKQp8vslInH2TyRS3CZ0S/ojaI6CUQtTivBglEknzin2iPMRpr1hCDn2vPRuQ5DU VJUrEtD8yCTSoIVYkYRcyXPVF17iHEwaPbdIyd1gfZxoSrlS2I/NarWjWuronIcSOuWM E+vmt9Q2HwrSDcLL/fs+6DuOYaMf4RAYYAD96xsOMM0i38S9Z6nbCDBnYmFj8O1Yu8Sb 3EeA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=references:to:cc:in-reply-to:date:subject:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:message-id:from :dkim-signature; bh=UgF3TbhMPygJT52i6+DbefarjcSqH9PqI9CndRYXlNM=; fh=uvkzJIagdYO51QENqwt9M32S4kEdde4UjBbObHgYviQ=; b=I3QGaqCuFVQYjmoCXQHuzT4a1xD7HVGYsgNyPu9bDNuFNp9xHppz6aPHtredtWIfsB 8+R6RMTw1Xd6/YD9fWauSU//9UDaDkIosUWRQK/V+fpPZi8iZezok//BvLjd3OJ1yWwp qAPY0Of+tVwXdaUmDH4PQ9te6p9wakkMycozIPJYQlIhN4odJbypWOF50Ea/BOX5OhNe +9mvGltQM2LOVM3Neb0PWf95I4ZBtZNvuXCDsXx+AApEI1agOkI+o1+Z/FRew3HVu8PP R/53/yHgZ/Y9Wp4hLljyBQBI2Kp8v6g4QMsfOxlmE2OeGNdKCliGm1Pph6OXmyclwx9I blsQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@dilger-ca.20230601.gappssmtp.com header.s=20230601 header.b="p/LMsbGM"; arc=pass (i=1 spf=pass spfdomain=dilger.ca dkim=pass dkdomain=dilger-ca.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-kernel+bounces-112084-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-112084-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id l15-20020a17090a408f00b002a01f8b865bsi4401815pjg.80.2024.03.22.16.09.36 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Mar 2024 16:09:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-112084-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@dilger-ca.20230601.gappssmtp.com header.s=20230601 header.b="p/LMsbGM"; arc=pass (i=1 spf=pass spfdomain=dilger.ca dkim=pass dkdomain=dilger-ca.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-kernel+bounces-112084-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-112084-linux.lists.archive=gmail.com@vger.kernel.org" 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 sy.mirrors.kernel.org (Postfix) with ESMTPS id A3504B22A22 for ; Fri, 22 Mar 2024 23:09:34 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B3B1782899; Fri, 22 Mar 2024 23:09:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=dilger-ca.20230601.gappssmtp.com header.i=@dilger-ca.20230601.gappssmtp.com header.b="p/LMsbGM" Received: from mail-oo1-f48.google.com (mail-oo1-f48.google.com [209.85.161.48]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D85547FBB1 for ; Fri, 22 Mar 2024 23:09:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.161.48 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711148967; cv=none; b=niCleCh65uooAH8rwnOXOyfFj5LmziufIjrqvYEdDlJ6Qh9yM3+5/BF+mYkie2Yu83V/y217ILg1beSmXINYHSZNBB4iekO9+vhMDP+zBIvjH5cY5THgRXBhEAf07LAXNkReT56jI+tqdGAQPhqcncEbCFLORVbC2TgZ1I27bNo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711148967; c=relaxed/simple; bh=jeRa4DLXFpSDpuRSoBN3nhwwrFS7Vdvq6WsBPRRQVYA=; h=From:Message-Id:Content-Type:Mime-Version:Subject:Date: In-Reply-To:Cc:To:References; b=HktjB0B6gPwv+HrObwC95RzlV9ba3VkM6d6pbV5J6S+avlC4vyO7MrTfz/8BGMthQSlQCBQ0ra3u+kuFNQt/5SItU35SUaziPIa4CiZd4p1HrfGEq3Y5LfhVJH8/m2gDPSmMMZryngYDasKrxnsCYooKht+O49Sqr0xd/xFF7JM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=dilger.ca; spf=pass smtp.mailfrom=dilger.ca; dkim=pass (2048-bit key) header.d=dilger-ca.20230601.gappssmtp.com header.i=@dilger-ca.20230601.gappssmtp.com header.b=p/LMsbGM; arc=none smtp.client-ip=209.85.161.48 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=dilger.ca Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=dilger.ca Received: by mail-oo1-f48.google.com with SMTP id 006d021491bc7-5a4d435a036so1014070eaf.1 for ; Fri, 22 Mar 2024 16:09:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dilger-ca.20230601.gappssmtp.com; s=20230601; t=1711148963; x=1711753763; darn=vger.kernel.org; h=references:to:cc:in-reply-to:date:subject:mime-version:message-id :from:from:to:cc:subject:date:message-id:reply-to; bh=UgF3TbhMPygJT52i6+DbefarjcSqH9PqI9CndRYXlNM=; b=p/LMsbGMLkRe0kLd4xipkEjbXYm4al0n0qhhKy1Q0QudrnHanQLEO+q5C7DbuhlAfc 2eqV3Pumi52jfrZ3ewgvt4f3BR7fy4d+/pI8x4oUgCL6/9Aox2Mt06AzcJ7NEeS3hoNA NPGQOymDH4edRxc7xM4H0Oyo2SwYvaQjVrRto5mejhtA8/z2STVHzAU40JJ7zJTkGuIG huZFWkKDy257+SLxZVYz8oNr0g46YgY9hwAOUth5hB4HemHsVNyCP54DKb/9WLmoq3SX YKgjwCsXPkos11brvaV17YaBN8arOuLIHOaXl5nnmO4X3IxxQksdNR3tr9gbhEQHf8Cn oyUg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711148963; x=1711753763; h=references:to:cc:in-reply-to:date:subject:mime-version:message-id :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=UgF3TbhMPygJT52i6+DbefarjcSqH9PqI9CndRYXlNM=; b=JL73I/X/KKihGbXKWDdSXF9gxYnNN1SS+hWeaVcYeKnISGqYc4wLBcKCRFWPcrz0eo zLTA8WevcZqMqwfMawb6nQBDmsLZKnqxq1LAIngFLPdVExgN9NvnPlhmp+2gRW6h121O WuAlbVnlVOTMtcYeesxJcqlHH8p2i0YVJ7Ej+kRxVp7sYmP2mq0gi57z8d5/aDvngTSg mxEeh2EuQCLOaAtX5Ucy9e1MZp1XXaW8VuEVLLRkqb1s3SbFo1j/U1iBzjW5uIEIderL yjoDWHtCzgAIBaqDkIoFqiGtHVSrjDNRRXvnAG34vKrSKDawvJRPogp0Xz4vodBQyNzE JP8Q== X-Forwarded-Encrypted: i=1; AJvYcCXztFKvFiTIAI61/aGvlnR9q6AE8yPmVwwBRPH5csujfoS8ljguAJEDJ8ZaDXjiH8a7NSqpVFL+qpOlAkvGFXbG1RQJ2ZnOp1/VIsRr X-Gm-Message-State: AOJu0Yxnv6XJYB6/0KlQPDHZR/ABfQAQKJaHK0DOCPZ93jI7W1kL9X/r bXUDpgRann9cWbjKBjOXtRjRX7PNxBaxRw6lyYCOUfi8A2w5fHyZGpYodNc+5YXFAa13dqcRQhe q X-Received: by 2002:a05:6a21:33a2:b0:1a1:48aa:2827 with SMTP id yy34-20020a056a2133a200b001a148aa2827mr1151796pzb.39.1711148534968; Fri, 22 Mar 2024 16:02:14 -0700 (PDT) Received: from cabot.adilger.int (S01068c763f81ca4b.cg.shawcable.net. [70.77.200.158]) by smtp.gmail.com with ESMTPSA id t184-20020a625fc1000000b006e7243bbd35sm304301pfb.172.2024.03.22.16.02.13 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Fri, 22 Mar 2024 16:02:13 -0700 (PDT) From: Andreas Dilger Message-Id: <157E2709-34C2-4C45-BF68-BF55780480A6@dilger.ca> Content-Type: multipart/signed; boundary="Apple-Mail=_9A948BF3-167F-40B7-B1E4-3D6BCCDB7976"; protocol="application/pgp-signature"; micalg=pgp-sha256 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\)) Subject: Re: [PATCH 3/3] ext4: Add support for FS_IOC_GETFSSYSFSPATH Date: Fri, 22 Mar 2024 17:03:03 -0600 In-Reply-To: <20240315035308.3563511-4-kent.overstreet@linux.dev> Cc: Linus Torvalds , linux-fsdevel , Linux Kernel Mailing List , Christian Brauner , Theodore Ts'o , Ext4 Developers List To: Kent Overstreet References: <20240315035308.3563511-1-kent.overstreet@linux.dev> <20240315035308.3563511-4-kent.overstreet@linux.dev> X-Mailer: Apple Mail (2.3273) --Apple-Mail=_9A948BF3-167F-40B7-B1E4-3D6BCCDB7976 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii On Mar 14, 2024, at 9:53 PM, Kent Overstreet = wrote: >=20 > 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. I find it ironic that we are adding an ioctl to be able to get the sysfs path, which was originally created to avoid adding ioctls... But, the days of jumping through hoops to find stuff in sysfs for each filesystem arrived long ago, so we may as well make it easier. :-) Cheers, Andreas >=20 > Signed-off-by: Kent Overstreet > Cc: "Theodore Ts'o" > Cc: Andreas Dilger > Cc: linux-ext4@vger.kernel.org > --- > fs/ext4/super.c | 1 + > 1 file changed, 1 insertion(+) >=20 > diff --git a/fs/ext4/super.c b/fs/ext4/super.c > index f5e5a44778cf..cb82b23a4d98 100644 > --- 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 =3D 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); >=20 > INIT_LIST_HEAD(&sbi->s_orphan); /* unlinked but open files */ > mutex_init(&sbi->s_orphan_lock); > -- > 2.43.0 >=20 Cheers, Andreas --Apple-Mail=_9A948BF3-167F-40B7-B1E4-3D6BCCDB7976 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP -----BEGIN PGP SIGNATURE----- Comment: GPGTools - http://gpgtools.org iQIzBAEBCAAdFiEEDb73u6ZejP5ZMprvcqXauRfMH+AFAmX+DicACgkQcqXauRfM H+CJgw/+PaOI0yH8X6md/q6dpGtw7cT+GJNkNUqlr1yw/LAXo5PILhX8BoeGtNn0 xVUkNjlKa5esWlZzNALY9MVdlc3Vnrqny11EzovQn9cS046ZGOfPgKJr3rHxND0B Uik9qVHxqimn5XPydHnHw0ieGMSSEqCnMWTjx+AydPcETDakFYTefQdUSk5tQoGK 1XuLbZI4m+7waWOA0UPCx79n/qHr9cRvBCbGDrIorO6/A59w+k/bawKY06z0gUu0 /eERceymgH28673XZX464zh8es0u8D82gpN84SM6awJbWF/1btgM41WVuQMRQml7 kZk3uHXy1OFz3Va4WDA2pgROcuBVCbjC+50iE2zJ7NH6qAOiITsxpvzk2C8zf62x Xnu4MPZff989gurDKSjtmvzdZ1tUoQpVxb5uSLqDNar0Z6GI+IGCUdkXNH6hGb1T hspCIGhg1xzDud3/HTHnjzQswYM2A750U/b2FwBTnig8DVjpcca5qsRqkj4KEo/H NAK6xP4g3Lhw/b5tBwCRwvH5cgtmiW37WuKk+RFpIILXHxo0FHOPvNQ1CrF8Hwk2 Q7MJ2XdscsCaUfkVYKCRITjGtPqtgBBsaOteo+2eP2zMHgYW4DSA/qOiHtVUj2wJ L/cX1nOSkk2LQlphDL3eOLa0C+8Az0j7w2kzeYHw5ELW8neQc6Q= =ABi7 -----END PGP SIGNATURE----- --Apple-Mail=_9A948BF3-167F-40B7-B1E4-3D6BCCDB7976--