Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

What methods are there to make the Linux filesystem case-INSENSITIVE ?

I have asp.net applications developed on Windows, but there are always issues with capitalization/spelling on mono when putting it on Linux.

One way is to mount a localhost SMB share to /var/www. Are there any others ?

share|improve this question
11  
Wouldn't it be easier to fix the application than hack the os to work around the broken app? –  Aaron Tate Mar 23 '10 at 13:04
1  
Is this web app being served through apache, you could use mod_speling. –  Zoredache Mar 23 '10 at 15:26

2 Answers 2

up vote 10 down vote accepted

There's a case insensitive ext3 driver, but, frankly, running such a thing in production would scare me a bit, since you're rolling your own custom kernel with patched-in drivers. (Yeah, yeah-- we did that all the time "back in the day", but that was, like, 1997...)

There's a FUSE implementation, ciopfs, that implements case insensitivity as well. That would be a lot less scary to me to use in production than a patched kernel.

You coule also use a case-insensitive filesystem, like vfat, for the /var/www folder hierarchy. I'd use a loopback mount in that case, such that you don't have to mess with your disk partitioning.

share|improve this answer
    
ciopfs is crap, i tried it, it does only map lowercase to lowercase, ignoring any uppercase... –  Quandary May 29 '10 at 12:11
    
@Quandary Run awk '/^ciopfs/ {print $2}' /proc/mounts and that will output the name of the directory to use. After you run ciopfs a/ b/ you should not access or modify files under a/. –  user67717 Dec 23 '12 at 18:08

If you're talking about case insensitivity ONLY within apps running under Mono, you can use the IOMAP environment variable to tell mono to ignore case just like Windows does.

See the details on its use here: http://www.mono-project.com/IOMap

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.