Received: by 2002:a05:7412:798b:b0:fc:a2b0:25d7 with SMTP id fb11csp325747rdb; Thu, 22 Feb 2024 05:11:11 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCU8EPfqU7DipQoQUvmCReA9CuFTxk86qCjOtrtElWKx7bxMdIXpZ+YF+28Q4BCTqqi9Z5/sw7l7s3QgM8Mr+/x8ZXv1fmF/1VllCsKpPw== X-Google-Smtp-Source: AGHT+IHSzFyojec9dW0BEzA7D1nPcqZk52G0WixK690ftB3AM+8WvxsDRFDZerysOKklA1la4EJt X-Received: by 2002:a1f:4c45:0:b0:4cb:2662:3656 with SMTP id z66-20020a1f4c45000000b004cb26623656mr9294146vka.0.1708607471543; Thu, 22 Feb 2024 05:11:11 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708607471; cv=pass; d=google.com; s=arc-20160816; b=Vm21zX74dKiStRKNSU8FR8St83Wqos94+lAWOndHRmkby/IB8bmhIC6OJuJ+PRFIRG C0GyWHAtfszmHAW/kgbaQxOLSXvEE2V1ky9k5dl8GIVttEPsCfZB4l9eQhM9J1KGMBn7 E5K5kHOzU14zj+reS9xdlPaEGGFu2JgZjogjYXxYTtBXHxxZBa5iALLhptbjPhkM8RpB cvs+BhXI32gAQo34Twxilx5xcYktN3LsTJrbmK2A1vUWl4sWBmUViwC28IgXs5/XdFxv IzkweD4Q72uEdiDfInGEMeiWYr1QYG5WfO4oVhxVrVTGipCQWu5suO4hDxIrQMK0i80i 2NNA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :dkim-signature; bh=se6gwk0fwHmTpR5MGtDkHZ8SwA4LJ2DR5cRZWhWZG0c=; fh=HITP+M2NlVuMJg1xdzqSN0bFIyivFTrU7/KHY4XwUPU=; b=lQLjuqvw41PO1749XnPUHk5+PRvfwlQnfjFgYb0uYuSVBE2Lod50/k/A3Gw4CHzWTE 71KclaCW0PqtDtVB9oyS6NEE2JMgRoNeYaVCE2J5B1Llvr2EBPIWdMTDMo+BUP5CePvj wLsPyxLYwy3+9vxCWJCAKcpMU8J6feINUbSMkExQ6BXIriUM0xZUDp21cKOKQa5Jh/yr n8v9vR6XSwvW9mv1DNNHYxG8HRrPqe+7Nxu3G9ttDsNDBzQb3bYJbYJsf6CHA+zcF4uT oN+0hsWhvqxMrPGgq5sm8tt8bvFSKSh4qwUVK9QlA/wNoCxax9PT4eV1K8gmpOxq0rRv mcng==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@szeredi.hu header.s=google header.b=Yc3SpNAl; arc=pass (i=1 spf=pass spfdomain=szeredi.hu dkim=pass dkdomain=szeredi.hu dmarc=pass fromdomain=szeredi.hu); spf=pass (google.com: domain of linux-kernel+bounces-76562-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-76562-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=szeredi.hu Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id fo5-20020a05612229c500b004c7dca20d6csi1704073vkb.239.2024.02.22.05.11.11 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Feb 2024 05:11:11 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-76562-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=@szeredi.hu header.s=google header.b=Yc3SpNAl; arc=pass (i=1 spf=pass spfdomain=szeredi.hu dkim=pass dkdomain=szeredi.hu dmarc=pass fromdomain=szeredi.hu); spf=pass (google.com: domain of linux-kernel+bounces-76562-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-76562-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=szeredi.hu 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 423D51C20FE5 for ; Thu, 22 Feb 2024 13:11:11 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5F2D2133296; Thu, 22 Feb 2024 13:10:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=szeredi.hu header.i=@szeredi.hu header.b="Yc3SpNAl" Received: from mail-ej1-f44.google.com (mail-ej1-f44.google.com [209.85.218.44]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B94AE12EBCC for ; Thu, 22 Feb 2024 13:10:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.44 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708607455; cv=none; b=ufjn4d9glDiXbvW7eXBtssZUFubifE+2ynIxPC45CEjzEXo/cRIJOEvGbu5+padhn9onfpOtya3uuA8uX86mSb0naBYWfX8vJ8Ep8LaENadDHICd4mjoYFKq9MtOEqHViU94pRu0cKBxZqXH2PH1T4BigamHucytxVAcAEColIA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708607455; c=relaxed/simple; bh=SGQVs5xxceT8/USGNqqeQ6uWxE7eZGHnoNAkPYvICYQ=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=pxJ4ObfgRKzOqVVVYh1+C0iMqpHn8jTDTqYv91pq2KJ8yatjCo4k9WZISXPiT2Hn0lSsh0a0MaxlWELcFS9+DZEJE60qzg74fMZtM0DBjuE+UazI+WwuBRg+xN9vi160pfpTra3y6lPR38yhZj5Ppi+Vy2TZ6x+mrC+953PqQPk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=szeredi.hu; spf=pass smtp.mailfrom=szeredi.hu; dkim=pass (1024-bit key) header.d=szeredi.hu header.i=@szeredi.hu header.b=Yc3SpNAl; arc=none smtp.client-ip=209.85.218.44 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=szeredi.hu Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=szeredi.hu Received: by mail-ej1-f44.google.com with SMTP id a640c23a62f3a-a3e75e30d36so150483666b.1 for ; Thu, 22 Feb 2024 05:10:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=szeredi.hu; s=google; t=1708607452; x=1709212252; darn=vger.kernel.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=se6gwk0fwHmTpR5MGtDkHZ8SwA4LJ2DR5cRZWhWZG0c=; b=Yc3SpNAlrmTHJGX0w2qrDJv0r3ScLH1awPDKhzSWU7MZNWrAhrj8hI/Z7Zu3msbQCX JEXO5xYeavatsIIlwbLwxXorZFZhWkvpqpP3jUAmj5PNp5OXAg4xwXWzkAD3fC+TtbuJ TA61CmzecgsmGHK1eldjxeT1t2Xwt9W2mo0oE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708607452; x=1709212252; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=se6gwk0fwHmTpR5MGtDkHZ8SwA4LJ2DR5cRZWhWZG0c=; b=XfX51xIWbzTaWNqPCtpK4IX85NnJTI3EPBQg+45RxjJ9KmSfMwZWU7dXYZoVtFvyaI cHemFAiK3hUKUheCoObnKG5dA6A6EgwLZTkI9ZaW1wFFf4nSsecgl5hoJUMpxq/seRZ2 NcclH+r3sx3QF3ArBzM2J4jdRWL0mYNsjUQrW35FbKF2YH2fzv/ddFQEVL1AuVBvtlaZ jgrV7js62VcSTZjc1o4NkY+D9Vbzp7tAfxeC1BzjQHxHbYDWmRmJPzRvoFDsdiyF6QTl QlLvCb2qFmGSW9z2Bw3xYDKlTG+Cc53uJ7cckmxIdFDwMTsox7cIbVglCHGlx6iqMaBJ 4pBA== X-Forwarded-Encrypted: i=1; AJvYcCXkTLrlKsrCy0JPjYxfp7mFwdmE6bwEjl7wuPqq8Q3UzQxStry6/Dc0jy+T+iGacCkSHP631dZXs+s8eum3xBGFx6lGXqLeTFRHIYlR X-Gm-Message-State: AOJu0Yw/h59oHh4RkPl3U1SnImklFvLH/g0t774NqSxJ6fNxZPv83V1k LIuUx3d31M+Ao9JJBbdzFtD0TDrzmNUSVurVWjdTzrofYiBbYukRhhgBr6xCLQzEQv2GdXI5upi EALwqKNpHwd5vtcc/KhKdIX+mDn3fVieJal3hLw== X-Received: by 2002:a17:907:76f7:b0:a3e:b57f:2b8a with SMTP id kg23-20020a17090776f700b00a3eb57f2b8amr2222160ejc.10.1708607452084; Thu, 22 Feb 2024 05:10:52 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <2uvhm6gweyl7iyyp2xpfryvcu2g3padagaeqcbiavjyiis6prl@yjm725bizncq> <20240221210811.GA1161565@perftesting> <20240222110138.ckai4sxiin3a74ku@quack3> <20240222114417.wpcdkgsed7wklv3h@quack3> <2tsfxaf2blhcxlkfcagfavz3mnuga3qsjgpytbstvykmcq2prj@icc7vub55i3p> In-Reply-To: <2tsfxaf2blhcxlkfcagfavz3mnuga3qsjgpytbstvykmcq2prj@icc7vub55i3p> From: Miklos Szeredi Date: Thu, 22 Feb 2024 14:10:40 +0100 Message-ID: Subject: Re: [Lsf-pc] [LSF TOPIC] statx extensions for subvol/snapshot filesystems & more To: Kent Overstreet Cc: Jan Kara , Josef Bacik , linux-kernel@vger.kernel.org, linux-bcachefs@vger.kernel.org, linux-fsdevel@vger.kernel.org, lsf-pc@lists.linux-foundation.org, linux-btrfs@vger.kernel.org Content-Type: text/plain; charset="UTF-8" On Thu, 22 Feb 2024 at 12:55, Kent Overstreet wrote: > > On Thu, Feb 22, 2024 at 12:44:17PM +0100, Jan Kara wrote: > > On Thu 22-02-24 06:27:14, Kent Overstreet wrote: > > > My intent is to make a real effort towards getting better interfaces > > > going, prod those maintainers, _then_ look at adding those hacks (that > > > will necessarily be short term solutions since 64 bits is already > > > looking cramped). > > > > OK, fine by me :) So one thing is still not quite clear to me - how do you > > expect the INO_NOT_UNIQUE flag to be used by these apps? Do you expect them > > to use st_dev + st_ino by default and fall back to fsid + fhandle only when > > INO_NOT_UNIQUE is set? > > Shouldn't matter. If they care about performance and they're in some > strange situation where the syscal overhead matters, If it's expensive, then just make the overhead smaller (by adding fh and uuid to statx(2), for example). Using st_ino is also racy in some filesystems, due to the fact that the ino can be reused. If userspace is converted, it should be converted properly, there's just no excuse to add conditional code like that, which makes things more complex and less reliable. Thanks, Miklos