On 02/11/2014 01:36 PM, Jules Richardson wrote:
On 02/11/2014 11:55 AM, Fred Cisin wrote:
On Tue, 11 Feb 2014, Glenn Roberts wrote:
it's been many years... but don't you
have to issue a disk reset if you
know the drive is swapped? either via BIOS (INT 13h, AH=0) or DOS (INT
21h, AH=0Dh)? this flushes buffers in RAM and refreshes key tables.
DO BOTH!
Will do... DOS first then BIOS, presumably.
Well, mixed results. It seems to fix the problem in relation to creating a
*new* file after a disk swap - but then I attempted to delete[1] an
existing file, and that seems to barf after a disk change, even with a
drive reset. Not only does it barf, but it would appear to trash the FAT,
requiring a disk reformat.
[1] that was via an unlink() call via C, however - I'll have to give the
DOS int 21 delete function a try and see if that works; perhaps there's
some state information being kept at the C library level which is causing
trouble when the disk is swapped.
I suppose it could also be other things such as a buggy BIOS, or a drive
with issues...
cheers
Jules