[net.micro.cpm] BDOS ERROR R/O, ARCHIVE BITS

PGA%MIT-OZ@MIT-MC.ARPA (11/10/83)

I could use some general information about how the BDOS decides a file
or drive is R/O.

I have been trying to use the ARCHIVE program, but I find that when I
try to copy a file from hard disk to floppy, if the archive bit on the
file on hard disk is set, then the next extent I try to copy, finds
the drive write protected and gets a BDOS R/O error.  This happens
both with PIP and other copying programs.  The result is that once
I've archived a file I can't read the original without calling archive
and resetting the archive bit.

Has anyone had any similar problems with ARCHIVE or the archive bit?

Several points:

The same thing happens whether I use the archive patch or my own
modified (recompiled) BDOS patch.  It even happens if I use a vanilla
BDOS, once the archive bits have been set.

My system has two MORROW m26 drives and 2 SSDD Floppy drives running
off a CCS controller.  The processor and memory are CCS.  There only
seems to be a problem when going from hard disk to floppy.  Copying
between the two hard disks is unimpeded.

Any ideas?

Phil
-------

SSalzman.ES@PARC-MAXC.ARPA (11/11/83)

Hi. There is a bug in the archive patch to the BDOS and there is a fix
for it (ARCHIVE.FIX). The note in ARCHIVE.FIX describes what you're
talking about. The fix is as follows:

	force$r$w	equ	bdos$entry+05BAh   ;force read write disk

 	org		force$r$w

	ret		; return from 'check changed disk'

I'm really not sure where in the patch that belongs but here is where I
put it and I've had no problems:

	wrt$dir	equ 	bdos$entry...
	scratch	equ	bdos$entry...

	; INSERT FIX HERE...

	org	wrt$dir
		.
		.
		.

Try it out. It should work. I've tried to get to Kelly Smith and get the
latest version of the program but he's moving and his system is down. If
you want a good rigid backup utility a friend of mine here reccomended
QBAX. It's only $30 and it has I/O redirection and a few other nifty
things. The new version of that should be out in a while and it will
even handle breaking up large files onto several floppies (so I'm told).
I'll be ordering it myself soon for a project I'm working on. Good Luck.

			Isaac Salzman.

SSalzman.es@PARC-MAXC