Received: by 2002:a05:7412:798b:b0:fc:a2b0:25d7 with SMTP id fb11csp312969rdb; Thu, 22 Feb 2024 04:49:14 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXWChJ0d9I4GfP5DNj0aEHuwr6TGRFNeXOeYw4paLvvQpNy/cnWTT3CmSnv7rXdqcYqxTe2sbxSSAZmrFjaqUy0A1H22wxLS26D01BJBg== X-Google-Smtp-Source: AGHT+IGy2QoDN48u8wqq4PLvbullhpuPnjOBKIxoGWz4Lk73ri7CGagWgLsT4r57Sz54cXt52qLr X-Received: by 2002:a05:6a21:150b:b0:1a0:6856:d19b with SMTP id nq11-20020a056a21150b00b001a06856d19bmr23405928pzb.6.1708606153970; Thu, 22 Feb 2024 04:49:13 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708606153; cv=pass; d=google.com; s=arc-20160816; b=w6rlhsfzFQ2+u7sj7WnTxsu+s20iliHIyDbZgFrmzZ2bF9RAMwxngihyXlyh0YHv2Z HNH2Y/hrRMbl/Q2nyIZlVpIdYD+pZvFEq/KbKHf+ZUXWwlrYIMGCgh/yf1Gq/2ankh/c B5CsyYPvlobUw/HLzVwxeg9ES709PQM4WS8XZV4Aaxd9riW6GVWhe7JJCTAqKr818DFg ++oVWtwKJ5GdI5DcOgVKBlygzO98QJyrSSEGjMfFf4G3dDWFJY2rq2V7BtZLUzrkrOks iyA6yHiCVNsSaxPVWcJMAchp40OlxbtDABl4yb/+d765R5J0xQEm1cQv4kTWXCfUi72t xXKQ== 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=IFwr9ha9a/GO5zeQAiQ5BbOipoVYz0stbyW2PYDXp3k=; fh=cTPRNVCfYeYPrdWeT14R1HG8SgT3ZYE7Y0RW92GDLas=; b=KSySL3CbJZKBvoMA1Oa7S2d2wVCWDJQtqyCm8dRd/pNrRY+mDhz9WDXYo5YykgUsBH 9086FuV7Q0gbnEndyBFqHgP1OXQPIA75Er/mcV2fEZwPR/qMmoBxwCyaWek7LwnR2KmM lTjGTROM8EgbqymThtfZNde3e5F2Yk9m7wZptpqU7uqOBamJg3eu3JvrG8JFCvi3sgrt BLwRI+87QeR/3VDiGwYbwFJJd0ywNC4XAKh6aQTEjc4hoQRYg0sS46YUHhX8LSKyXNFT zzsnMVvS6OO7iJoQ4n9ehv2tqzVtsVYEx2KkKdMUkBiXWPk2iCiVImeNn2Id/wrkUoHg M2kw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@szeredi.hu header.s=google header.b=fll1RrOO; 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-76541-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-76541-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=szeredi.hu Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id e24-20020a17090a9a9800b0029a31cd3dffsi2219210pjp.152.2024.02.22.04.49.13 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Feb 2024 04:49:13 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-76541-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=@szeredi.hu header.s=google header.b=fll1RrOO; 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-76541-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-76541-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id A3B1C281304 for ; Thu, 22 Feb 2024 12:49:13 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7B46812E1F4; Thu, 22 Feb 2024 12:49:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=szeredi.hu header.i=@szeredi.hu header.b="fll1RrOO" 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 E56304776E for ; Thu, 22 Feb 2024 12:48:58 +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=1708606140; cv=none; b=YAccO/YIa/8fiwhx8tVrlZea4vBDXSMqtvMdS6uocD5eQb2TF2b3E4R7+aG6mSm5esPXJj7MyWhjXOrMisjaFRC7O6836sD0sSXPbuDvTm4L9CZn5ADp0nzTilsHauMAFezKLFzLRe7NLOhKei5MUaaWhDiHmi/8YBRmOOBfHkk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708606140; c=relaxed/simple; bh=IaZnxBsuLBFhLCtq4o+sFHyJl6jTMn3zf5TloDU0gxU=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=URu3MoEA4cLksaG2e1PYZ242svylSbKtmn0rINnjIjiPKNKwBB2MSq35quVk7bipRviCYF45hb5sUi7k+EkUQGSUMcaBvz6m02LUHH0YwTsdpy7ySXr6T722KpiWSbtxBzEGqcg7KZzlU6HlPjByIfq8+VF+dkdltjMAo+9CstI= 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=fll1RrOO; 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-a3ee69976c9so497629066b.0 for ; Thu, 22 Feb 2024 04:48:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=szeredi.hu; s=google; t=1708606137; x=1709210937; 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=IFwr9ha9a/GO5zeQAiQ5BbOipoVYz0stbyW2PYDXp3k=; b=fll1RrOO7XDrUfc5NNSLxz60HeekCbr1nrS34Ikie3pwl0++yp9qhLuyYzJYuYXNqI Uu+9xnchOtP9xOujSO3RFSI4ySdeN7GoYp8ycmSkWXcNPLwmd2f/ru2dTCB3mj01D8gE Nh25l644A0xVM2kBAwJR0PnomXBWj4u3Ss9j0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708606137; x=1709210937; 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=IFwr9ha9a/GO5zeQAiQ5BbOipoVYz0stbyW2PYDXp3k=; b=Fs98s2R1hMZPW/DBtmL9BUIunuyt7Cjjrl8h8iH29DGKca7WSZ/3cVQGqV2cY+u3eG DwjYq6+w4ey6GEgBpYh6nakcXO+06eglOazzVm3Sx76AxMvmudPikDf06UcUBKxASlo1 IcEGfllN1hIX9EdYRb+SWTmEZ2vwRaAsSn+JRmCo7TXjkcDE6EOueuZxdOQgR72LNPlc JgZ+viCL0rkCky8Cel3rg1y/6Rrf41/telNZLQ8ZOPwRM3vgy9VNLlditG2QauWhdIeN djJrelSaKR6QbQ7GlX7DzVZZRzErPJ7ltDcfzAcYF+xITKDC6CHymzGALO9RJW3wSJF9 GP6w== X-Forwarded-Encrypted: i=1; AJvYcCXWJfUTtFuapC+vFTbo8KqiKAqvZ7alKOPdDkS0Z9RaHlwt1HLbtdbicB7OTaNWKk/993wwxe3BXvtKMHQJhqOPqflMpSpD5TSHmZ1A X-Gm-Message-State: AOJu0Ywfi7QyP9piCAK0VjHq3xabj3lAGX5i7xXSdvaXd8Ns18KSG7Tm ZGhyojIUuJN69N7YzHu1EgU2eSktCe1wVBa86rxyyX/xyDvrXihZvY8QemTIT7ZnTi+cp7x9Y+B zsK8Jm4n+h1tK6uIPho/H+A6wig7JoXta8EE0Cw== X-Received: by 2002:a17:906:c0a:b0:a3f:6513:1489 with SMTP id s10-20020a1709060c0a00b00a3f65131489mr2350336ejf.55.1708606137154; Thu, 22 Feb 2024 04:48:57 -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> In-Reply-To: <20240222110138.ckai4sxiin3a74ku@quack3> From: Miklos Szeredi Date: Thu, 22 Feb 2024 13:48:45 +0100 Message-ID: Subject: Re: [Lsf-pc] [LSF TOPIC] statx extensions for subvol/snapshot filesystems & more To: Jan Kara Cc: Kent Overstreet , 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:01, Jan Kara wrote: > I think for "unique inode identifier" we don't even have to come up with > new APIs. The file handle + fsid pair is an established way to do this, Why not uuid? fsid seems to be just a degraded uuid. We can do better with statx and/or statmount. > fanotify successfully uses this as object identifier and Amir did quite > some work for this to be usable for vast majority of filesystems (including Vast majority != all. Also even uuid is just a statistically unique identifier, while st_dev was guaranteed to be unique (but not persistent, like uuid). If we are going to start fixing userspace, then we better make sure to use the right interfaces, that won't have issues in the future. Thanks, Miklos