3 ms·
> I haven't found a way of discovering whether a file system is case insensitive or case sensitive without creating a file - is it possible? You should be able
by cyphar 6y ago
> I haven't found a way of discovering whether a file system is case insensitive or case sensitive without creating a file - is it possible?
You should be able to do ioctl(EXT4_IOC_GETFLAGS) on the directory and check if EXT4_CASEFOLD_FL is set. I'm not sure if this flag is applied recursively to child dentries (though I would assume it is).