this post was submitted on 25 Apr 2025
260 points (97.4% liked)

Linux

7128 readers
208 users here now

A community for everything relating to the GNU/Linux operating system

Also check out:

Original icon base courtesy of [email protected] and The GIMP

founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 11 points 5 days ago (6 children)

It isn't normally, but it, like e.g. Ext4, allows case insensitivity mostly for the sake of Wine.

[–] [email protected] 7 points 4 days ago (5 children)

But Wine could handle the case insensitivity though? NTFS is case sensitive.

[–] [email protected] 0 points 4 days ago (4 children)

It does, but having case insensitivity in the file system can get you better performance.

[–] [email protected] 0 points 4 days ago (1 children)
[–] [email protected] 3 points 4 days ago* (last edited 4 days ago) (1 children)

If you're running Wine on a case-sensitive file system, and you it tries to open a file, it would first try to open a file whose case matches exactly. But if it doesn't find one, it would then need to list all the files in the directory, normalize their case, and go through them all to see if there is a file with the given name but in a different case. That can take some time if there is a lot of files in the directory.

But if you're on a case-insensitive filesystem, the FS can keep case-normalized names of all files on disk, so you can do a case-insensitive open just as fast as you can do a case-sensitive open.

BTW, another application that can benefit from this is Samba, since SMB is case-insensitive.

[–] [email protected] 0 points 3 days ago* (last edited 3 days ago) (1 children)

That –at best– gives you the same performance.

EDIT: Ok, I misunderstood – you meant the performance of "case insensitive in kernel" vs. "case insensitive in userspace". I get your point now.

[–] [email protected] 0 points 3 days ago

No? Either the application implements its own case-insensitive index, or you'll have strictly worse performance than an implementation in the file system. The application would have to make multiple syscalls (which have a fixed overhead).

load more comments (2 replies)
load more comments (2 replies)
load more comments (2 replies)