From patchwork Tue Feb 6 20:18:55 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kent Overstreet X-Patchwork-Id: 13547773 Received: from out-173.mta0.migadu.com (out-173.mta0.migadu.com [91.218.175.173]) (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 491D11BF3A for ; Tue, 6 Feb 2024 20:19:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.218.175.173 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707250757; cv=none; b=DpEcSg2D1MxebGhJ2db9kbu08xt1eLNUcB4us90e5yJDEUfrPGYzaMjwXPSQEAv1/dbkI5fZMseZfGtKv7J3+yk+f4HICTFOcuhEVPlRQwQx6pbNtliAzM6OhpomzsxvsGUduKx8Rz2XV43wjWTWbsc12UvakOJTK0y/JLnDKws= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707250757; c=relaxed/simple; bh=X3Sg2AcjCoYlzGPQWL0/90G/r75mZK7+imgUhXh2xWA=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=uB4/0CBmZuQNjYim26mgg6KTIasmkdwr9G4UqRAWDhTaaHJCkerO4Wdz+3BUNqJwRJGk1/P9LdnKQQuK+s5oiNV/hwkFO8WDGX/VEEvo01BZGfLmuOI8zyO6AqUITWQTsyBm7AR5xdJp5Bz03FpcTwR/LKYYi5HCLC/3Rt3RWDQ= 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.173 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="vA3VH49Y" 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-fsdevel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 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));