From nobody@FreeBSD.org  Sun Feb 20 02:39:12 2005
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 2EB1B16A4CE
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 20 Feb 2005 02:39:12 +0000 (GMT)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 18FA943D2D
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 20 Feb 2005 02:39:12 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.13.1/8.13.1) with ESMTP id j1K2dBV8097348
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 20 Feb 2005 02:39:11 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.13.1/8.13.1/Submit) id j1K2dBrs097347;
	Sun, 20 Feb 2005 02:39:11 GMT
	(envelope-from nobody)
Message-Id: <200502200239.j1K2dBrs097347@www.freebsd.org>
Date: Sun, 20 Feb 2005 02:39:11 GMT
From: Yuri <yuri@tsoft.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: DVD-writer fails to fixate DVD
X-Send-Pr-Version: www-2.3

>Number:         77753
>Category:       kern
>Synopsis:       [burncd]: DVD-writer fails to fixate DVD
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    remko
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Feb 20 02:40:11 GMT 2005
>Closed-Date:    Fri Jun 15 10:50:04 GMT 2007
>Last-Modified:  Fri Jun 15 10:50:04 GMT 2007
>Originator:     Yuri
>Release:        5.3-i386
>Organization:
NA
>Environment:
FreeBSD xxx.xxx.xxx 5.3-STABLE FreeBSD 5.3-STABLE #1: Sun Feb  6 03:08:18 PST 2005     root@xxx.xxx.xxx:/usr/obj/usr/src/sys/GENERIC  i386
>Description:
burning single layer DVD (+R) on Sony-DRU700A double layer burner got

..
written this track 3771776 KB (100%) total 3771776 KBB
fixating CD, please wait..
burncd: ioctl(CDRIOCFIXATE): Input/output error

with syslog record:
acd0: FAILURE - CLOSE_TRACK/SESSION ILLEGAL REQUEST asc=0x72 ascq=0x03 error=4<ABORTED>

Although it seems to complete writing data on the disk subsequent
attempt to mount it fails:
cd9660: /dev/acd0: Input/output error

Hace no problem burning CDs on the same system.

Yuri
>How-To-Repeat:
N/A
>Fix:
N/A
>Release-Note:
>Audit-Trail:

From: Salvo Bartolotta <bartequi@neomedia.it>
To: bug-followup@FreeBSD.org, yuri@tsoft.com
Cc:  
Subject: Re: kern/77753: DVD-writer fails to fixate DVD
Date: Sun, 26 Jun 2005 20:23:17 +0200

 Hello FreeBSD (de)buggers,
 
 I am not sure whether I should (also?) reply to bin/63319, anyway here it goes:
 
 mathesis% ~ 7:34pm 101 % ===> dmesg | grep acd
 acd0: DVDROM <LITE-ON DVD SOHD-167T/9S19> at ata0-master UDMA33
 acd1: DVDR <HL-DT-ST DVDRAM GSA-4163B/A103> at ata1-master UDMA33
 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 
 Yep, I happened to buy an, er, "el cheapo" LG DVD burner. :-)
 
 BTW, my settings are:
 
 mathesis% ~ 7:37pm 102 % ===> sysctl hw.ata
 hw.ata.ata_dma: 1
 hw.ata.wc: 1
 hw.ata.atapi_dma: 1
 
 
 burncd, as far as I can see, does NOT work properly.  I burnt the   
 6.0-CURRENT-SNAP004-i386-disc1.iso and 6.0-CURRENT-SNAP004-i386-disc2.iso via
 the (standard) command 
 
 burncd -v -f /dev/acd1 -s max data <name_of_image> fixate
 
 As a result, I got a "fixate" error (input/output).  
 
 The CDs, apparently, couldn't be mounted; yet I was able to mount them *after*
 ejecting them (there is another PR about this very behavio(u)r, but... wait and
 see).
 
 A recursive diff between the files (i.e. 6.0-CURRENT-SNAP004-i386-disc1.iso and
 6.0-CURRENT-SNAP004-i386-disc2.iso mounted via mdconfig(8)) and the related CDs
 just burnt showed that, for each CD, there WERE (few) differences (e.g.
 src/scontrib.ay and other regular files do differ).  In other words, burncd,
 for some reason, seems to burn, albeit in few cases, *wrong* bits.
 
 
 At this point, I decided to go the "atapicam" route.  
 
 mathesis% ~/freebsd 8:01pm 112 % ===> grep cd /var/run/dmesg.boot
 acd0: DVDROM <LITE-ON DVD SOHD-167T/9S19> at ata0-master UDMA33
 acd1: DVDR <HL-DT-ST DVDRAM GSA-4163B/A103> at ata1-master UDMA33
 cd0 at ata0 bus 0 target 0 lun 0
 cd0: <LITE-ON DVD SOHD-167T 9S19> Removable CD-ROM SCSI-0 device
 cd0: 33.000MB/s transfers
 cd0: Attempt to query device size failed: NOT READY, Medium not present
 cd1 at ata1 bus 0 target 0 lun 0
 cd1: <HL-DT-ST DVDRAM GSA-4163B A103> Removable CD-ROM SCSI-0 device
 cd1: 33.000MB/s transfers
 cd1: Attempt to query device size failed: NOT READY, Medium not present
 
 
 While cdrecord did issue a (harmless) warning (the drive indicated a "wrong"
 start), it burnt both the ISO images properly: a recursive diff showed no
 actual differences (except for few non existing files  -- certain symlinks --
 in the CDs and the related images, which I think is immaterial here).
 
 
 
 So far so good.  I can burn, it seems, (data) CDs via SCSI emulation -- more
 rant probably to come in the next few days. :-)
 
 Helas, I am afraid I am not in a position to help with the burncd malfunction.
 Perhaps this information will be of help to those in the know.
 
 -- Salvo

From: Salvo Bartolotta <bartequi@neomedia.it>
To: bug-followup@FreeBSD.org
Cc: yuri@tsoft.com
Subject: Re: kern/77753: DVD-writer fails to fixate DVD
Date: Sun, 26 Jun 2005 20:49:34 +0200

 Hello again FreeBSD (de)buggers,
 
 I left out an essential item of information.  My fault. Sigh.
 
 mathesis% ~/freebsd 8:11pm 113 % ===> uname -a
 FreeBSD mathesis.historia.episteme 5.4-STABLE FreeBSD 5.4-STABLE #0: Sun Jun 26
 17:40:20 CEST 2005    
 root@mathesis.historia.episteme:/usr/src/sys/i386/compile/MATHESIS  i386
 
 N.B. sources cvsupped on June 20, 2005; kernel recompiled (with atapicam
 support) today.
  
 -- Salvo
State-Changed-From-To: open->feedback 
State-Changed-By: remko 
State-Changed-When: Mon Dec 25 12:29:53 UTC 2006 
State-Changed-Why:  
Hello can you tell me whether this problem still persists on 
newer version of FreeBSD like 6.x? 


Responsible-Changed-From-To: freebsd-bugs->remko 
Responsible-Changed-By: remko 
Responsible-Changed-When: Mon Dec 25 12:29:53 UTC 2006 
Responsible-Changed-Why:  
grab the pr for feedback references. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=77753 
State-Changed-From-To: feedback->closed 
State-Changed-By: linimon 
State-Changed-When: Fri Jun 15 10:49:49 UTC 2007 
State-Changed-Why:  
Feedback timeout (> 6 months). 

http://www.freebsd.org/cgi/query-pr.cgi?pr=77753 
>Unformatted:
