Re: QDOS Floppy disk image device driver
Posted: Fri May 08, 2015 4:45 pm
Id reserve the In Use error for the case when one tries to unmount an image when there are still files open on it. You might consider allowing an implicit Unmount on mounting a new image to the same drive as an already mounted drive (provided, as before, no files are open on the current image). If (for whatever reason) this is not possible, trying to mount a new image on a drive that already has a image mounted, could perhaps fail and return a Not Complete (-1) error?Martin_Head wrote: I checked the source code, and I had not allowed for an attempt to mount to, an already mounted image file. It should not be a problem to sort out, and to give an 'in use' error if you try to do it.
Considering the way you have implemented the driver, off the top of my head I cant think of a situation where this condition would occur: Presumably the driver for the device the image is on would detect that and return the error to your driver?The driver should give a 'bad or changed medium' if the image file gets changed 'on the fly'. I will look into it.
I wasnt able to replicate the problem in the time available. I suspect the point is moot once the other issues are resolved.What did you do that made QPC2 crash? So I can test for that problem.