Message ID | 20240206201858.952303-8-kent.overstreet@linux.dev |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel+bounces-55588-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:168b:b0:106:860b:bbdd with SMTP id ma11csp1799888dyb; Tue, 6 Feb 2024 12:21:40 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCX4b1Pf/TQSbXKf2t5oNwyHTEZ0byjmj31N8kckUQiPMYj6JS55v9NG8mJh6JRpgRzuN2+fl0X126XQKFf62o1jgy5v9Q== X-Google-Smtp-Source: AGHT+IHktAY0x42cp1d/uunlY/2ABcQobX0+L36Se75GrERLHGYcN4cKLXXt2gXxqk9Jo6bKwHPE X-Received: by 2002:a05:6a20:6881:b0:19c:74b9:9388 with SMTP id n1-20020a056a20688100b0019c74b99388mr2176110pzj.13.1707250900419; Tue, 06 Feb 2024 12:21:40 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707250900; cv=pass; d=google.com; s=arc-20160816; b=qR0Jl50aHdJ9BmoW4sXAaKXTpZhw63w/5h+Tk9uMxBlVHpxeyDIc3wHZCoj4p711Vh gaAvm1GMZkafrwSQLNTzY/lqncj5v/xdoZi/AktuKeQhF2mSZT6ZzfA64OsYH2gU9ppe 3Pv0BuSOXs6A3yLTxGttNWun2CsxWTrY3krIiJr/9a/SRRFTeO+unrmxYlF23vnWyTGF rnyOs1ePtwDgtmo9ajltP3hg4ISlCfPXpF0HLgMk44eIQ+7eYfj8afo4ShfvAP9vAWdH 1eMuP8Tye0IC1wL6ujjNS9vIBJh6Es6fJZGcAYs7Ns9gPTNfKw0HOFhAsArycTdn6SCc 7nPw== 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=HS2DNqPoHrMr86/7fyMQRw3X2SfMSsS/w2jgXzblZj4=; fh=V9GPwxspUa8xmnJbxIBjiwP6CBvBG4Qi6G5/vmwC1O8=; b=lbmX5h5QQnyfKZWNuNXobHBIEfBABOhxY3Gr0U14v7bEFnePJInwEaxZILkJ3IGRVy PYbnxxbA8eHHYnANc9aByABRPjDqmNB/XraJeHqO7png2/f6lNqyBwB2WAYy8yAbTjgD VwV00q2Xu1Ywnb9GY6/mM3agd1NwIaerbVOGSJfhaJSnhHPoHiRC7rwppsbyOSy4aFHh UxiM3iwQEGXgdStDZkJuFZo/jraPT/r80BusMG/S3sT62s2nqH8QmrWL7p61P5f13EHF 4mOQ8Ilqphu1MjMaEr6919DwEgwRADvfbMRoEmKpCpVK/mBdbq/WiVOcdkjl2gvO4VVo bnaA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=vA3VH49Y; 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-55588-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-55588-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev X-Forwarded-Encrypted: i=1; AJvYcCU4EtUu7n8OxmmZI75wYowly+2Yf40Btnk3rM9dsvSox24+1m+mCCNbvUGZs4x47bRGYnae2Dr9ScZaVja8LfEfqZkQsw== Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id n5-20020a63e045000000b005cdf7f2f98asi2251900pgj.50.2024.02.06.12.21.40 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 06 Feb 2024 12:21:40 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-55588-ouuuleilei=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=vA3VH49Y; 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-55588-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-55588-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 2534928907C for <ouuuleilei@gmail.com>; Tue, 6 Feb 2024 20:21:40 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D35B41CF95; Tue, 6 Feb 2024 20:19:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="vA3VH49Y" Received: from out-186.mta0.migadu.com (out-186.mta0.migadu.com [91.218.175.186]) (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 839D31BF47 for <linux-kernel@vger.kernel.org>; Tue, 6 Feb 2024 20:19:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.218.175.186 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707250758; cv=none; b=h1600yFwLFB2RDFj+6P7CFVU4k0+fUJbpqweoL5Zk9nHQ6hSnp97kPxWFE1L2Tcm4uTFbPiEW1H+oLw2POEJXWIoqauAmZ9x78WPepP9CsJv0IVFcT/s1S3tdaa7q4l/i0pGfJCAS9TYCztCvpaRWGMe+Bkk6J9jHyG9AXMgVas= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707250758; c=relaxed/simple; bh=X3Sg2AcjCoYlzGPQWL0/90G/r75mZK7+imgUhXh2xWA=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=quC0XDuo7VOOVXkhKFs5DHQZ2uepxoD5xHJo8WuC6jF4l0AQKjt5QKKB6VmBPYi4IYDaa8KWUphS85Aym9QH37ZUmwtKpJU2l010KIuW9/h/c/lF2RUnocIb6kaR66Exir4BVH1ayyp7iI/9G28aJ7iUUZfInnAn5kCiamKDgDw= 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=vA3VH49Y; arc=none smtp.client-ip=91.218.175.186 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=HS2DNqPoHrMr86/7fyMQRw3X2SfMSsS/w2jgXzblZj4=; b=vA3VH49YCcbP41sLGedvzTPAn2RynBfx0oSwhUmEScLf6JBSIVcYOlbbQtSrx3ASP3zNY2 QbA4jIQAfA8EGNBrsQw7YFPAhjsPQRPuH18QPrjmH0NrFuOiswNii8I0E2VRhipLZCA6eZ 3eBxPfmco1kleAeQooJV/izdzqViSac= 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 7/7] bcachefs: add support for FS_IOC_GETSYSFSNAME Date: Tue, 6 Feb 2024 15:18:55 -0500 Message-ID: <20240206201858.952303-8-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: 1790182320108275943 X-GMAIL-MSGID: 1790182320108275943 |
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/bcachefs/fs.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/fs/bcachefs/fs.c b/fs/bcachefs/fs.c index 68e9a89e42bb..785438dbe7ef 100644 --- a/fs/bcachefs/fs.c +++ b/fs/bcachefs/fs.c @@ -1947,6 +1947,7 @@ static struct dentry *bch2_mount(struct file_system_type *fs_type, sb->s_time_min = div_s64(S64_MIN, c->sb.time_units_per_sec) + 1; sb->s_time_max = div_s64(S64_MAX, c->sb.time_units_per_sec); super_set_uuid(sb, c->sb.user_uuid.b, sizeof(c->sb.user_uuid)); + snprintf(sb->s_sysfs_name, sizeof(sb->s_sysfs_name), "%pU", c->sb.user_uuid.b); c->vfs_sb = sb; strscpy(sb->s_id, c->name, sizeof(sb->s_id));