Received: by 2002:a05:7412:bbc7:b0:fc:a2b0:25d7 with SMTP id kh7csp3275514rdb; Tue, 6 Feb 2024 12:21:21 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXdzhgBBW65ZQu2Uaq/40f0ya9Ql5TvPXMlIFjSRcAqciX4+ubrhPhof//7qHuMW6yuffWR7IeQVzW32mt1Bhw4x9BN8FEw1XDiHJSsyA== X-Google-Smtp-Source: AGHT+IEngCd7ybvfsyftZAc/BnPZ6bXJvduTIF0Yig/xm6/5OYK3z4UQD7KPuyH9yDVmrnYevtiY X-Received: by 2002:a05:6a00:2d0c:b0:6e0:4a24:e91 with SMTP id fa12-20020a056a002d0c00b006e04a240e91mr796682pfb.15.1707250881178; Tue, 06 Feb 2024 12:21:21 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707250881; cv=pass; d=google.com; s=arc-20160816; b=CogsEZ1yxV2Em7DOzQHL8nuUi34h7VJig0lVfeFYnfubcJw43o7oZzosMsWQ0t4jkg vs81THcJZ5wL5Ax+zKgHzKORqUrGUZr8k5gVdw0daYSrc+q2/JbxB+otOCp57Wly+G4/ 5hLVue23ASsBtmofPXAPx7KdkR3ZSS9LwpbTQo3GDex+/1cVPCVbA7qDcngrIgsBFw/y ZM8baR4O3+OInvmBlbFtqlzkeHmm4DCc8JLToSMoP98v1WSNCU0uVj8WkMP3cG32sjcQ wuNQZHh9AeCeF1PKBNx5uwtcUulbgJxRZkjRsEg2oN9MU8UgPtKMzd99XpCtole4zC1e y+OQ== 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=EYCIsJ2JYUcuw/nXBpKYUEMNx9nalx705rU5SP86u9g=; b=eaiLNy0XL4BhHgfkioMrLzihxPqgBA9kF58wYtqSE2L3COXJlyLYgAnITOD9KaHUbI adQcXjrr3QP9uYwJBeglOv8PI/xMiwwT5X048cD7JVopZj7bs0NWGO8screIHqzWGYYF NVCITQAE/n1QGKUeel+XPZ5QUWWWwboCBwW0I+1shna0S6S5Kw/Ty7C9nsQCCjPXdk4j n7g5GQk9Jh2K+zSRTRlZtb45t+yOG4uf7tVacIkA2FGwhJ4EEoabii/UuT/Jnv1CShRz BOPDkSqrMbN4gdenJFchgB5IdFw3DXWu7is2CNlrpBRvYzg88o3+o/Vbb2XWLAzbTi/w Dt3g==; 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-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-55588-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; AJvYcCXRjLsdUguSUtOXM9XKJieYzW9nWtJYIYAXXUUwiYLi6L4YYYqR9lsFgCAIMX9aEmJNkBIsKjcebGd7Vt51Ylr2gDew53ILQkE/PkC7MQ== Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id p14-20020a634f4e000000b005cf29b05cf5si2213451pgl.767.2024.02.06.12.21.20 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 06 Feb 2024 12:21:21 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-55588-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=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-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-55588-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 D30302879F2 for ; Tue, 6 Feb 2024 20:21:20 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0CB591BC30; 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="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 ; 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 To: brauner@kernel.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Kent Overstreet 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: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Migadu-Flow: FLOW_OUT Signed-off-by: Kent Overstreet --- 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)); -- 2.43.0