Re:The Btrfs inode-number epic (part 1: the problem)
by pavon on Tuesday August 24, 2021 @07:21PM
(#28296219)
If I understand the second part of this article correctly, the first proposed solution was to replace those magic subvolume directories with auto mounted directories, but some standard uses of btrfs have so many subvolumes, the kernel code managing mounts was running into scaling issues. Which would probably be a good problem to address eventually, but is a big effort in itself.
Re:The Btrfs inode-number epic (part 1: the problem)
by crest on Tuesday August 24, 2021 @04:20PM
(#28294439)
An ugly workaround would be to embed the subvolume id into the inode number, but it would almost require 64 bit inode numbers and some tools make daring assumptions about the stability of inode numbers across reboots.
Re:The Btrfs inode-number epic (part 1: the problem)
by AshamedCaptain on Tuesday August 24, 2021 @07:18PM
(#28296193)
As far as I can see, subvolume ids are stable across reboots.
Re:The Btrfs inode-number epic (part 1: the problem)
by kzrdude on Wednesday August 25, 2021 @05:10AM
(#28299424)
It seems like there is no agreement on if inodes should be unique or not, or what information is required to uniquely identify a file or directory. It does not surprise me that Linux is looking for a solution while this problem is open.
The correct course of action would have been for Linus to not allow btrfs into mainline with such an interface. Each subvolume should have been seperately mounted, or the stat interface should have been extended to make subvolumes first class.