home *** CD-ROM | disk | FTP | other *** search
- Message-Id: <199510210555.AAA27840@orion.it.luc.edu>
- X-Sender: bhawley@orion.it.luc.edu
- X-Mailer: Windows Eudora Light Version 1.5.2
- Mime-Version: 1.0
- Content-Type: text/plain; charset="us-ascii"
- To: executor@nacm.com
- From: Brian Hawley <bhawley@luc.edu>
- Subject: Long filenames
- Sender: owner-paper@nacm.com
- Precedence: bulk
-
- Hi all!
-
- I've been giving this some thought, so here are a few suggestions as to what
- the long filename slowdown might be caused by.
-
- As far as I know, the long filenames are accessed under DOS with a different
- set of interrupts than the original DOS interrupts. This keeps the legacy
- code working. You have to check whether the new set of interrupts is working
- before you can use them. The fast way to do this would be to check once at
- the beginning and then just use the new API. The slow way would be to check
- before every call. When you are scanning the hard disk, the overhead of
- repeatedly asking whether you can use the LFNs for each file would be huge.
- So, which method does the file handling code of djgpp 2.0 use?
-
- In any case, a directory with LFNs in it would take longer to read than
- another with the same number of files and the old filenames. Since the VFAT
- filesystem stores the new-style names in additional FAT entries, the system
- has to read more entries when it reads the directory. This can only be fixed
- by using a different filesystem, a suggestion that has no place here.
-
- Oh, I also have an answer to this question:
-
- At 12:54 PM 10/18/95 -0400, jdvanas@iac.net (Josh Vanas) wrote:
- > What might I have changed this time
- >and/or are long file names supposed to work outside of the win95 GUI? If
- >they don't, why not? It is still the same OS, right?
-
- No, it is not the same OS. Command-line mode is the OS formerly known as
- DOS. Long filename support is provided by a VxD (virtual device driver) that
- is loaded with the GUI. This VxD extends DOS with additional capabiltiies,
- as others in previous versions of Windows allowed DOS programs to access the
- clipboard and other things. VxDs will only work in protected mode.
-
- It should be possible to create a DOS device driver that performs the same
- service in command-line mode (or even for previous versions of DOS). Such a
- creation is beyond the scope of my knowledge and this mailing list.
-
- I hope this helps.
-
- Brian Hawley
- bhawley@luc.edu
-
-
-