Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 9 Feb 2012 12:46:10 GMT
From:      Shin-ichi Okano <s-okano@n08.itscom.net>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/164927: [PATCH] sysutils/brasero can't detect CD/DVD drive with ATA_CAM
Message-ID:  <201202091246.q19CkAQF068541@red.freebsd.org>
Resent-Message-ID: <201202091250.q19CoCXn032173@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         164927
>Category:       ports
>Synopsis:       [PATCH] sysutils/brasero can't detect CD/DVD drive with ATA_CAM
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Feb 09 12:50:12 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator:     Shin-ichi Okano
>Release:        FreeBSD 9.0-STABLE amd64
>Organization:
>Environment:
FreeBSD wombat.s-okano.n08.itscom.net 9.0-STABLE FreeBSD 9.0-STABLE #0 r230971: Sat Feb  4 13:38:39 JST 2012     s-okano@wombat.s-okano.n08.itscom.net:/usr/obj/usr/src/sys/WOMBAT  amd64
>Description:
Sysutils/brasero can't detect CD/DVD drive with ATA_CAM.

When starting brasero, the following messases appear in 
/var/log/messages:

 ata2: FAILURE - zero length DMA transfer attempted
 ata2: setting up DMA failed

>How-To-Repeat:
Install sysutils/brasero and start.
>Fix:
The attached patch should fix this problem.
This is in much the same fashion as what sysutils/cdrtools does.


Patch attached with submission follows:

--- libbrasero-media/scsi-cam.c.orig	2012-02-09 09:44:24.000000000 +0900
+++ libbrasero-media/scsi-cam.c	2012-02-09 09:46:00.000000000 +0900
@@ -103,6 +103,10 @@
 	else if (cmd->info->direction & BRASERO_SCSI_WRITE)
 		direction = CAM_DIR_OUT;
 
+	if (size == 0)
+		direction = CAM_DIR_NONE;
+	direction |= CAM_DEV_QFRZDIS;
+
 	g_assert (direction > -1);
 
 	cam_fill_csio(&cam_ccb.csio,


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201202091246.q19CkAQF068541>