Message ID | 20240206201858.952303-7-kent.overstreet@linux.dev |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel+bounces-55587-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:168b:b0:106:860b:bbdd with SMTP id ma11csp1805845dyb; Tue, 6 Feb 2024 12:31:47 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWfFID6FiRczPdartSsUubAV6wV/FTWm82vR+AHqV0R33DU69bK1OqZ3oNdRIlbf+pMlE5KXSgXK/ZsTb1/vQmtQ48fHQ== X-Google-Smtp-Source: AGHT+IEImpvy+M+sH7A+L6ctAwucttF/NZQAEaAwob6a7RdWjTTyT+HpondhfX7wUQkjTL8hGxkJ X-Received: by 2002:a2e:9b8f:0:b0:2d0:aae8:2297 with SMTP id z15-20020a2e9b8f000000b002d0aae82297mr2799723lji.5.1707251507088; Tue, 06 Feb 2024 12:31:47 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707251507; cv=pass; d=google.com; s=arc-20160816; b=E6S4JGRzFj4cfcZbcBPFCcz+U0lEvJgwgjI7tX212hEJNgoAxrp3T+UkYuTRXURrU/ chO607D352o6hVJGz97Ipn0uxtbxzZ2q5uMl0Oh+qtwWQj5E3/fjtRw1Z0TcsScSuYG4 nNBIYbQCdoWoK44MfO7HB4wh4e82kD42H+7TzCyutXyMSfO52HtF/CqX6stjyny3t0Ps xDbXgvsjGJQsGrHbwam9VIU8zcMvlKs/wrFYY+2EWzUSrKkz1MHLioK9mhp+rpHeoctP G+PgrrCaE/9Z4LQ8LAvs9o4fmws4vqRQKniVE/jEtPuYitdGc574K//ue/g+vv7UjDvh 04Cw== 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=Cwim2aeQGjaCCkMgbTjrm7KzLGkzvPdh3mafTRm9hVQ=; b=Wx2C1d5gvQo6UN/BOiRqWFm+3PkQxzVMAS20vEKnmZlSIHTVopKrDlq7g6iOcRhhR2 fHxZb3KwnrpQA5yMALObkZo1XTxQDYDpJOZrgqKsG/FMsz5cORW7KB11f057NZQoxF9y o6bDS3+kShjpzPvMFOw+0zAdt4+I73nWOTiiHaB2FTqOVJ5BB5SG6fpiu+edJwUhaIas 56sySO3jHhd1d0wbFR11kQGY/h0ZHsZCaJ2FvVZflVubL61Jar50W6xwq5GD/Kc035+u 1bht3zgoQs9EDe3YbnPmMPq9PkOz3QO2BCtCq+QhoM9aG/OC58xyj8zKfr0ETcRGBioG F3RA==; 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-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-55587-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev X-Forwarded-Encrypted: i=1; AJvYcCWCvY+YuKbxd4tz2F3r23xy3kgP7XAaO0yavDolw3rLmikjlicEOowPV/cw7Pgws/T9Fa3I2MCYG8Q/czXLP7crl6H9LA== Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id k10-20020aa7d8ca000000b0055fbbfb89b9si1463748eds.294.2024.02.06.12.31.46 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 06 Feb 2024 12:31:47 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-55587-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; 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-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-55587-ouuuleilei=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 E77001F2884C for <ouuuleilei@gmail.com>; Tue, 6 Feb 2024 20:21:32 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CFFDE1CD3D; Tue, 6 Feb 2024 20:19:19 +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 <linux-kernel@vger.kernel.org>; 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 <kent.overstreet@linux.dev> To: brauner@kernel.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Kent Overstreet <kent.overstreet@linux.dev> 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: <linux-kernel.vger.kernel.org> List-Subscribe: <mailto:linux-kernel+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-kernel+unsubscribe@vger.kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Migadu-Flow: FLOW_OUT X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1790182956294224522 X-GMAIL-MSGID: 1790182956294224522 |
Series |
filesystem visibililty ioctls
|
|
Commit Message
Kent Overstreet
Feb. 6, 2024, 8:18 p.m. UTC
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
---
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)