Message ID | 20240205200529.546646-7-kent.overstreet@linux.dev |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel+bounces-53892-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:168b:b0:106:860b:bbdd with SMTP id ma11csp1160319dyb; Mon, 5 Feb 2024 13:41:14 -0800 (PST) X-Google-Smtp-Source: AGHT+IEmlAQVmPWmIMnG/E/FvZ7u5mczJf91gvR++o9bxznI9U6q8yVXBeOS9MMqgjEXSnJNkIw9 X-Received: by 2002:ad4:5def:0:b0:68c:7903:827b with SMTP id jn15-20020ad45def000000b0068c7903827bmr249008qvb.62.1707169274695; Mon, 05 Feb 2024 13:41:14 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707169274; cv=pass; d=google.com; s=arc-20160816; b=ngx62jdvvQw9mSEI2BUvtTvb/6H0PEbhhGiEI8mpOu7PerpSUcQSfuhaF7+xveOI0V gamyIirVJyLA+X/wD4koY27LeZMD+VLQ8hFmo9/B2HgYe5m3uE+VJOfXfipk7gVNgCFg GQVvyB9VI4lf4uqYcLUBQAtpta/3UCPNIMTLOQL5T2i4yw4M2ATWPRNLyYbv7ThH9hv0 g+UenTC3hSOdKLilyD3UV2Q6DuKC3u1w9wYNR3OHOySQHtTCE0CRslCJ1enYiqU2/yuj PX+ruLn+JVmWoUdNdKGxcZQxIDDR52VNz4QOkQwOmswSUf8TJGqlvTvkZ/UoxE8bXqeY Ngxg== 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=NLVu6z9oDG9sN6mZGh4y4P6bs4UjmMpsBscmXPUe1bU=; fh=7tJBBxb7D4UOrqqB0DKhUeGrX+ga2r/m0ii06FN4m8E=; b=ssDgk8hSGAk4WT2ajoDcoDxk8xgOOF8HtkQ7FcYa2CUjQ+SXXHxRMAiDrFiovWSPuU MNe3fx9PrKSQ3SU4uQBscM87j6N6GxlP5cZnenrNxWWQenJF9RYWmCDrDoqqE+wLPPxx qdQLj3Uw4Ql9NjxFDpIZ9BuQE/Og/dPkV0p2cF6HZ7ncfP6BWJyVsJgScO19IzwLwhkV qOlNA+3xKLCmQffnOA+60/GbFIMSTxCmp9G8IZUBrkwJtGW5et8jtq2gwbqG28KjE/W8 EFDF4v2HCmrRx47GqkbWWo9l+9WzHkrlPeJrFN5qrxLn4V/EMCpRDy3SrVXBrZBRDhw7 OWng==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=PvxVcBYt; 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-53892-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-53892-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev X-Forwarded-Encrypted: i=1; AJvYcCUex6hJGqiW5AK9yJdPjFBy3Nv1581Tq8PX/90yZNr5PJ4Z48IzFKEkgci+y0kq3V4sY1ovnqnxNG1ZR8JMOYLalbSd9w== Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id vr16-20020a05620a55b000b0078544cd0c66si728104qkn.453.2024.02.05.13.41.14 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 05 Feb 2024 13:41:14 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-53892-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=PvxVcBYt; 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-53892-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-53892-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 79AA31C279C1 for <ouuuleilei@gmail.com>; Mon, 5 Feb 2024 21:41:14 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5198212D165; Mon, 5 Feb 2024 20:06:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="PvxVcBYt" Received: from out-184.mta0.migadu.com (out-184.mta0.migadu.com [91.218.175.184]) (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 A84B612C521 for <linux-kernel@vger.kernel.org>; Mon, 5 Feb 2024 20:06:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.218.175.184 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707163574; cv=none; b=BLCWMvY957+ra0x4vgX0Qb/dwAhRHIt1ihVDhKCZSCPG/0unXg/nPvHukXhFbG3/WOYlWHekfEEIDB8mk/4cMt7TYC7bnM/rUMg0hi25i+l4X3HKBSueArfBHPUNpSVdnB+mLrAFPk0QW2KbhwUzjjXslGMsWI2qLmHAUZr0i1M= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707163574; c=relaxed/simple; bh=XgF3fY5kEN+vUXqGN7hKlRnAVg3Ylev2ReQ2bfeBKZI=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=rXidVnczbV4o8ohUwe6UcTya1kP5CU6ht+x1U58lk00VRPALHJdjWcLzUTJI4UmOBHKW0K0bUgMpneA1U2DvPl44lPGiQmpnbYvy0UGC57o0Y+w8OTb+yHgt2lnTCXtMDL6xLz5xIPsDGDxmu8zDqOda03oossFcoHDcdLjdC7g= 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=PvxVcBYt; arc=none smtp.client-ip=91.218.175.184 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=1707163571; 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=NLVu6z9oDG9sN6mZGh4y4P6bs4UjmMpsBscmXPUe1bU=; b=PvxVcBYt7kYfaf12e30W3x0/H8h/HJO72Cemqvu76NHpwi78k4o2zorkFCEuaYAkT9nwB1 6GHJLaLgmqy4xQSlf/Z03MErkO7mBHraWYj6eTSIwBY2/H1VmgcZXTVjvKPvB4FOGj4fZL OmdQW4FtTPe1DR1sxWKgQfbIK56J9Hk= From: Kent Overstreet <kent.overstreet@linux.dev> 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 <kent.overstreet@linux.dev> Subject: [PATCH 6/6] bcachefs: add support for FS_IOC_GETSYSFSNAME Date: Mon, 5 Feb 2024 15:05:17 -0500 Message-ID: <20240205200529.546646-7-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-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: 1790096729073964584 X-GMAIL-MSGID: 1790096729073964584 |
Series |
filesystem visibility ioctls
|
|
Commit Message
Kent Overstreet
Feb. 5, 2024, 8:05 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 77ea61090e91..50b2fd3ddd23 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); sb->s_uuid = 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));