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 Laaca Homepage, Czech republic, 11.01.2011, 00:20

I think that best and most probably ONLY working solution how to transparently generate 8+3 names from LFNs is to compute hash-values from LFN names and use it as a part of SFN.

Example: we have file "Glory_for_freedos.txt"
1) by some algorithm compute hash from string "Glory_for_freedos.txt", which will be a two-char number (like 72) or two-char alfanumerical value (like 4K)

2) such value would be added after first five chars of SFN and tilde:
glory~72.txt

NOTES:
a) SFNs will not be generated for files which already match the standard 8+3 scheme
b) SFNs will be used only by legacy DOS functions. LFN functions would, of course, use the native LFN names.
c) it must be specified what to do if hash collision occurs

---
DOS-u-akbar!

 

Complete thread:

Back to the forum
Board view  Mix view
22049 Postings in 2034 Threads, 396 registered users, 305 users online (1 registered, 304 guests)
DOS ain't dead | Admin contact
RSS Feed
powered by my little forum