Subject: Re: scsi disks with "Medium Format Corrupted"
To: Bill Studenmund <firstname.lastname@example.org>
From: Manuel Bouyer <email@example.com>
Date: 05/20/2004 12:37:17
On Wed, May 19, 2004 at 02:14:48PM -0700, Bill Studenmund wrote:
> On Wed, May 19, 2004 at 05:15:47PM +0200, Manuel Bouyer wrote:
> > Hi,
> > as part of tests with esiop I managed to damage a scsi disk with the format
> > command. It's now in this state:
> > java:/root#scsictl /dev/rsd1c format 516
> > scsictl: /dev/rsd1c: Device not configured
> > And on console:
> > sd1(esiop0:0:3:0): Check Condition on CDB: 0x23 00 00 00 00 00 00 00 0c 00
> > SENSE KEY: Media Error
> > ASC/ASCQ: Medium Format Corrupted
> > FRU CODE: 0xc
> > The problem is that we allow opening disks which are not formatted at all,
> > or with a format we can't handle, but we don't handle the case where
> > READ_FORMAT_CAPACITIES fails.
> Just to make sure I understand, since READ_FORMAT_CAPACITIES fails, we
> don't permit the open and thus can't format the device. Your change would
> let us open the device, permitting the format. Correct?
Manuel Bouyer <firstname.lastname@example.org>
NetBSD: 26 ans d'experience feront toujours la difference