[Ocfs2-devel] dinode link count inconsistency in ocfs2_read_links_count() logic
Alexey Asemov (Alex/AT)
alex at alex-at.net
Mon Nov 21 16:15:24 UTC 2022
The modification I mentioned surely fixes the thing (well, obviously).
If to reproduce, trivial as well:
- mkfs with indexed-dirs option (otherwise low hardlink limit will apply)
- Create a file
- Create 65535 hardlinks to it, stat will now show 65536 hardlinks (that
comes from local inode cache)
- Clear inode cache (for me cat 3 > /proc/sys/vm/drop_caches is enough)
or reboot
- stat again and you will see hardlink count = 0 that is the result of
actual inconsistency
More information about the Ocfs2-devel
mailing list