Received: by 2002:a05:7412:798b:b0:fc:a2b0:25d7 with SMTP id fb11csp434047rdb; Thu, 22 Feb 2024 08:08:53 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVK5eI5r+YZxVF1TxZ8tCoaLZL5uRejj5L0Cv/+QssSWHRNVtzRDLMuIi+H/kjZew7DWZihSbX0fFMsil5QY5A18A6tuAL3fIW+P0bzZQ== X-Google-Smtp-Source: AGHT+IEYtS+9npH8o50VRE58L2WBUvIuehwC50v0tFaxF5QTXLuoQR5XqUq37K2q78obfxtwUNnr X-Received: by 2002:a50:fb83:0:b0:563:d16b:a04f with SMTP id e3-20020a50fb83000000b00563d16ba04fmr11005686edq.42.1708618133267; Thu, 22 Feb 2024 08:08:53 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708618133; cv=pass; d=google.com; s=arc-20160816; b=gcC5CNxtj8sMuWVoqyTwK6wcPE+X2rcna6lPwTZOpt7FXeNuDssw8Gq5LuPnJ8rD6g CvsY9zaR/SjZAVRBZig/Y62oeMPPomzo/bVu8vyYcVdOyN1RhU5TpGCjDlCb8bRpabh+ aHdo10yogMRdu1uHC1f06r303qdJ4b8Z3JjQLZINGzgvIlF+44raUzN6xyO+/ekZdlVa zfshy7CEiDcmLtdvZm27Iuj4qcV9jNh/tYKFzZ/jXEfIRIQ7yXGN8vAYsskdBk+u1yz5 3D8IdxPjDRuqqP4telFBKkvk2woagKxs91E9EuKqMXeiqkcaiLhqDAgIWJ0StXe+X1At Dc6A== 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:date:dkim-signature:dkim-signature:dkim-signature :dkim-signature; bh=1KMBzPDx1ur8HmYjTZ/70Mhlnz+IVPKsaUfFS7zXjNc=; fh=en/nrxOd9NRTXSC9wVdRlCJlbft2Qyv0/sGOaZQ9F5E=; b=vMUvxEKEgsOImKU7A0YN9Gj87Y1MA3Ue4GZohUY3+YCPtR2LSIZqSpA3+aug49X0Lc iSNQ5G/QvUrTzf0+4F1pkLAt2HQAKMy57d8sQtmh/nA0IUm1zaDyCnsGZ9sRrLnsZEj4 cCpxpSGaAlFZ2DBF86sMYMWKRbCu1snIcVXYyjoFuHHnYYQOsxKwnOWw54jIhsx3TQzu GdhqEcUVjwhCCUM8rXgDTNbdmmyUtMGQSiupqXF27+Zbr98HlEFeHhY6Zj+FzwqABZFu +YXmvDhlHh4/pCpw1lrxYyMCkMI0tVd2240MA3CWNYGdLIqznNfRKftGz82lGdDIsIlN JGzQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=ePxFagu8; dkim=neutral (no key) header.i=@suse.cz header.s=susede2_ed25519; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=ePxFagu8; dkim=neutral (no key) header.i=@suse.cz header.s=susede2_ed25519 header.b="2WLpqt/e"; arc=pass (i=1 spf=pass spfdomain=suse.cz dkim=pass dkdomain=suse.cz dkim=pass dkdomain=suse.cz); spf=pass (google.com: domain of linux-kernel+bounces-76854-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-76854-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id z19-20020a50cd13000000b00563c671ef78si5559907edi.433.2024.02.22.08.08.53 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Feb 2024 08:08:53 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-76854-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=ePxFagu8; dkim=neutral (no key) header.i=@suse.cz header.s=susede2_ed25519; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=ePxFagu8; dkim=neutral (no key) header.i=@suse.cz header.s=susede2_ed25519 header.b="2WLpqt/e"; arc=pass (i=1 spf=pass spfdomain=suse.cz dkim=pass dkdomain=suse.cz dkim=pass dkdomain=suse.cz); spf=pass (google.com: domain of linux-kernel+bounces-76854-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-76854-linux.lists.archive=gmail.com@vger.kernel.org" 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 am.mirrors.kernel.org (Postfix) with ESMTPS id D49AE1F2689C for ; Thu, 22 Feb 2024 16:08:52 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9AA17151CD9; Thu, 22 Feb 2024 16:08:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=suse.cz header.i=@suse.cz header.b="ePxFagu8"; dkim=permerror (0-bit key) header.d=suse.cz header.i=@suse.cz header.b="2WLpqt/e"; dkim=pass (1024-bit key) header.d=suse.cz header.i=@suse.cz header.b="ePxFagu8"; dkim=permerror (0-bit key) header.d=suse.cz header.i=@suse.cz header.b="2WLpqt/e" Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.223.130]) (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 CCAA414F9CB; Thu, 22 Feb 2024 16:08:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=195.135.223.130 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708618111; cv=none; b=BjMMUIz680Ig4eWzCH5qeQmUKjB1GEkSoD3ku4GGaV+J19hHMz/4r/+M2JcMctpotTPtF496grioLtUqxfNAhDda3BamLH7m7p7XihZQmnzzuyAKBxka8g4E0GkVc9nz6CwfOGu6eBOYv0ElU5tgBoz3zB+NxaK9uFtUvC8Rl60= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708618111; c=relaxed/simple; bh=48BXanacAVUSV46yQ32xR3V/Cq8Aa0DPP/5keWQqljg=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=MyAlpM8BnF4J9Pw6E1G/DftALKylUct45mgzzxGjZ4A3ZnEuM8+c5IsSmXnzWnWhNnCMNFYwT4Dtgy3IAMpQiLrKe+FyoUtkdpBYPOYqBS0d+A/H4q9sNS5bEr7MrGn4mhm3aS4+zIIICfB9wmaEn6PtjCtLK6stEDvsuuUPi7k= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=suse.cz; spf=pass smtp.mailfrom=suse.cz; dkim=pass (1024-bit key) header.d=suse.cz header.i=@suse.cz header.b=ePxFagu8; dkim=permerror (0-bit key) header.d=suse.cz header.i=@suse.cz header.b=2WLpqt/e; dkim=pass (1024-bit key) header.d=suse.cz header.i=@suse.cz header.b=ePxFagu8; dkim=permerror (0-bit key) header.d=suse.cz header.i=@suse.cz header.b=2WLpqt/e; arc=none smtp.client-ip=195.135.223.130 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=suse.cz Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=suse.cz Received: from imap2.dmz-prg2.suse.org (imap2.dmz-prg2.suse.org [10.150.64.98]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id 035B3222CA; Thu, 22 Feb 2024 16:08:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1708618108; h=from:from:reply-to: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=1KMBzPDx1ur8HmYjTZ/70Mhlnz+IVPKsaUfFS7zXjNc=; b=ePxFagu8i0lj4DsKzPI17lRX4vqKZW9FTg8nGFozKqIPfQqrP5m5wKeQkV7rrkLVzkLv7/ 7q8OVxHyi4+vyTc0hN3hRlqhuwJIF40pymCfE4Gl3hAiltelvqm75LVgK/GZZhijAm5DMu Hxrnoluxhyn/Rcj3pVV51zNmHsrztjk= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1708618108; h=from:from:reply-to: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=1KMBzPDx1ur8HmYjTZ/70Mhlnz+IVPKsaUfFS7zXjNc=; b=2WLpqt/eod4ZPqZz/l8x5G34c8ziq1ZzbWZF2kFTZSoQCKDiXiDTSsdsREN8fMjlMObeQ8 WH0J00m1ziqL+uAA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1708618108; h=from:from:reply-to: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=1KMBzPDx1ur8HmYjTZ/70Mhlnz+IVPKsaUfFS7zXjNc=; b=ePxFagu8i0lj4DsKzPI17lRX4vqKZW9FTg8nGFozKqIPfQqrP5m5wKeQkV7rrkLVzkLv7/ 7q8OVxHyi4+vyTc0hN3hRlqhuwJIF40pymCfE4Gl3hAiltelvqm75LVgK/GZZhijAm5DMu Hxrnoluxhyn/Rcj3pVV51zNmHsrztjk= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1708618108; h=from:from:reply-to: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=1KMBzPDx1ur8HmYjTZ/70Mhlnz+IVPKsaUfFS7zXjNc=; b=2WLpqt/eod4ZPqZz/l8x5G34c8ziq1ZzbWZF2kFTZSoQCKDiXiDTSsdsREN8fMjlMObeQ8 WH0J00m1ziqL+uAA== Received: from imap2.dmz-prg2.suse.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by imap2.dmz-prg2.suse.org (Postfix) with ESMTPS id EB6CC13A6B; Thu, 22 Feb 2024 16:08:27 +0000 (UTC) Received: from dovecot-director2.suse.de ([10.150.64.162]) by imap2.dmz-prg2.suse.org with ESMTPSA id g/1vOXtx12XbegAAn2gu4w (envelope-from ); Thu, 22 Feb 2024 16:08:27 +0000 Received: by quack3.suse.cz (Postfix, from userid 1000) id 6F625A0807; Thu, 22 Feb 2024 17:08:23 +0100 (CET) Date: Thu, 22 Feb 2024 17:08:23 +0100 From: Jan Kara To: Miklos Szeredi Cc: Jan Kara , 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 Subject: Re: [Lsf-pc] [LSF TOPIC] statx extensions for subvol/snapshot filesystems & more Message-ID: <20240222160823.pclx6isoyaf7l64r@quack3> References: <2uvhm6gweyl7iyyp2xpfryvcu2g3padagaeqcbiavjyiis6prl@yjm725bizncq> <20240221210811.GA1161565@perftesting> <20240222110138.ckai4sxiin3a74ku@quack3> 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: Authentication-Results: smtp-out1.suse.de; none X-Spam-Level: X-Spam-Score: -0.80 X-Spamd-Result: default: False [-0.80 / 50.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[text/plain]; RCVD_COUNT_THREE(0.00)[3]; DKIM_SIGNED(0.00)[suse.cz:s=susede2_rsa,suse.cz:s=susede2_ed25519]; NEURAL_HAM_SHORT(-0.20)[-1.000]; RCPT_COUNT_SEVEN(0.00)[9]; DBL_BLOCKED_OPENRESOLVER(0.00)[suse.com:email]; FUZZY_BLOCKED(0.00)[rspamd.com]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; MID_RHS_NOT_FQDN(0.50)[]; RCVD_TLS_ALL(0.00)[]; BAYES_HAM(-0.00)[42.06%] X-Spam-Flag: NO On Thu 22-02-24 13:48:45, Miklos Szeredi wrote: > 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 uses fsid because we have standard interface for querying fsid (statfs(2)) and because not all filesystems (in particular virtual ones) bother with uuid. At least the first thing is being changed now. > > 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. True. If we are going to use this scheme more widely, we need to have a look whether the remaining cases need fixing or we can just ignore them. They were not very interesting for fanotify so we moved on. > Also even uuid is just a statistically unique > identifier, while st_dev was guaranteed to be unique (but not > persistent, like uuid). Well, everything is just statistically true in this world :) If you have conflicting uuids, you are likely to see also other problems so I would not be too concerned about that. > 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. I agree we should give this a good thought which identification of a filesystem is the best. Honza -- Jan Kara SUSE Labs, CR