From owner-freebsd-ports-bugs@FreeBSD.ORG Mon Nov 26 23:00:02 2007 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id F2AF916A421 for ; Mon, 26 Nov 2007 23:00:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id C877313C465 for ; Mon, 26 Nov 2007 23:00:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.2/8.14.2) with ESMTP id lAQN01LO065020 for ; Mon, 26 Nov 2007 23:00:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.2/8.14.1/Submit) id lAQN01Ng065019; Mon, 26 Nov 2007 23:00:01 GMT (envelope-from gnats) Resent-Date: Mon, 26 Nov 2007 23:00:01 GMT Resent-Message-Id: <200711262300.lAQN01Ng065019@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Don Lewis Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A243F16A41A for ; Mon, 26 Nov 2007 22:58:57 +0000 (UTC) (envelope-from truckman@FreeBSD.org) Received: from gw.catspoiler.org (adsl-75-1-14-242.dsl.scrm01.sbcglobal.net [75.1.14.242]) by mx1.freebsd.org (Postfix) with ESMTP id 671DA13C461 for ; Mon, 26 Nov 2007 22:58:57 +0000 (UTC) (envelope-from truckman@FreeBSD.org) Received: from mousie.catspoiler.org (mousie.catspoiler.org [192.168.101.2]) by gw.catspoiler.org (8.13.3/8.13.3) with ESMTP id lAQMwuBv087450; Mon, 26 Nov 2007 14:58:56 -0800 (PST) (envelope-from truckman@FreeBSD.org) Received: from mousie.catspoiler.org (localhost [127.0.0.1]) by mousie.catspoiler.org (8.14.2/8.14.2) with ESMTP id lAQMwuBp045502; Mon, 26 Nov 2007 14:58:56 -0800 (PST) (envelope-from truckman@FreeBSD.org) Received: (from dl@localhost) by mousie.catspoiler.org (8.14.2/8.14.1/Submit) id lAQMwuXg045501; Mon, 26 Nov 2007 14:58:56 -0800 (PST) (envelope-from truckman@FreeBSD.org) Message-Id: <200711262258.lAQMwuXg045501@mousie.catspoiler.org> Date: Mon, 26 Nov 2007 14:58:56 -0800 (PST) From: Don Lewis To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: gnome@FreeBSD.org Subject: ports/118273: [patch] hald + SCSI DDS tape changer -> /var/log/messages spammage X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Don Lewis List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 Nov 2007 23:00:02 -0000 >Number: 118273 >Category: ports >Synopsis: [patch] hald + SCSI DDS tape changer -> /var/log/messages spammage >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon Nov 26 23:00:01 UTC 2007 >Closed-Date: >Last-Modified: >Originator: Don Lewis >Release: FreeBSD 7.0-BETA3 i386 >Organization: totally disorganized >Environment: System: FreeBSD mousie.catspoiler.org 7.0-BETA3 FreeBSD 7.0-BETA3 #32: Fri Nov 23 09:50:45 PST 2007 dl@mousie.catspoiler.org:/usr/obj/usr/src/sys/GENERICDDB i386 FreeBSD 6.x or greater (and probably FreeBSD 5.x). hal-0.5.8.20070909 (and an unknown number of earlier versions) gnome2-2.20.1 (and an unknown number of earlier versions) # camcontrol devlist at scbus0 target 0 lun 0 (pass0,da0) at scbus0 target 4 lun 0 (pass1,sa0) at scbus0 target 6 lun 0 (pass2,sa1) at scbus0 target 6 lun 1 (pass3,ch0) at scbus1 target 0 lun 0 (pass4,cd0) >Description: When hald is started on a machine with a Sony TSL-11000 SCSI tape changer, it tries to treat the changer LUN as a CDROM, which upsets the SCSI bus and causes /var/log/messages to be spammed with SCSI error messages. Nov 26 10:07:25 mousie kernel: (pass3:ahc0:0:6:1): No or incomplete CDB sent to device. Nov 26 10:07:25 mousie kernel: (pass3:ahc0:0:6:1): Protocol violation in Message -in phase. Attempting to abort. Nov 26 10:07:25 mousie kernel: (pass3:ahc0:0:6:1): Abort Message Sent Nov 26 10:07:25 mousie kernel: (pass3:ahc0:0:6:1): SCB 205 - Abort Completed. Nov 26 10:07:25 mousie kernel: (pass3:ahc0:0:6:1): No or incomplete CDB sent to device. Nov 26 10:07:25 mousie kernel: (pass3:ahc0:0:6:1): Protocol violation in Message -in phase. Attempting to abort. Nov 26 10:07:25 mousie kernel: (pass3:ahc0:0:6:1): Abort Message Sent Nov 26 10:07:25 mousie kernel: (pass3:ahc0:0:6:1): SCB 200 - Abort Completed. Nov 26 10:07:25 mousie kernel: (pass3:ahc0:0:6:1): No or incomplete CDB sent to device. Nov 26 10:07:25 mousie kernel: (pass3:ahc0:0:6:1): Protocol violation in Message -in phase. Attempting to abort. Nov 26 10:07:25 mousie kernel: (pass3:ahc0:0:6:1): Abort Message Sent Nov 26 10:07:25 mousie kernel: (pass3:ahc0:0:6:1): SCB 205 - Abort Completed. Nov 26 10:07:25 mousie kernel: (pass3:ahc0:0:6:1): No or incomplete CDB sent to device. Nov 26 10:07:25 mousie kernel: (pass3:ahc0:0:6:1): Protocol violation in Message -in phase. Attempting to abort. Nov 26 10:07:25 mousie kernel: (pass3:ahc0:0:6:1): Abort Message Sent Nov 26 10:07:25 mousie kernel: (pass3:ahc0:0:6:1): SCB 200 - Abort Completed. >How-To-Repeat: Run hald on a machine with a SCSI tape changer. >Fix: The following patch was inspired by the patch attached to this message sent to the hal mailing list: --- hald/freebsd/hf-scsi.c.orig 2007-02-10 13:10:50.000000000 -0800 +++ hald/freebsd/hf-scsi.c 2007-11-26 11:10:37.000000000 -0800 @@ -54,7 +54,7 @@ static gboolean hf_scsi_is_cdrom (int type) { - return (type == T_CDROM || type == T_WORM || type == T_CHANGER || type == T_OPTICAL); + return (type == T_CDROM || type == T_WORM || type == T_OPTICAL); } static HalDevice * @@ -129,11 +129,13 @@ hal_device_property_set_string(device, "scsi.type", "processor"); break; case T_WORM: - case T_CHANGER: case T_CDROM: case T_OPTICAL: hal_device_property_set_string(device, "scsi.type", "cdrom"); break; + case T_CHANGER: + hal_device_property_set_string(device, "scsi.type", "medium_changer"); + break; case T_SCANNER: hal_device_property_set_string(device, "scsi.type", "scanner"); break; >Release-Note: >Audit-Trail: >Unformatted: