Received: by 2002:a05:7412:798b:b0:fc:a2b0:25d7 with SMTP id fb11csp231075rdb; Thu, 22 Feb 2024 01:44:53 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVf4l5GktwIyOa0qdPS65fjVweteFjoEf9Wj7meayHreXpFtjca6I/BdgHzjAO8Cd9+sCmkiEjG5XEvp14mUbA0Z5cUEQ2XOgPhj0XlQw== X-Google-Smtp-Source: AGHT+IFLKepWKsHB3f9PBxxeDcXBo5Zx7qioHAIdwT1yijTgauJlCycgbM2Vw9CGR87j0ybcGd43 X-Received: by 2002:a05:620a:3636:b0:787:6fc4:cc78 with SMTP id da54-20020a05620a363600b007876fc4cc78mr8751698qkb.7.1708595093258; Thu, 22 Feb 2024 01:44:53 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708595093; cv=pass; d=google.com; s=arc-20160816; b=y0j372HOdmnnvNALdjtrhDTL+l8JYUgD8+2/vKqAzzcB6AiS5OFqTlwC+rH3PLYmgU f1p72VncgoCmwBp6tzxKKevvQ8fT2o+F7ENnwWADXJl7FtpFUJx5uvLt5np/7AGs/D0i sf2ekK4AY/ybgmkBGa+53fFWS7MtTnStI0xqzdtOdX1m5jW4+pO5xFCTmr1M2VFKAAKy EnxyNE9mSNAjWxUci2vIEW+yRRZPn8MBvqvvkAiB5oDLrbvWf9o0+CeF4f8ukYxSrnaK RXZzXu4icXu3BWsZCf2UnAdr1wsNiUfeXF7xYmQuHx+22GEEc71amSypI89gIk+maj4M Q/mw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:dkim-signature:date; bh=/9kSiEtJHUHHWQj1wTEcJDePb3j+S/ewbxUGuLw4+wU=; fh=3idUykWfAa7XSgwjdgWFlKMAJR2+3OvfOvPqeu8UX9o=; b=VMxqUdjsP4ayCKeIQ8T1vMxcUZR+Z/kejCvbgLUndnPJt3hsFnheqd5rmqvXwI/Afd 4twAblIjErPNTTt5Gaor3kwZ/XZOmEr4xX4tucpHtyDumu95Rh720Tmt4HZZMTkmRk6Q AOuLGqBANqkYNDKNXoBpXO1IPOpj2QPA2kiK56OEBHAHhSfEwz7ZqozBrZI33AEFeDMq RnXkWuuNKPT2eGHy4iYXvqpzlMhTsxXLofgFosC9vgOyDTHYyUnTuxrJkTfxJqaoJhZe RdloJ8QzooHdui2AnWSQv3nMpjChyDFaBRfEgotQoZFfWvJmKBNbPGwc1B+R3rCxk8zA QytQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=Lft8I9ui; 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-76256-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-76256-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 ow33-20020a05620a822100b007872453d88bsi12443258qkn.289.2024.02.22.01.44.53 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Feb 2024 01:44:53 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-76256-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=Lft8I9ui; 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-76256-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-76256-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 07EC21C2343A for ; Thu, 22 Feb 2024 09:44:53 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6E02946444; Thu, 22 Feb 2024 09:42:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="Lft8I9ui" Received: from out-180.mta1.migadu.com (out-180.mta1.migadu.com [95.215.58.180]) (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 970ED45979 for ; Thu, 22 Feb 2024 09:42:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=95.215.58.180 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708594936; cv=none; b=lDs+dXpBF63rsinFnMrASzfbELb1OWL8Exk0tgtp/Tjd+pPlpTmf6jBckL8Vgf5fGYMPrMqjI3XxCYncPw+5Vf2qze3o4xCwLaVJAeihPw3A/Q0y3Hg8bJQxdZHF6PLFrutifHqyqdGcgANFxSCgIGJNXW7aQjDTWySkNQ1Bv0I= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708594936; c=relaxed/simple; bh=ah58RzzFtf/QZ8WIKwVSkToS/angBk2sZBegYkjTVKw=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=s7h2Mp9n9Kh6Ihg4bkI8UDrrwFT6wlgYl18gBLBaDLj98DwJSspaSHIdEyTfDsy/jZDlRN5OPWH7r+chJgAFcUJVsBIxku/rFs6FHtBQEYD5oWtmPDYuSW9Yewk3G6XWhvDVSInVDYlqrMJKxd44vSkFCZqQCPcG/cHB1drU0Vw= 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=Lft8I9ui; arc=none smtp.client-ip=95.215.58.180 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: Thu, 22 Feb 2024 04:42:07 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1708594932; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=/9kSiEtJHUHHWQj1wTEcJDePb3j+S/ewbxUGuLw4+wU=; b=Lft8I9uiOXcqQyQUai0lrAf6AWR+BEusn/kEOxS4KQ/YRPf+u2kR8lTm8+w6Hxw8lcycqj OHZYThCXDF2HbAmefuOk1nd1osIE3VqPGwtz0z0+4XuPpYkbcsZTfyRroLUlqqMJC2ZC8j 3uOHqHu8Gbf55pMA7CF+quTSZ1NxCJw= X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Kent Overstreet To: Miklos Szeredi Cc: Josef Bacik , 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: Re: [LSF TOPIC] statx extensions for subvol/snapshot filesystems & more Message-ID: References: <2uvhm6gweyl7iyyp2xpfryvcu2g3padagaeqcbiavjyiis6prl@yjm725bizncq> <20240221210811.GA1161565@perftesting> 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 In-Reply-To: X-Migadu-Flow: FLOW_OUT On Thu, Feb 22, 2024 at 10:14:20AM +0100, Miklos Szeredi wrote: > On Wed, 21 Feb 2024 at 22:08, Josef Bacik wrote: > > > > On Wed, Feb 21, 2024 at 04:06:34PM +0100, Miklos Szeredi wrote: > > > On Wed, 21 Feb 2024 at 01:51, Kent Overstreet wrote: > > > > > > > > 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" > > > > > > This is a tough one. POSIX says "The st_ino and st_dev fields taken > > > together uniquely identify the file within the system." > > > > > > > Which is what btrfs has done forever, and we've gotten yelled at forever for > > doing it. We have a compromise and a way forward, but it's not a widely held > > view that changing st_dev to give uniqueness is an acceptable solution. It may > > have been for overlayfs because you guys are already doing something special, > > but it's not an option that is afforded the rest of us. > > Overlayfs tries hard not to use st_dev to give uniqueness and instead > partitions the 64bit st_ino space within the same st_dev. There are > various fallback cases, some involve switching st_dev and some using > non-persistent st_ino. Yeah no, you can't crap multiple 64 bit inode number spaces into 64 bits: pigeonhole principle. We need something better than "hacks". > What overlayfs does may or may not be applicable to btrfs/bcachefs, > but that's not my point. My point is that adding a flag to statx does > not solve anything. You can't just say that from now on btrfs > doesn't have use unique st_ino/st_dev because we've just indicated > that in statx and everything is fine. That will trigger the > no-regressions rule and then it's game over. At least I would expect > that to happen. > > What we can do instead is introduce a new API that is better, This isn't a serious proposal.