Rugxulo:  LFN-EN was compiled with Microsoft Visual C++ version 1.51.  
According to the documentation, it uses a copyrighted library to handle virtual 
memory, but this can be commented out.

LFN-EN as written works under MS-DOS (Windows 98 DOS), but it does not work 
with FAT32 volumes under FreeDOS.  Under FreeDOS, it handles FAT12 and FAT16 
volumes OK, but it misidentifies FAT32 volumes as FAT12 and gives the error 
message "Ambiguous DPB!(50)" and is not able to read the FAT32 volume.  I have 
a quick and dirty patch, but in my humble opinion what's really needed is a 
better check for whether the DOS is FAT-32 compatible and whether volume 
locking is supported.

When the program was written in 1999, you could safely say that only MS-DOS had 
FAT32 support, and that MS-DOS has volume locking; so that's all LFN-EN checks 
for.  LFN-EN only considers these cases:
   Windows 95B/C and Windows 98:  FAT32 compatible, supports volume locking.
   Windows 95A:  Supports volume locking, no FAT-32.
   MS-DOS pre-Windows 95, or a non-Microsoft DOS:  No volume locking, no FAT32.

Since about 2004 the picture has become more complex.
The current build of FreeDOS is available with and without FAT32 support.
Many of the DOSses that were around in 1999 now have at least one branch that 
supports FAT32.
There are new flavors of DOS on the scene too -- DOS for embedded systems, and 
DOS from Russia!

Does FreeDOS support volume locking as well?  If I'm reading this page right:
   
http://www.mail-archive.com/freedos-kernel@lists.sourceforge.net/msg00271.html
FreeDOS supports volume locking -- the bugs were being worked out in 2004, so 
FreeDOS 1.0 (2006) or later should support volume locking and FAT32.

What needs to be done now is that someone needs to change the decision logic 
about whether FAT32 is available and whether volume locking is supported.  
Simply checking a couple of magic MS-DOS version numbers and deeming everything 
else to be "PC-DOS" won't cut it today.

My patch takes utilities that work under MS-DOS (Windows 98 DOS) and fail under 
FreeDOS, and turns them into utilities that work under FreeDOS and fail under 
MS-DOS.  I made copies of all the utilities that start with F for FreeDOS, so 
LCHK.EXE becomes FLCHK.EXE.  Then, I caused these copies to check for the OEM 
byte of FD (FreeDOS) instead of FF (MS-DOS) by using a hex editor to change one 
instance of 80 7E F0 FF to 80 7E F0 FD.  So when I'm running FreeDOS I type 
FLDIR for a directory; when I'm under Windows 98 DOS I type LDIR for a 
directory.  If you're modifying the source and re-compiling instead of using a 
hex editor on the executable, you'd be modifying lfn.cpp to check whether 
ver.oem is FD instead of FF.

This patch is dangerous, because FreeDOS is available with and without FAT32 
support.
Since I'm running the latest kernel with FAT32 support, it works on my computer.


> Date: Mon, 13 Oct 2014 13:20:04 -0500
> From: rugx...@gmail.com
> To: freedos-user@lists.sourceforge.net
> Subject: Re: [Freedos-user] Fwd: lfn tools for dos - including FAT21, 16, 32, 
> etc
> 
> Hi,
> 
> On Sun, Oct 12, 2014 at 6:44 AM, Eric Auer <e.a...@jpberlin.de> wrote:
> >
> > Jim Michaels recommends the following long file name tool project:
> >
> > https://sourceforge.net/projects/lfntools/?source=directory
> >
> > Maybe other FreeDOS users already have experiences
> > with that project and can share them here? Thanks :-)
> 
> It's quite old. The newest file is from 2006! Most other stuff is from
> 2003. Which isn't very surprising since it's basically Odi's LFN
> Tools, which I'm sure some (if not most) of us are at least
> superficially aware of.
> 
> http://lfntools.sourceforge.net/
> 
> "Thanks go to: Ortwin Glück for the original development and
> maintenance of the LFN Tools"
> 
> http://www.odi.ch/prog/lfn/
> 
> "The tools were once useful to me when I was still using Windows
> 95/98. Since 2003 I have been using Linux exclusively. So I no longer
> need them nor have I a system to compile the source code. Please do
> not contact me about LFN tools. I will not even bother to answer."
> 
> (Ugh. Sigh.)
> 
> I'm not even sure what compiler was used for these old (IIRC, 16-bit?)
> tools (ancient MSVC 1.52? Borland 5.x?), so I don't know how you would
> even recompile them (assuming you wanted to fix or improve them). I'm
> not sure how well they work either. I think I tried once and failed
> due to some bug. AFAIK, they basically do direct disk access and thus
> don't need a separate LFN TSR.
> 
> ------------------------------------------------------------------------------
> Comprehensive Server Monitoring with Site24x7.
> Monitor 10 servers for $9/Month.
> Get alerted through email, SMS, voice calls or mobile push notifications.
> Take corrective actions from your mobile device.
> http://p.sf.net/sfu/Zoho
> _______________________________________________
> Freedos-user mailing list
> Freedos-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/freedos-user
                                          
------------------------------------------------------------------------------
_______________________________________________
Freedos-user mailing list
Freedos-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freedos-user

Reply via email to