Received: by 2002:ab2:2994:0:b0:1ef:ca3e:3cd5 with SMTP id n20csp534287lqb; Thu, 14 Mar 2024 20:54:09 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXQet6OXG/90BUPFlboen67h74hKxD2Js9kpZ6R8cIMDusT8WSeX3fP1/wjHeLUs9F2MZ45kVt3PGTeYnzOhRbWMkzv2qpXxwyCxBZ7wQ== X-Google-Smtp-Source: AGHT+IEg5gUTGPIy5XCIKM6Yeaq2+mWBvTeulGrJkpA0N04ngV42V9pSPAwuCSmnaU6zJtZv1v1F X-Received: by 2002:a17:90a:8042:b0:29b:ad27:330d with SMTP id e2-20020a17090a804200b0029bad27330dmr3664021pjw.20.1710474849170; Thu, 14 Mar 2024 20:54:09 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710474849; cv=pass; d=google.com; s=arc-20160816; b=UI0K2nXPatkNjtL7rcJeHc85ppeJt9RA2V81vABNfYZhkfWhK4q74UwXHiyo5GL2E+ s26w48i1ClV2SxiMQpTtJGAvEap8fuY4D2fnWMh9wat/+YifRrACv1f7j0mlS/mztbXi 5voXr+M8CiSgIhX7ZssDjaeDcmB9NxQv149kPZlgVHrr3tiDMENYN/i6AtEdVpAjJvdl RVwYXiuH6RlKr8RXgIp+NmGhjUIP+htVwkLCBLItZtXMkCpm5bBXGmypG/yTpT5iDeN2 WA7HPgg4Q8t8n17XYQM5xzpeJw3YpiQCE/8ywxt+QruPHtsr9+wWb4RvVqCZXs/5cJz2 UNUQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=b3OAWR1YN5Ue1DLQYdfxGHPlfZVSaTst3605+wbzFMA=; fh=OIYky3CYfqbr50TVqeaqwU93JvxpBhSfGqg2KwT4JSw=; b=DFhh6udBMW/Htts44cujkd42UQ4Ld36Hix7yI1Y7uRlM2ce3iGzqGlr6Moy4I/QLAH Nn17wP1xcQqbowNC1oVTynuGxF98sPNRdI+nBy+vqF5pPf5xst3cXQJ5ppC+fMGnaUWC TQ9LRFqRLwJnvqoFnMd6J/0aOyEQ9AeNmXZqbH8zNjJhR31DIX9fCsG18htLsF92IRO8 6Hv1ZxVQga0iY7WShDZDlh4NetyALRKiv5Hyih47IMHnz0UMTQNeLkozT2tJ+5p5VMMJ MBkXdgQ3gerqThrxGuKxlWoW1dVreoNPB1ebbLL/X4NmY6EJjaTNuaKP10G1mqw1yGpl QGBg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=TnHAHl0j; 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-104038-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-104038-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. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id by41-20020a056a0205a900b005ced65a49e8si2183223pgb.734.2024.03.14.20.54.08 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Mar 2024 20:54:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-104038-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=TnHAHl0j; 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-104038-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-104038-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 D282B2833CB for ; Fri, 15 Mar 2024 03:54:08 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3FC51134BF; Fri, 15 Mar 2024 03:53:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="TnHAHl0j" Received: from out-182.mta1.migadu.com (out-182.mta1.migadu.com [95.215.58.182]) (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 A75BCDDB3 for ; Fri, 15 Mar 2024 03:53:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=95.215.58.182 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710474804; cv=none; b=RJaCuQjtlpl7LxC/FJk6A/5A7Gy22ny/HXrHg32QcgYOgtE9PR7OjR63HdgT4+jiKKienywIldqq0k/phw3y8cMoLaRoRiMvGNhIzbX5Ye9HuXni/7gd4yePfkLM4olu8894uPN/zeoGBP9m2s1NU4GxP+XDizR2lFriWermqrM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710474804; c=relaxed/simple; bh=2qMcRbP6ZzThdZGcEPqIsQjXmXA3HO46JfwlDTtZ19U=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=qKT48RgtwGtKVyna92wMTTcdPXg4BxbF1K1O1jLI9OHboyQAD3BYT3uLGS3EeP3b8wBssFMJQpCn3FJsNSRjMieEkia5aUxQfXyRNiYEWJpUzFGEqAgJF4sL2404cypHw3Z33iKh6B7Fv5GOK/1dNWba/4yR1fhV5XINqCyFuU0= 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=TnHAHl0j; arc=none smtp.client-ip=95.215.58.182 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 X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1710474801; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=b3OAWR1YN5Ue1DLQYdfxGHPlfZVSaTst3605+wbzFMA=; b=TnHAHl0jBxYCvli6JJtoKK/AtikrGpOLfgq7u/0ZkCZQOE2uOLetAjUV0IUkWDUBWea72i cLleOiAoaNZld7uFCI+Y8geW8Kjdgt+4waqGIp+DLgJObRUzJDTaJSzSYHHxgpqsGhJDrH r5RjBjisWhBPThMRlpbLGRbcqqFbR8I= From: Kent Overstreet To: torvalds@linux-foundation.org Cc: Kent Overstreet , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, Christian Brauner , "Theodore Ts'o" , Andreas Dilger , linux-ext4@vger.kernel.org Subject: [PATCH 3/3] ext4: Add support for FS_IOC_GETFSSYSFSPATH Date: Thu, 14 Mar 2024 23:53:02 -0400 Message-ID: <20240315035308.3563511-4-kent.overstreet@linux.dev> In-Reply-To: <20240315035308.3563511-1-kent.overstreet@linux.dev> References: <20240315035308.3563511-1-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-Transfer-Encoding: 8bit X-Migadu-Flow: FLOW_OUT 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. 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(+) 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 = 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); INIT_LIST_HEAD(&sbi->s_orphan); /* unlinked but open files */ mutex_init(&sbi->s_orphan_lock); -- 2.43.0