On Mon Mar 17 23:15:44 2025 +0000, Jinoh Kang wrote:
I'm not sure what you meant, but your MR seems to work exactly what I'd expect on both vfat and ext4 (+F and -F). Note that vfat and ext4-casefold have the same semantics when it comes to rename(2) into a different case i.e., rename("foo", "FOO") is a no-op.
For reference, this is the expected result for ext4 casefold:
``` file.c:2083: Test succeeded inside todo block: MoveFile failed to change casing on same file: got Remove me file.c:2107: Test failed: MoveFile failed to change casing on existing target file: got Remove me file.c:2128: Test succeeded inside todo block: MoveFile failed to change casing on same directory: got Remove Me ```
For vfat (which does not support hardlinks):
``` file.c:2083: Test succeeded inside todo block: MoveFile failed to change casing on same file: got Remove me file.c:2107: Test failed: MoveFile failed to change casing on existing target file: got Remove me file.c:2128: Test succeeded inside todo block: MoveFile failed to change casing on same directory: got Remove Me file.c:2171: Test failed: CreateHardLinkA: error 5 file.c:2181: Test succeeded inside todo block: MoveFile failed to change casing on hardlink of itself: got hardLink ```