Received: by 2002:a05:7412:cfc7:b0:fc:a2b0:25d7 with SMTP id by7csp2072410rdb; Tue, 20 Feb 2024 16:51:53 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCX2wrXI6O7nNuMr5xMTiYRiJBAy1JCA3B3EMpUzfbNwYtlmenHfdHFXPfZoxoYT20zW4ecM31VGtx4AL5ac2xlJ7ju3PQSMMXnaNqz7yg== X-Google-Smtp-Source: AGHT+IFvGLV45Zl68O620jk7swi/LbmpwDMXSgdQK17i6CI4bEMkiOoWMrD4+xH6tfeBdrs0wJOB X-Received: by 2002:ac8:5ad5:0:b0:42e:2aec:17d6 with SMTP id d21-20020ac85ad5000000b0042e2aec17d6mr3022869qtd.19.1708476713604; Tue, 20 Feb 2024 16:51:53 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708476713; cv=pass; d=google.com; s=arc-20160816; b=a9wVCHrpygR5jXx22ZSv0SDxbCE0qsy9RHMQZIB6RVQD3d2uTtqA0nVKiWTCwIQTkV 1JETn0dxMdny9kUAXx3thEVJaIbnKhP7FlpRrxTeUihu5xDWdJzBpD1qDqrSH58Psdie LncSt24CRv+XnL+eRO9efgSLtUTQ3jGHnNfAPKkX1Q85SaT2QXVALMtIAL57z3wizPkO zMh2hh01KeGi+7Ci/ZmzsnUvFBPf3YTPKWCkaxKs+YnLhL2bYfcvCvKh1MUnmMOyrk9t pdF0Hwa7KDXmkwJYkd4rnkEczyISA60NoC9f+I4NxumDMyFpZdqrHziH94v1RXxPwwsv kJ7w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-disposition:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:message-id:subject:to:from:dkim-signature:date; bh=QeQZ62U0IKUFM2/iWIPLRfQY3JNRod8vep+oIzxq5XM=; fh=7IbMhQY0PXk03v8lGMjvGmQRKuarXP7fmr3ynfjxVMs=; b=0axfsPtH+IOHQsRCxrfD9E+/QOdP7DM189AYaywCaT0q6Pxd33KETHuVCTNbw7mIEp wIF4d93NBVOII7pIg7dxEM/4X45jQJGSD2n4bP1lsK/6/G49G7cvIIT9hrEW1JwOc+xq X7Rxvr7D6gKfwExhT53Yt8AI2aKctzzhTjfq1fae3SKFIEZCoac8zCdRMkBskhKGNWf6 Q8Ko3/sI2j7XK2ULw27TpBaT6utdf8Jz6nyGKvDpYeG6HwFz+oLyoQ3pTIboX/GKpSn1 0aHXyC/NRNa1jUp5TH0xcm/KUnuB8D93TtFe4M593Ez4NOjt06pkeYLcW1ViCURsBxJy q1ew==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=H49M547S; 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-73882-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-73882-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id w11-20020a05622a134b00b0042e386801e4si112510qtk.411.2024.02.20.16.51.53 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 20 Feb 2024 16:51:53 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-73882-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=H49M547S; 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-73882-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-73882-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 5D3B61C2203E for ; Wed, 21 Feb 2024 00:51:53 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D37894C7E; Wed, 21 Feb 2024 00:51:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="H49M547S" Received: from out-171.mta1.migadu.com (out-171.mta1.migadu.com [95.215.58.171]) (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 09B8679E2; Wed, 21 Feb 2024 00:51:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=95.215.58.171 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708476679; cv=none; b=jUqRGRg6x5bpVWaENPxgrGmZptep832qE+RGZsOpEv+9Y5XMljkKzlmhfqsCbHiVygjY2f3wfx1WmLmz6B4y4XOj/Sfrvg00O4G0ZN/lgcAoAz27ZL83Qw5cPODBVJRLKJgbNz4NCsqtPwN0fY7qem6ITSTMnlk+nuR855piCzs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708476679; c=relaxed/simple; bh=stATvioqgFcpP44fARa+DA0/yEMWLxbE0aX+P6PdUJM=; h=Date:From:To:Subject:Message-ID:MIME-Version:Content-Type: Content-Disposition; b=QzrF8QAxsT0NGpBMKaFt0RbeFmNzkFVDYiu1K/gpEiq1CYZx66IDbTvnzu7aP0rYtnXrbuyru8QbrwqdOaGPjI9sAYb+GAfcYtioOhkkJpUtusskh73WVCf4RFJiB2+pE8ksAyaRlHFSG4egeYUAkb0KCnGstuhwA1qgaGt1z3E= 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=H49M547S; arc=none smtp.client-ip=95.215.58.171 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 Date: Tue, 20 Feb 2024 19:51:05 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1708476675; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type; bh=QeQZ62U0IKUFM2/iWIPLRfQY3JNRod8vep+oIzxq5XM=; b=H49M547SbZDrey/P4MRGbFmwnRNkdWS6zYfMsBC22/Zw8gQnBv0Wu8wa+4/vkIUqmgoZR7 pK9foFV5w4uxp/sgVb5yPeMTpeBKOloiwygyaQPgb+QvJsmL17Y1MIp+pbi7WrrM5uC28g TSrptTxnV5pv7xPBU+Q5tDfFA2fZpcg= X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Kent Overstreet To: linux-bcachefs@vger.kernel.org, linux-btrfs@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, lsf-pc@lists.linux-foundation.org Subject: [LSF TOPIC] statx extensions for subvol/snapshot filesystems & more Message-ID: <2uvhm6gweyl7iyyp2xpfryvcu2g3padagaeqcbiavjyiis6prl@yjm725bizncq> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Migadu-Flow: FLOW_OUT Recently we had a pretty long discussion on statx extensions, which eventually got a bit offtopic but nevertheless hashed out all the major issues. To summarize: - guaranteeing inode number uniqueness is becoming increasingly infeasible, we need a bit to tell userspace "inode number is not unique, use filehandle instead" - we need a new field (st_vol, volume ID) for subvolumes - subvolumes aren't filesystems and st_dev is problematic too - I'd like a bit for flagging subvolume roots, as well That's basic stuff. Beyond that, it would be useful to standardize APIs for - recursively enumerating subvolumes (without walking full fs heirarchy), and translating from volume IDs to paths - exposing snapshot tree structure - which is yet another tree structure we need to expose, completely unrelated to normal fs path tree structure - snapshot recovery - i.e. atomically replacing one subvolume with another subvolume that was a snapshot - setting default subvolume root - exposing disk usage of snapshots & probably more. Hoping to get some real participation from the btrfs crew - if they could talk about what they've done and what else they see a need for, that would be wonderful. Additionally, we tend to not have a lot of userspace people at LSF, but standardizing and improving these APIs is something userspace would _very_ much like us to do, so in addition to the usual crew I'm hoping to bring Neal Gompa to share that perspective. Cheers, Kent