Back to home page

DOS ain't dead

Forum index page

Log in | Register

Back to the forum
Board view  Mix view

translating LFNs into short 8.3 form (Miscellaneous)

posted by cm(R) Homepage E-mail, Düsseldorf, Germany, 13.11.2010, 21:46

The difficulty lies in insuring the result is unique within the directory. This is done by that algorithm by storing the created name in the directory. (Storing the number behind the tilde would theoretically be sufficient.) This is not usable on file systems that do not provide storage for the short names.

One workaround is to define and maintain a file yourself (usually in the root directory, or one in each subdirectory as necessary) that holds short name aliases and their long (real) names. This was used in the other direction (to provide long names on FAT) even before W95 came around with long file names.

Another workaround is to use some value that makes the name unique in the directory as "tilde number". For example, the directory index of the file's name. IIRC that is used by DOSLFN's CD-ROM access. This method is best employed on read-only file systems as otherwise you need low-level hooks to avoid directory entry re-ordering (because it would change the assigned short name). Users want name assignments to persist, both generally (ease of use) and for shorter periods (while the file is opened by a program, it is critical that it persists).



Complete thread:

Back to the forum
Board view  Mix view
15277 Postings in 1373 Threads, 253 registered users, 13 users online (0 registered, 13 guests)
DOS ain't dead | Admin contact
RSS Feed
powered by my little forum