Received: by 2002:a05:7412:d1aa:b0:fc:a2b0:25d7 with SMTP id ba42csp485949rdb; Mon, 29 Jan 2024 08:13:56 -0800 (PST) X-Google-Smtp-Source: AGHT+IEixDlgG8+EDgOUJC1tbWRpok6/VCxhwXut2JnUGYBEtV0RQyiqniounbw5z6hxXhFlcNQj X-Received: by 2002:a05:6a20:8b04:b0:19c:5d8a:d028 with SMTP id l4-20020a056a208b0400b0019c5d8ad028mr2377400pzh.57.1706544836027; Mon, 29 Jan 2024 08:13:56 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706544836; cv=pass; d=google.com; s=arc-20160816; b=saSS3+EYkWTrJ+T3sVhztoYvrvqDuOx9IaMCNhZHVuStZsZT5jR7JzrZ20IQvo6fpI z4u/k0iVl7gaaOIyBzQ4MnFNAZ6hm/BZgqtvlTujc+ggVBMgHGQvrLFLcGcw++UNI6/I Id8yi9SwP1o1nKqjZ83Hk+/dm1b6OJ/KzYRPBN6mMvEjztMmibGbVRz/cDyVkiOsxj2w Zt2Tw7sL6Cd879kCpDf/NJXWJj+YszfNh/oKFiH9mQNpG3QZ7eSCZVW4l4Qb4CNrgrU4 xsWfxGXFONKfD88pJc/RgaKZoSAcYx5ADrxuxWO/YrauGo8p7rUNzJFRpPaliAaiJE3f dlcA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=/AMC2Nqdd7vQZDd0TZYkZLFeQrfHv09+9Lyukx8+2kI=; fh=efaTeW+SDFgGv6jJiPoumguo5JeD3uSOw74q4uHxKBo=; b=SGlOAtZ5QTAUiOgQUARZBR7c3gS+rjslZO3A3mQaVnRHqNthvLkfP+Licwg6znvOY6 qEGo6F3IXg4bTtU6TszQiDv4aVsR9ADWuGmFxlNvsuhIrHrQRepuoRxkPGpa0EV9JPgd BVXueuJYEYTUKmagpr04bsjDQDa8UugKlR+sb4rGzmK2L9/+pAMOX5TzMjSUYC9a4FCO ufv49302pQI/9RnPH7mDFkj0TK7N6GhwjTsfRvOeUF6AQYNaZ3W/0+w/DE97qBqJvwSY U90iTb+eLEE2NSdSyrEbpu5U/6ip+HQk+TUgXyulB0C7GqIY9A0+2ud7D5D7bh2Jgn8Z dMgg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@efficios.com header.s=smtpout1 header.b=eH5y4ydM; arc=pass (i=1 spf=pass spfdomain=efficios.com dkim=pass dkdomain=efficios.com dmarc=pass fromdomain=efficios.com); spf=pass (google.com: domain of linux-kernel+bounces-43044-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-43044-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=efficios.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id cm8-20020a056a020a0800b005b8ebaa2937si6110409pgb.47.2024.01.29.08.13.55 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Jan 2024 08:13:56 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-43044-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@efficios.com header.s=smtpout1 header.b=eH5y4ydM; arc=pass (i=1 spf=pass spfdomain=efficios.com dkim=pass dkdomain=efficios.com dmarc=pass fromdomain=efficios.com); spf=pass (google.com: domain of linux-kernel+bounces-43044-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-43044-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=efficios.com 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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 64F2BB233F8 for ; Mon, 29 Jan 2024 16:00:26 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B0E71155318; Mon, 29 Jan 2024 16:00:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=efficios.com header.i=@efficios.com header.b="eH5y4ydM" Received: from smtpout.efficios.com (smtpout.efficios.com [167.114.26.122]) (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 13D0A155304; Mon, 29 Jan 2024 16:00:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=167.114.26.122 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706544016; cv=none; b=lVV1Gcy99AQ7/CiGJxFRgi88si9ERyeTQXGY5nS3FIflJYqliWQTH5E+VSPQcYYitLzhjCEs7ONZ/eZQks0jVyUqfNk1tALWzEcgVBQnZ2SCqGNAkpQZ/j05KCQRKtQWjtXn1to9LEnmIkBvfSaA9ODru2zCD1OgFghRjF5QdYQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706544016; c=relaxed/simple; bh=d6TFGi8BNctQDCOOatr9FnKfaGcVCb8rRipdC9S04zA=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=lvYOK9a9mCRbWIjEGm5C6tnFMaNwgThrQ4caiL0ywzj/KyxXpVt14l+WQEV428FvfRxLMjr642JRXzP2Jz9TmyoDu7k4I3G0IUjnDpq0PrcyF52jP/rikoJpGOMUhfiBSMHfJP80ZGZ//XkUJ9pMea9HHpw5ZstH5SxPKFPxh38= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=efficios.com; spf=pass smtp.mailfrom=efficios.com; dkim=pass (2048-bit key) header.d=efficios.com header.i=@efficios.com header.b=eH5y4ydM; arc=none smtp.client-ip=167.114.26.122 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=efficios.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=efficios.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=efficios.com; s=smtpout1; t=1706544004; bh=d6TFGi8BNctQDCOOatr9FnKfaGcVCb8rRipdC9S04zA=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=eH5y4ydMRbjU95Ip5rq/FteulTBNtfQKx8mOIFp1ZYUmBoPKXEL40d2RlYMIfhbVx +TiWTWQ0BxCUziwp5QxjUncNLRFiqB5dptErtl+YbgRmL8yI2BmHrCTtVrZxhiC8Fg vT1kyFfHfAhPY0KG8ueGARoBM3M03Rb543NWzPz3SR0+2DqBH9nSU65sOcCREVE+89 n+wSkfoOcBNepLWJTEXGLl/ad+bd4DtyOKSEwmHj4QJ9oOVGZjTHOEo6YPVszVFRZo umqepby1hblCNj/hBrn66bW7B8Y7pR3uwo7moTgpoZ5nVFv38om2wIi9OL7rICI5tC oCqmB+19MyMag== Received: from [172.16.0.134] (192-222-143-198.qc.cable.ebox.net [192.222.143.198]) by smtpout.efficios.com (Postfix) with ESMTPSA id 4TNtKw3S5fzVXK; Mon, 29 Jan 2024 11:00:04 -0500 (EST) Message-ID: <3120f1f0-eaf8-4058-9a65-bdbee28c68c9@efficios.com> Date: Mon, 29 Jan 2024 11:00:04 -0500 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] eventfs: Have inodes have unique inode numbers Content-Language: en-US To: Linus Torvalds Cc: Steven Rostedt , LKML , Linux Trace Devel , Masami Hiramatsu , Christian Brauner , Ajay Kaher , Geert Uytterhoeven , linux-fsdevel References: <20240126150209.367ff402@gandalf.local.home> <20240126162626.31d90da9@gandalf.local.home> <8547159a-0b28-4d75-af02-47fc450785fa@efficios.com> <29be300d-00c4-4759-b614-2523864c074b@efficios.com> From: Mathieu Desnoyers In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 2024-01-26 17:49, Linus Torvalds wrote: > On Fri, 26 Jan 2024 at 14:41, Mathieu Desnoyers > wrote: >> >> Yes, there is even a note about stat.st_size in inode(7) explaining >> this: > > Good. Send a patch to do the same for st_ino. This breaks "cp -aH" and "cp -aL". Even setting st_nlink={0,1} does not help there, from coreutils 9.1: copy_internal(): [...] else if (x->preserve_links && !x->hard_link && (1 < src_sb.st_nlink || (command_line_arg && x->dereference == DEREF_COMMAND_LINE_ARGUMENTS) || x->dereference == DEREF_ALWAYS)) { earlier_file = remember_copied (dst_relname, src_sb.st_ino, src_sb.st_dev); } Thanks, Mathieu -- Mathieu Desnoyers EfficiOS Inc. https://www.efficios.com