Received: by 2002:a05:7412:bbc7:b0:fc:a2b0:25d7 with SMTP id kh7csp3275347rdb; Tue, 6 Feb 2024 12:20:58 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWNoa8ESEJ8fDizfirKNf8wdn2/xMtvar5j0jwaOm/OATl+vn+zJZWj0ukmtkrGdFDaOly8mIWWWJkHMzi+6p+ngPaVjmcT/W+SzCgumg== X-Google-Smtp-Source: AGHT+IH9154Ya3Jlee9PnhvhabRw/f8NslbFd7XqgLTSWrIiKvpjnNDFR5FTgOYqQ1xNS5uw2CZB X-Received: by 2002:a05:6a20:a092:b0:19e:987c:78a7 with SMTP id r18-20020a056a20a09200b0019e987c78a7mr2043640pzj.32.1707250858587; Tue, 06 Feb 2024 12:20:58 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707250858; cv=pass; d=google.com; s=arc-20160816; b=obzRHlbmK9IVxGTN7VHm1D517WmhGh9rn2S1JgCrJ5pAtKBkT6/zBUvSKQzCx0rY6W cLFYsLxtzWKu8HzzYMk6Jm5cqoXxFy+aizjw1JNt4jOoXA1Mg3c9KCIemifzYzxwcMJQ Bzj0CXT/st+KVtG4bZcA2MgsTCMTEcTlF0aDlpQACoPaw6+qFCNuoCSxOYV4X/1D28Qt t732W5k4ZvZitFzTsw+bNSQFJtBn3Fulnx8ySOsLmaPJIqPjVmdFaf+jm5lCylsObTFA xsL+G6f68EXSG5/budn/9cY8KQJpyrJ69IFnJJPiPvOJDAwCn9yoXBjsbcc5m8p5a0tD 9RrQ== 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=2YXrtm+1+cRzzafgmSF6M7/9FRb0PSFDCes3wLXLLXk=; fh=sqHdCqp4TumEheNvW8SFXSlSyyv2lwabeE6QnwCX96M=; b=t4EdGaIQ34rZsoKXoYGQ60J5NL5zRTIn6dvHw59o+I2iqelwyW3pOHQycUPzFKVqN4 cuO6fOZehdeXP5dLJXaaYUcGaW5mc6rzeX6IBDN2Y7I/NdBzKeV9TnpSaGSYp9S9qzGC u7L/UT55DiExi0LaBCLYa6SPt9YhPu01tSDCvM93ZVtbV/b/TeUEADRY2OtAtwm+Mrpo lAQCC/CdGLHS9WEpCdV6Yh60E01ngZHy/18NvB3qvwnC8Gsh5CvAvD+ZZN81yHT4gb8h Z6MezCMYam8IUqiQct9SeGurZ7CZ/OYmXp0/Az8fNMFDNULrvsZVih910pcYg/qGUXmM ZeaA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=uprbPkH6; 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-55587-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-55587-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev X-Forwarded-Encrypted: i=1; AJvYcCXsWBE/3dOwJeC6E3mVroZaiv6539jqpYNUL0bNV69cPW6icj1dlli8TATF3Ue1+LhQ4RDsC5L+jNRbKV7YmEmOeDUQQEcmWTE56ru5rg== Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id br3-20020a056a00440300b006e02ce964b9si2163776pfb.371.2024.02.06.12.20.58 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 06 Feb 2024 12:20:58 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-55587-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=uprbPkH6; 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-55587-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-55587-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 27B7F2879DB for ; Tue, 6 Feb 2024 20:20:58 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E69751CD19; Tue, 6 Feb 2024 20:19:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="uprbPkH6" Received: from out-174.mta0.migadu.com (out-174.mta0.migadu.com [91.218.175.174]) (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 8E22B1BC27 for ; Tue, 6 Feb 2024 20:19:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.218.175.174 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707250757; cv=none; b=iZygL5v1aPreG0F0a/hiNjLXCAYO4hi20umbhacoz5cVITsqP5hcMtTj/AMtUuI2qCUbwSm/FzghH1jzlsdVYkiym3CatWdYY/2GKJPtk9rJjYZSGqCHZf1hQKvU3EFUkGqNuZ8IAd3DoCNXa/KCpb/OrJBC3DwtuF76HUXKniM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707250757; c=relaxed/simple; bh=IagyAptpbVbCJIu7tGslMZS09sjpEcntZ7cc/Wf4Lo8=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=j5AxySGdbqr4EQy2gvSRpHER47O7XUYHi28/vzri3QMtZpIU2noX5X+BApfyPI/sCSiuNObxSeLjIK+Wdd4kttNy+8u7YbLPcQl0y4iqot6wWr5anUZIEMh9k9cwtWX8hEtpfWF6alrOWiL1pBcJMj/Z1QYvgdOMliL2omN7TeM= 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=uprbPkH6; arc=none smtp.client-ip=91.218.175.174 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=1707250754; 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=2YXrtm+1+cRzzafgmSF6M7/9FRb0PSFDCes3wLXLLXk=; b=uprbPkH6CHnUWKye0Byqav98Oq/yCStE6lfL0ElOIC4gcxaaHvA80rGm1JIpl+gfF6aYSU H/2BhtQ5tWOrIbwGFABiVF1kllQoAIlp6yRZ0vjPdFLK+HfBsk9AIF9P0Rbb/4ecbuUvaX OZD/5Tu4GHOLeZdfSEfizG72iYAZsDU= From: Kent Overstreet To: brauner@kernel.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Kent Overstreet Subject: [PATCH v2 6/7] xfs: add support for FS_IOC_GETSYSFSNAME Date: Tue, 6 Feb 2024 15:18:54 -0500 Message-ID: <20240206201858.952303-7-kent.overstreet@linux.dev> In-Reply-To: <20240206201858.952303-1-kent.overstreet@linux.dev> References: <20240206201858.952303-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 Signed-off-by: Kent Overstreet --- fs/xfs/xfs_mount.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/fs/xfs/xfs_mount.c b/fs/xfs/xfs_mount.c index 4a46bc44088f..d87d14d8f699 100644 --- a/fs/xfs/xfs_mount.c +++ b/fs/xfs/xfs_mount.c @@ -711,6 +711,8 @@ xfs_mountfs( if (error) goto out; + strscpy(mp->m_super->s_sysfs_name, mp->m_super->s_id, sizeof(mp->m_super->m_sysfs_name)); + error = xfs_sysfs_init(&mp->m_stats.xs_kobj, &xfs_stats_ktype, &mp->m_kobj, "stats"); if (error) -- 2.43.0