Re: [for-linus][PATCH 1/3] eventfs: Have the inodes all for files and directories all be the same
From: Linus Torvalds
Date: Fri Jan 26 2024 - 14:10:04 EST
On Fri, 26 Jan 2024 at 08:26, Steven Rostedt <rostedt@xxxxxxxxxxx> wrote:
>
> On Fri, 26 Jan 2024 11:11:39 +0100
> Christian Brauner <brauner@xxxxxxxxxx> wrote:
>
> > The size would be one thing. The other is that tar requires unique inode
> > numbers for all files iirc (That's why we have this whole btrfs problem
> > - let's not get into this here - where inode numbers aren't unique and
> > are duplicated per subvolume.).
>
> Well, I guess that answers Linus's question about wondering if there's any
> user space program that actually cares what the inodes are for files. The
> answer is "yes" and the program is "tar".
Well, the fact that it hits snapshots, shows that the real problem is
just "tar does stupid things that it shouldn't do".
Yes, inode numbers used to be special, and there's history behind it.
But we should basically try very hard to walk away from that broken
history.
An inode number just isn't a unique descriptor any more. We're not
living in the 1970s, and filesystems have changed.
Linus