Received: by 2002:a05:7412:798b:b0:fc:a2b0:25d7 with SMTP id fb11csp271936rdb; Thu, 22 Feb 2024 03:19:42 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVSA2B+rc2vMfPJ+MI8s+A7Rmo8+vLuTeKshnEKjhjB8noVeXm/FtLDOjymY4G3xZzHAKI+nc57/bAfmhnI/ChU+akGG612T//dSrJbGA== X-Google-Smtp-Source: AGHT+IHsII6f+cdyij89L+hRQlFpFCwm8p5u1yOwAangEpK8Z+pEDGmAk3mcRKPR+p38Hvyo82eA X-Received: by 2002:a62:6307:0:b0:6e4:7dba:41cf with SMTP id x7-20020a626307000000b006e47dba41cfmr6717571pfb.11.1708600782265; Thu, 22 Feb 2024 03:19:42 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708600782; cv=pass; d=google.com; s=arc-20160816; b=oQJLG+Cqgh0iraLH2lhlmi2JJy1ViF7zmZNifXQ2Grgw8VQr20chKBR9Of0scIn7B8 4L5S527wSjNcmSYVCciPef3exy1/7yrxKLo8IVexoDeUIXpB8zsDC/yKND26suACs+Hs FReOH+yMldb4MjGV6t+3mWMcFBt5d+8bUp7D6t3RX4IYVJeNjdpYbdQKkISHx3r2UbBV B+wYrb8WRuz3mAPgJS55FO5v+7n/sd8g68kr9jfysSR18gVj05LyPmOU1grnS88xy4PC upzB9z0VbECTGGMHc7HOjDnNgUzPksUg4QkEwdDuDtze1L+3C4Xy8/76g/Ps5MTHYqMC wXxA== 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=SLtXP+zArhGcaGCh9YToDwJ5gVLqg/X2spMjxvpVolE=; fh=3idUykWfAa7XSgwjdgWFlKMAJR2+3OvfOvPqeu8UX9o=; b=uWvJiQQGclFcZrVvJ07Q9gJp9aL/uaagVdfB+cEKNGVOdu5WhAcVgETpKBXd9prEwm N21xX74LaZCyrs6D9t/bTGp93J5fNJUl5xzNce2t8sMCdo1uu9U74y7yidAyOjWjkKAE Kj8oIJA/wTzftTj/JucwKGglvu9WBneUuM3nw7fNr7ss+e0TL9kwaQ7KqacGBWfWeYUo t4ZR7h0TVXXQNtk+w4w9SMziGc0B41vBclrS1i+ssN/ycI2bFTHkeKy5IxyyM7s8khoA F7ckQWBAyRBSSQ3tBUprp68hjDkXnb6PmQW67I16GYa0MDJG3DKUNJDazsFlaIsDj+yM 0zxw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=xRwnfgWB; 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-76395-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-76395-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 i7-20020a636d07000000b005d6787271a3si10117715pgc.205.2024.02.22.03.19.42 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Feb 2024 03:19:42 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-76395-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=xRwnfgWB; 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-76395-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-76395-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 F3FBA284554 for ; Thu, 22 Feb 2024 11:19:41 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4857545010; Thu, 22 Feb 2024 11:19:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="xRwnfgWB" Received: from out-175.mta0.migadu.com (out-175.mta0.migadu.com [91.218.175.175]) (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 7561E208A2 for ; Thu, 22 Feb 2024 11:19:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.218.175.175 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708600770; cv=none; b=JmgYYS+YJN4K8UGVTiQNQGDDTwcMNYkEcCd3CkNRKkDS/oeFQN4vKez4DAXCZf0OgXNHL3+BfhxBhQz8G19hivQ0VyqjhqjuacywNbVEKL2+A26gIeWHAK4lYhOVyM6CgiTauffWPKF5M0Ivsg06bmtlXVi59ylnJnQdgiU9I4Y= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708600770; c=relaxed/simple; bh=/Ljrr6CJk+mIUZ+I8p47GxKWHfPQCKx+XO5pmkj2Zdw=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=QpEG0lHiONHGqMl0ndL1AOyGqHWMBG1MERqlu+7Rkt0cfxAWV5C+Om4DbJANpgrjDMB9pzQIApK4Da9rhJBZP72JHNKqKTxn2ZjNTjHBv4PNmV9fwZ8qPfJqyUpTCdfJcP4QFdKPSDAg10Z90KMlrsWDytnERE9O3VyAuW/Cn9Y= 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=xRwnfgWB; arc=none smtp.client-ip=91.218.175.175 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 06:19:19 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1708600766; 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=SLtXP+zArhGcaGCh9YToDwJ5gVLqg/X2spMjxvpVolE=; b=xRwnfgWBwskIO9s8RehDD2wEevpdAGb31vUwSCo5owmykKEtrkxGUWhsToPDvKrJIMX6IE InRMHGnQcTltMb7RlsvY4dnPxWwExlCuk9of76Y8Fmnl7z7EowHUqukB4ToGLfrPzmfeuU ukkv9popOugyzjK0PAJ78Bi1TNRQhPg= 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 11:25:12AM +0100, Miklos Szeredi wrote: > On Thu, 22 Feb 2024 at 10:42, Kent Overstreet wrote: > > > Yeah no, you can't crap multiple 64 bit inode number spaces into 64 > > bits: pigeonhole principle. > > Obviously not. And I have no idea about the inode number allocation > strategy of bcachefs and how many bits would be needed for subvolumes, > etc.. I was just telling what overlayfs does and why. It's a > pragmatic solution that works. I'd very much like to move to better > interfaces, but creating good interfaces is never easy. You say "creating good interfaces is never easy" - but we've got a proposal, that's bounced around a fair bit, and you aren't saying anything concrete. > > We need something better than "hacks". > > That's the end goal, obviously. But we also need to take care of > legacy. Always have. So what are you proposing? > > This isn't a serious proposal. > > If not, then what is? > > BTW to expand on the st_dev_v2 idea, it can be done by adding a > STATX_DEV_V2 query mask. Didn't you see Josef just say they're trying to get away from st_dev? > The other issue is adding subvolume ID. You seem to think that it's > okay to add that to statx and let userspace use (st_ino, st_subvoid) > to identify the inode. I'm saying this is wrong, because it doesn't > work in the general case. No, I explicitly said that when INO_NOT_UNIQUE is set the _filehandle_ would be the means to identify the file.