Received: by 2002:ab2:2994:0:b0:1ef:ca3e:3cd5 with SMTP id n20csp534186lqb; Thu, 14 Mar 2024 20:53:49 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUYcE9jevs7LI54twJi4rDjfLrLP+kshkbTFX/k03r4A1ohyHqEU+hwf3YpKdleXt1wSTHdRdot8PFZsWnx91BKk8YTXvGqKwJhl998gQ== X-Google-Smtp-Source: AGHT+IGAmy2AKSiX8C0aC3U2hnpvvj8TDcNVOaCi+nsYOcX7dGOLhl6qNL+RzYUG75BoL7vpbYx9 X-Received: by 2002:a05:6a00:21d2:b0:6e6:88c3:8b7e with SMTP id t18-20020a056a0021d200b006e688c38b7emr2642498pfj.28.1710474829645; Thu, 14 Mar 2024 20:53:49 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710474829; cv=pass; d=google.com; s=arc-20160816; b=YpPnVgDOxotM0AJVyYwgBop87Id2OY0KGn5c/L+NFUQzqmtzXisJyGsJ+WX1BKTX8j 6VLPUisBa8jyEEAmBz2GdXoWCKoHUSAeGVW/ojDjd3K8vB+e8g/ybnxKlC4AiE3jw3td El41bR12ImJW/HtfY3T418VHQfwnZdL/caQblSVMqWOxpdUCBPMT6tG5sopdn9EGxHN5 l+cL03QNwdEKRP9H/aaOGZK1SwprKoCZR9bnNqmnDWX/KSxgIpnnYvJv/Ks8PzfRb8SK Z9WS+wTJemWFbDu4MwMtCIh3kMP35XcEMKW10DhvKAEUHzUzNwewAzwcLjLCJ9hZJoqq MoDA== 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=38/wt83nJ9aR6snVd8vXn5qYmIdiido/GJdtnp1qpj0=; fh=kotfiah0eacnLzmnBeClrwKOXVe8A2sgAABE/Aneawc=; b=RPhz4pO8EXDWNgjw+fYb1gQuUyvzHe1ATus5XqY1OpQSpMqA4jRdUfpJ4UCtvUtpG2 G3f731Vn04xcnCkLeoDaeNSCsMT99TPaQoZIvI00QAcphtBw+nq4tRjkY1FiO14N6R6x 54bYE7VEQGkAtJrWWxEwBqTzQ68fP3vU7Xn1MLqKyDd+FBL8SI1CO+VJm4lI7Xs803hx qmuH1fUDYL+VpMJQIR+4rLcsOGANtzGo665JCXJDyki9YhUKKsC8HUoiw93yV3MGMRIv zmv5SGb35+atOmwsMNZwheTZgqNydrsYH9uGGqQMp7uCpJWrZDgBXfgbCKDA2uHSNoXV 4IDw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=u5D6vHOw; 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-104037-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-104037-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id h14-20020aa786ce000000b006e68d125d7fsi2683434pfo.110.2024.03.14.20.53.49 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Mar 2024 20:53:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-104037-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=u5D6vHOw; 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-104037-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-104037-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 563FF282C63 for ; Fri, 15 Mar 2024 03:53:49 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 352931172C; Fri, 15 Mar 2024 03:53:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="u5D6vHOw" Received: from out-183.mta1.migadu.com (out-183.mta1.migadu.com [95.215.58.183]) (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 B34BDD53C for ; Fri, 15 Mar 2024 03:53:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=95.215.58.183 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710474803; cv=none; b=ls1RPyWCVy2aTwRZEVBxN3+cU0gqe9hYSnqKaH2EVmg6xGLbREH3iGaFhKtlD+F7+/PVTFmh8mfahKqWEaka6mJiSeRPRA4fSIX2+g4Vkrjllzo/fBad4akEotBvPQnmkL6I1uZW/YtVz6loWdH7F9BRUsM/XA8B/BSrU8P2URk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710474803; c=relaxed/simple; bh=ETe7xjHWW1b2dyWEqu+mzr7jH/S4kWsRcee5sNWNUGs=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=RWqikZ9XZ07JZbk3nKpwIPds2nNiDQoMxbtDBqxLCGQrcHDQwlORFld19jMeeMx0fB8L3d5fTBfwZePTpATcBO89Wd5Xoghe9k2pFecYskwDMdhuGr92DteyHK6maSKt/ulr1UCp3LlfLVxOKG8f/1d97cc2u8BHETROFYxh1Ws= 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=u5D6vHOw; arc=none smtp.client-ip=95.215.58.183 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=1710474799; 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=38/wt83nJ9aR6snVd8vXn5qYmIdiido/GJdtnp1qpj0=; b=u5D6vHOwZvchQp6ixuQd6dz4r6idaKFDKTcaZiRCoPeUnOz8dkiLIFPU+hPcDyLUey1wgr IX7H4UpcQloK5ugvhmpX6jlrV0aR6xfjja6TYxY+toxhvkT82pa+KrWZel/Nwjx0dwoGmU h6sds6520v3+duicIQ6eg7ID/7ou+Hw= From: Kent Overstreet To: torvalds@linux-foundation.org Cc: Kent Overstreet , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, Christian Brauner Subject: [PATCH 2/3] bcachefs: Initialize super_block->s_uuid Date: Thu, 14 Mar 2024 23:53:01 -0400 Message-ID: <20240315035308.3563511-3-kent.overstreet@linux.dev> In-Reply-To: <20240315035308.3563511-1-kent.overstreet@linux.dev> References: <20240315035308.3563511-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 Need to fix this oversight for the new UUID/sysfspath ioctls; also, initialize the sysfs path. Signed-off-by: Kent Overstreet --- fs/bcachefs/fs.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/fs/bcachefs/fs.c b/fs/bcachefs/fs.c index ec9cf4b8faf1..cfc9d90ab179 100644 --- a/fs/bcachefs/fs.c +++ b/fs/bcachefs/fs.c @@ -1881,6 +1881,9 @@ static struct dentry *bch2_mount(struct file_system_type *fs_type, c->vfs_sb = sb; strscpy(sb->s_id, c->name, sizeof(sb->s_id)); + super_set_uuid(sb, c->sb.user_uuid.b, 16); + super_set_sysfs_name_uuid(sb); + ret = super_setup_bdi(sb); if (ret) goto err_put_super; -- 2.43.0