Received: by 2002:a05:7412:bbc7:b0:fc:a2b0:25d7 with SMTP id kh7csp2664078rdb; Mon, 5 Feb 2024 13:40:37 -0800 (PST) X-Google-Smtp-Source: AGHT+IFT8QoOmz4SEVjwcl938AklD/+iUGVP4UIhWPN0kmQADoj4/ddRjReuIaQVe+m3VK9h+/OG X-Received: by 2002:a05:6402:1a44:b0:560:20fe:ae18 with SMTP id bf4-20020a0564021a4400b0056020feae18mr351125edb.32.1707169236842; Mon, 05 Feb 2024 13:40:36 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707169236; cv=pass; d=google.com; s=arc-20160816; b=vOHsh+PwmTI2FIbUCQJNx/5LsBijtQk4vLr8Yicsg43WSPfjgxC8NGdgwtdHrmKWYs xI9+O81lmiPT/JRxY+2SI5A1W5zE77pi4xMeIwao8YjYmrB+fpckkqSND80FZdPA5V8Z Uizk29mET5MAkoCiMxUEp+M72Ty3NB2bacVD2Bw8Qj80KszduR1I7dpApRt+GPiVmMK5 y8ZYXoIJqDI7QnJjD7vUZFgX/l5XagkefLDXaeWgjDgk0YQDmzmUVcWr45jWKBpRzEhz XtlCN2bgan2e01rO5c3I022HXzl8NRwv9ZAAtwboI3wy1Z/EQJLjeBoqYwM4QN4l73Mi GLhw== 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=LjLLoTR+ir1vHIuy3hXsUuRK7GJSfSeb1z1mFbcs/pM=; fh=zZMKwsn+X7zOsPEPjJGj9cVbq7jJ4co3HJIIZU4+/ds=; b=hD6RqeJ1gzhNk+fK5GiHztKEXVn2KgzaD08xPdctTLMQxqC+Of/cRMMIHWhNX8kl3I d+fIuVeLe9vMNuvXcfjVGcIAxZpJTZ/w0Th9/e92I0qL/o7q43/aYkgrrNASWzNZEgc+ Xl6BqYhthIZyrur06w5B8/i9rRRqc4LF2BAAufURLW+lpUd26Cma0UyO7cSlMm279IN6 vipo2+On7PL5eL2bEyrXBhCmmjfJajByZ74+QEDeHEgmvAzgI1zYbos9KOGM3kD4P5Ie Jj63Rr4wgsZAJwWCwZOfK4v7JyCkAVzSsf3TBXOcCDCfK18Bq0W4ccyFEjIyKmwUhkUj VvGg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=xTYaLnhM; 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-ext4+bounces-1120-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-ext4+bounces-1120-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; AJvYcCUp3/4kU0zmT+w094HDOwc0YU+gtCbjfQKJO5/xEU3YoYRLaQYFTddWuxvFf76GH9J8M9aV8+Jvl4ckBDXUVlKfiNF+/iWbTCOeXS9txg== Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id h20-20020aa7c614000000b0055a393e15a7si292720edq.173.2024.02.05.13.40.36 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 05 Feb 2024 13:40:36 -0800 (PST) Received-SPF: pass (google.com: domain of linux-ext4+bounces-1120-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=xTYaLnhM; 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-ext4+bounces-1120-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-ext4+bounces-1120-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 93A4C1F2B16F for ; Mon, 5 Feb 2024 21:40:36 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 477E512D178; Mon, 5 Feb 2024 20:06:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="xTYaLnhM" X-Original-To: linux-ext4@vger.kernel.org Received: from out-189.mta0.migadu.com (out-189.mta0.migadu.com [91.218.175.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 024EC12BF35 for ; Mon, 5 Feb 2024 20:06:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.218.175.189 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707163574; cv=none; b=PrwTnhH5rj3b8n+QEaccat+iWneciwhQUiwkFnTnhzMTPBMnGmgxuzpWsHaOutJueJ84fdayRFxILwYSgaWRbSDWVfeXnfz0KFP2IAuhXpm5sdfWaIQgzQcd69nfsWpdW1WK3FBSjCA0Bb81L0wCCX7s8wmS/afQii2d6RdRf2s= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707163574; c=relaxed/simple; bh=SpXRXuGnMtRwA2NcE51fX/znF3QwnMp2SZRjBoEEXhY=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=QhFt/MX9W9RFmh51+DwJSpXoTUaBkxiCLK7msgVwpvJHiOL0D2fkAZO0bav34V9lhmPzZii4yYQyhwcLhx8J5I6G0xlH3+K2loUlGeXjIFjfH6lwC9XXwJTlVs9TEYlPHZ+Id5Ma4B7H0IlBvS95JMlaVapOtJ2LusQUBjA3iBQ= 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=xTYaLnhM; arc=none smtp.client-ip=91.218.175.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 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=1707163570; 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=LjLLoTR+ir1vHIuy3hXsUuRK7GJSfSeb1z1mFbcs/pM=; b=xTYaLnhM62iIw9h5mlJHwn37PFD+85rp5V2iVlzDFkUm/hiGWhkq5JrHRt13ZXTLbc5Qqz cTHbzZadurpRL3NbkqdBkVzPCdxApb/tvOrNOsqUEmQ1SOFbq/dPloj4T6KJeTph2qziC+ Z0L+ka/B3oCSICX1qvb2qZpVQDiV1Zw= From: Kent Overstreet To: linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-btrfs@vger.kernel.org, linux-xfs@vger.kernel.org, linux-ext4@vger.kernel.org Cc: Kent Overstreet Subject: [PATCH 5/6] xfs: add support for FS_IOC_GETSYSFSNAME Date: Mon, 5 Feb 2024 15:05:16 -0500 Message-ID: <20240205200529.546646-6-kent.overstreet@linux.dev> In-Reply-To: <20240205200529.546646-1-kent.overstreet@linux.dev> References: <20240205200529.546646-1-kent.overstreet@linux.dev> Precedence: bulk X-Mailing-List: linux-ext4@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 aabb25dc3efa..6d16203d5c1c 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