home *** CD-ROM | disk | FTP | other *** search
/ hobbes.nmsu.edu / 2008-06-02_hobbes.nmsu.edu.zip / dos / chkchg.zip / chkchg.doc < prev   
Text File  |  1993-09-06  |  2KB  |  32 lines

  1.  
  2.               CHKCHG Copyright (C) 1993 Dimitri Vulis DLV@DM.COM
  3.  
  4. When OS/2 reads data (such as the root directory or the file allocation table)
  5. from a diskette, and needs to refer to it again soon (e.g., to open another
  6. file), it may not have to re-read it if the same diskette is still in the drive
  7. and the data is still in the memory buffer. To determine whether the diskette
  8. has been changed, OS/2 uses the hardware feature called "diskette change line".
  9. Under normal circumstances, if the disk drive has been opened and closed and
  10. therefore the diskette may have been changed, the diskette drive tells the OS
  11. on a subsequent read that the diskette may have been changed, and the OS will
  12. know the data in memory buffers cannot be reused and must be re-read.
  13.  
  14. Unfortunately, this mechanism does not work correctly on some clones. Sometimes
  15. the drive fails to report that the diskette has been changed. With two
  16. drives, sometimes a media change is reported on the wrong drive. Sometimes no
  17. media change is reported when it fact there's no media in the drive and the
  18. drive is not ready. This is also a malfunction, but it seems not to cause
  19. problems for OS/2. OS/2 is also more sensitive than DOS to the drive
  20. incorrectly identified in CMOS configuration (e.g., 1.2MB instead of 1.44MB).
  21.  
  22. If OS/2 assumes that a diskette has not been changed, when it fact it has, data
  23. may be lost. For example, the root directory or the file allocation table of
  24. the previously inserted diskette may be written into the new diskette.
  25.  
  26. The program CHKCHG will report the diskette change status returned to the
  27. operating system by the diskette drive. You can open and close your drives and
  28. see whether the program's output corresponds to what is happening in reality.
  29.  
  30. USAGE: enter chkchg at a DOS command line (any kind). It reports the current
  31. status of your floppy drives. Open and close them and rerun to test.
  32.