[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Ciderpress Possible Problem Reading CP/M Disks
Bill Buckels <bbuckels@mts.net> wrote:
> I still have the disk that Ciderpress doesn't like of course, but that does
> little good if I don't know what it doesn't like about it. I will continue
> to try to duplicate the problem as I get time until I can nail-it down. I
> just was wondering what others had experienced.
Send me the image.
> Was the CP/M support in Ciderpress an afterthought that used "Magic Bytes"
> (I dunno)? Why does Ciderpress just open a CP/M disk in Read-Only? Is the
> code missing some information about the file system?
CP/M is the filesystem that I understood the least well. The disks are
always opened read-only because I didn't add read-write support to the code.
I didn't want to support writing to disks until I was sure I wasn't going
to screw up somebody's data.
You can see the CP/M code here:
http://ciderpress.cvs.sourceforge.net/viewvc/ciderpress/CiderPress/diskimg/CPM.cpp?revision=1.1.1.1&view=markup
In particular, the TestImage function starting on line 42. It scans the
directory looking for invalid values. For example, if it finds filenames
with illegal characters, it assumes that it's not actually looking at a
CP/M directory. It is entirely possible that the assumptions encoded here
are incorrect.
--
Send mail to fadden@fadden.com (Andy McFadden) - http://www.fadden.com/
Fight Internet Spam - http://spam.abuse.net/spam/ & http://spamcop.net/