From patchwork Fri Mar 15 03:53:02 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kent Overstreet X-Patchwork-Id: 13593038 Received: from out-189.mta1.migadu.com (out-189.mta1.migadu.com [95.215.58.189]) (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 DF32BDDDC for ; Fri, 15 Mar 2024 03:53:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=95.215.58.189 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710474805; cv=none; b=rnu+aMEWF0xhKoftXQlJfmVvLlhJuDOl0rpC/pm4mUhLME7W2MNLRtfrUP380KjLfnTZV836iiOtycEM/f+3VWxSJ1gv/nw9s1KOLELdms5Im7NcUQ88mZQlOoqlaVtqdb7D3Tyrvk87b75K5fW/489yO7AqvIDf6o3izMRhJo8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710474805; c=relaxed/simple; bh=2qMcRbP6ZzThdZGcEPqIsQjXmXA3HO46JfwlDTtZ19U=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=otzhRaFhsrZRpgtBXHzaTwuAK4s/5kQk3cTgXAeI/rjvvHaDNOAj/6xXPwEjjc+cAJizz1QGjth63vPb+Taquk60fchHG042YWQ9Wzfoysn72rmcFrMnRw6ugL6IWCif499eGfFl5Ij3CGlO2TSFuxNjLvdoymGw77wd/ZvTOus= 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.189 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="TnHAHl0j" 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-fsdevel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 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);