Path: utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!usc!ucsd!ogicse!blake!unicorn!csispt!bob From: bob@csispt.UUCP (Bob Finch) Newsgroups: comp.sys.mac.programmer Subject: Hardware write protect in SCSI disk driver Keywords: write protect, lock, SCSI, driver, disk Message-ID: <1989Dec7.202804.6903@csispt.UUCP> Date: 7 Dec 89 20:28:04 GMT Reply-To: bob@csispt.UUCP (Bob Finch) Organization: AlphaSoft, Bellingham, WA Lines: 15 How should a SCSI disk driver that supports removable media tell the Mac OS that the drive is hardware write protected? I've tried setting bit 7 in byte 0 of the flags that precede the drive queue element for my drive (IM IV page 181) in a VBL task when a disk is inserted just before doing a PostEvent to get it mounted. I've also tried responding to drvStsCode (csCode 8) Status calls with DrvSts record with writeProt bit 7 set (IM II page 215). Thanks in advance... -- Bob Finch bob%csispt.UUCP@unicorn.wwu.edu +1 (206) 671-6214