🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.msdos.programmer
Article #7820

Re: Detecting disk change

#7820
From: James Card
Date: Thu, 28 Jan 1993 23:13
33 lines
1767 bytes
In article <sankey.728153663@unixg.ubc.ca> sankey@unixg.ubc.ca (Todd Sankey) writes:
>
>  Is there any reliable way to detect if the floppy disk has been
>changed short of actually reading it?
>
>-- 
>		Todd Sankey
>		sankey@unixg.ubc.ca
>

Many of the new disk drives support a change line status indicator.
I am not sure offhand if there is a way to read this (other than
going directly to the floppy disk controller) so you will have
to research this yourself... but other drives such as the
360K drives do not support this feature.  What MS-DOS does is
to assume that if a disk drive was last accessed more than a
second ago, then they assume that the diskette has been changed
which is a pretty good assumption.  They picked a second because
apparently after several tests they found that the minimum average
time that a person takes to open a drive and remove the disk was
about 1 second.

Check the extended INT 13H calls that the AT's introduced to see
if you can read the disk change status indicator... and also to see
if a drive supports that feature.  I believe that there were 
function calls for both.

jC
-- 
  __/o___~_                 James Card (Firmware Engineer)
 (________|  Nothin' like   Sybus Corporation
   @    @    top down       2300 Tall Pines Dr. Suite 100
             weather...     Largo, Fl  34641  (813) 535-6999
Technical Details
Message-ID: <1993Jan28.231309.6100@sybus.com>
Path: arc1-ca.pugleaf.net!sparky!uunet!sybus.sybus.com!card
References: <sankey.728153663@unixg.ubc.ca>

Show Full Headers
Complete Article Headers
Newsgroups: comp.os.msdos.programmer
Path: arc1-ca.pugleaf.net!sparky!uunet!sybus.sybus.com!card
From: card@sybus.com (James Card)
Subject: Re: Detecting disk change
Message-ID: <1993Jan28.231309.6100@sybus.com>
Sender: news@sybus.com
Nntp-Posting-Host: sybus
Organization: Sybus Corporation, Largo, FL
References: <sankey.728153663@unixg.ubc.ca>
Date: Thu, 28 Jan 1993 23:13:09 GMT
Lines: 33