[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
    On Fri, 8 Aug 1997, Marcin Dalecki wrote:

    > On Thu, 7 Aug 1997, Linus Torvalds wrote:
    > > What sort of case-insensitivity do various filesystems currently support?
    > > Are we talking A-Z only, Latin1, or what? I guess we don't really need to
    > > worry about what could theoretically be the worst case, but what MS-DOS,
    > > NT, OS/2 etc actually do right now..
    > >
    > > Linus
    > >
    > Sorry. MS-DOS ** IS NOT ** case insensitive. It is ONLY
    > So Linus: plase don't worry at all. If somebody using an
    > MS-DOS filesystem went into trouble by writing wrong case filenames onto it
    > NOTHING bad would happen to DOS. The other way around it's anyway an non
    > issue.
    You can create, read, write, delete file names that have any characters
    except 0x00 and 0xe5 under MS-DOS. If 0xe5 isn't the first character, you
    can use that too. The command interpreter will not like strange file names
    which is the reason why some programs use them (user's can't delete them
    without writting a program to delete them). Note that there is really
    no '.' in a MS-DOS file-name. It is not in the directory entry. Therefore,
    the logic to use a '.' is simple. If the real file-name contains anything
    other than spaces as its last three characters, you add a '.' before
    outputting those characters. Leading and trailing spaces are cut.

    Name Entry DOS Display Unix Display

    'CONTIGUOUS' -> CONTIGU.OUS contigu.ous
    ' S' -> .S .s
    'CONTIGU ' -> CONTIGU contigu
    ' OUS' -> .OUS .ous

    BYW, one can create a "*.*" file-name under MS-DOS, just like unix. It's
    directory entry would be:
    '* * '

    Richard B. Johnson
    Analogic Corporation
    Penguin : Linux version 2.1.44 on an i586 machine (66.15 BogoMips).
    Warning : It's hard to stay on the trailing edge of technology.
    Linux : Engineering tool
    Windows : Typewriter

     \ /
      Last update: 2005-03-22 13:40    [W:0.021 / U:0.072 seconds]
    ©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site