From owner-freebsd-scsi Mon Sep 4 8:10:29 2000 Delivered-To: freebsd-scsi@freebsd.org Received: from garbanzo.ssesco.com (garbanzo.ssesco.com [192.55.187.34]) by hub.freebsd.org (Postfix) with ESMTP id 3841937B423 for ; Mon, 4 Sep 2000 08:10:12 -0700 (PDT) Received: from ROBIN ([199.199.226.58]) by garbanzo.ssesco.com (8.8.4/8.8.5) with SMTP id KAA17638 for ; Mon, 4 Sep 2000 10:07:00 -0500 Received: by localhost with Microsoft MAPI; Mon, 4 Sep 2000 10:08:50 -0500 Message-ID: <01C01658.1F36EBC0.echriste@ssesco.com> From: Eric Christeson Reply-To: "echriste@ssesco.com" To: "'freebsd-scsi@freebsd.org'" Subject: Problems with tape drive Date: Mon, 4 Sep 2000 10:08:48 -0500 Organization: SSESCO X-Mailer: Microsoft Internet E-mail/MAPI - 8.0.0.4211 Sender: owner-freebsd-scsi@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org I've been having a problem with my tape drive and I have a solution, I just don't know if it's the correct solution. I'm running 4.1 stable and have a drive that gets recognized as a Tandberg TDC 3800 (see dmesg output that follows) with DC6525 tapes. I have scsi and sa in the kernel and everything set up correctly, but whenever I try to do anything with the tape drive I get an error. $ sudo mt status mt: /dev/nsa0: Invalid argument (sa0:sym0:0:5:0): unable to set fixed blocksize to 1024 I set some debug flags and did some digging through cam/scsi/scsi_sa.c and found that the quirk entry for the Tandberg 3800 doesn't set SA_QUIRK_FIXED or SA_QUIRK_VARIABLE so on line 1978 last_media_blksize gets set to 1024 which in turn causes it to try to set the device blocksize to 1024 around line 2041. I don't know if my drive or media is funky or what, but it wants the blocksize to be 512 and only 512 (or variable). I've gotten around this by setting either SA_QUIRK_FIXED or SA_QUIRK_VARIABLE in the Tandberg 3800 quirk entry. dmesg output: Copyright (c) 1992-2000 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD 4.1-STABLE #0: Thu Aug 31 15:06:00 CDT 2000 root@finch.koehntop.net:/usr/obj/usr/src/sys/FINCH Timecounter "i8254" frequency 1193182 Hz CPU: Pentium Pro (179.63-MHz 686-class CPU) Origin = "GenuineIntel" Id = 0x619 Stepping = 9 snip... sa0 at sym0 bus 0 target 5 lun 0 sa0: Removable Sequential Access SCSI-2 device sa0: 3.300MB/s transfers thanks eric Eric J Christeson To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-scsi" in the body of the message