lkml.org 
[lkml]   [1997]   [Aug]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: Msdos name alias patch for 2.1.48
Date
From
Morten Welinder <terra@diku.dk> said:

[...]

> SUMMARY: *Creating* files is the hard part.

And for that, the only decent solution I see is:

- Try to read/create/write FileWithNonDOSName
+ Linux returns "wrong name format, use DOS format"
+ libc tries again with DOSified filename, and suceeds (or not)
- Task goes on as if nothing had happened

This way, each filesystem gets a particular errno that says the format it
expects, and libc handles that. Ugly, but keeps idiocy out of the (main)
kernel. But shoves it into libc...

Then again: Just forget about MSDOS, and use VFAT instead... and let _them_
fight that out.

> PS: stray thought: could we pretend the existence of hard links between
> "foo" and "FOO" on a very temporary basis?

Screws up the dcache; unless when you create foo, you'd have to create FOO,
and FOo, and... on the fly. Not a pretty sight ;-)
--
Dr. Horst H. von Brand mailto:vonbrand@inf.utfsm.cl
Departamento de Informatica Fono: +56 32 654431
Universidad Tecnica Federico Santa Maria +56 32 654239
Casilla 110-V, Valparaiso, Chile Fax: +56 32 797513

\
 
 \ /
  Last update: 2005-03-22 13:40    [W:0.061 / U:0.072 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site