NetBSD Problem Report #40997

From dyoung@ojctech.com  Wed Mar 11 18:33:43 2009
Return-Path: <dyoung@ojctech.com>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
	by www.NetBSD.org (Postfix) with ESMTP id 23DAD63BE42
	for <gnats-bugs@gnats.NetBSD.org>; Wed, 11 Mar 2009 18:33:43 +0000 (UTC)
Message-Id: <20090311183340.C4C5D1BF673@elmendorf.ojctech.com>
Date: Wed, 11 Mar 2009 13:33:40 -0500 (CDT)
From: dyoung@ojctech.com
Reply-To: dyoung@ojctech.com
To: gnats-bugs@gnats.NetBSD.org
Subject: mmcformat -B -O /dev/cd0d fails
X-Send-Pr-Version: 3.95

>Number:         40997
>Category:       bin
>Synopsis:       mmcformat -B -O /dev/cd0d fails
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    reinoud
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Mar 11 18:35:00 +0000 2009
>Last-Modified:  Tue Mar 17 18:27:01 +0000 2009
>Originator:     David Young
>Release:        NetBSD 4.99.73
>Organization:
David Young             OJC Technologies
dyoung@ojctech.com      Urbana, IL * (217) 278-3933
>Environment:
System: NetBSD elmendorf.ojctech.com 4.99.73 NetBSD 4.99.73 (ojctech.com) #0: Fri Oct 31 16:57:55 CST 2008 dyoung@cuw.ojctech.com:/u3/dyoung/pristine-nbsd/i386/O/sys/arch/i386/compile/ojctech.com i386
Architecture: i386
Machine: i386
>Description:
mmcformat cannot format a CD-RW very shortly after blanking a CD-RW.
For example, if the mmcformat commands calls for both blanking and
formatting, sudo mmcformat -D -B -O /dev/cd0d, mmcformat fails:

 99 % / ETA 00:00:02
/dev/cd0d: Check Condition on CDB: 00 00 00 00 00 00
    SENSE KEY: Not Ready
     ASC/ASCQ: Logical Unit Not Ready, Long Write In Progress
         SKSV: Progress Indicator: 65357
 99 % - ETA 00:00:01
/dev/cd0d: Check Condition on CDB: 00 00 00 00 00 00
    SENSE KEY: Not Ready
     ASC/ASCQ: Logical Unit Not Ready, Long Write In Progress
         SKSV: Progress Indicator: 65490
 99 % \ ETA 00:00:00
/dev/cd0d: Check Condition on CDB: 00 00 00 00 00 00
    SENSE KEY: Not Ready
     ASC/ASCQ: Logical Unit Not Ready, Long Write In Progress
100 % | ETA 00:00:00
success!

/dev/cd0d: Check Condition on CDB: 23 00 00 00 00 00 00 00 0c 00
    SENSE KEY: Not Ready
     ASC/ASCQ: Logical Unit Not Ready, Long Write In Progress
While reading format capabilities : Input/output error

>How-To-Repeat:
Insert a CD-RW into the disk drawer.  Run
sudo mmcformat -D -B -O /dev/cd0d.
>Fix:
A workaround is to run mmcformat -B, wait a while, and then run
mmcformat -O.

For a proper fix, perhaps mmcformat should wait for outstanding
blanking/formatting commands to complete on the drive before either
quitting or starting a new command?

>Release-Note:

>Audit-Trail:

Responsible-Changed-From-To: bin-bug-people->reinoud
Responsible-Changed-By: dyoung@NetBSD.org
Responsible-Changed-When: Tue, 17 Mar 2009 18:27:01 +0000
Responsible-Changed-Why:
reinoud@ says he will take it.


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2014 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.