windows - How does NTFS handle the conflict of short file names? -
as described @ http://technet.microsoft.com/en-us/library/cc781134(v=ws.10).aspx, each ntfs file has long file name , corresponding short file name. ntfs can create more 300 000 files under directory, , in such case, short file names conflicts.
if have large number of files (300,000 or more) in folder, , files have long file names same initial characters, time required create files increases. increase occurs because ntfs bases short file name on first 6 characters of long file name. in folders more 300,000 files, short file names start conflict after ntfs uses of 8.3 names similar long file names. repeated conflicts between generated short file name , existing short file names cause ntfs regenerate short file name 6 8 times.
however, microsoft doesn't answer question:
how ntfs handle conflict of short file names?
provided under directory d:\tmp\, there more 300 000 files, therefore, there @ least 2 different files short file names both thisis~1.txt, , if enter command "type thisis~1.txt" under d:\tmp, happen?
ntfs won't create 2 short names that. first thisis~1.txt , second thisis~2.txt. example, open command prompt , root of c: drive type
c:\>dir prog* /x /ad<enter>
on windows 7 64-bit system see output similar this
03/28/2013 12:24 pm <dir> progra~1 program files 07/31/2013 11:09 <dir> progra~2 program files (x86) 12/10/2012 05:30 pm <dir> progra~3 programdata
Comments
Post a Comment