Date: Thu, 12 Dec 2002 22:52:24 +0800 (CST) From: Alex Wang <alex@alexwang.com> To: FreeBSD-gnats-submit@FreeBSD.org Subject: kern/46209: [PATCH] Can't max-use the DDS-2 and DDS-4 tape in HP DAT 40 tape drive Message-ID: <200212121452.gBCEqOlK003872@alexwang.com>
next in thread | raw e-mail | index | archive | help
>Number: 46209 >Category: kern >Synopsis: [PATCH] Can't max-use the DDS-2 and DDS-4 tape in HP DAT 40 tape drive >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Thu Dec 12 07:00:17 PST 2002 >Closed-Date: >Last-Modified: >Originator: Alex Wang >Release: FreeBSD 4.7-RELEASE i386 >Organization: >Environment: System: FreeBSD alexwang.com 4.7-RELEASE FreeBSD 4.7-RELEASE #0: Mon Oct 14 05:21:51 CST 2002 alex@alexwang.com:/usr/src/sys/compile/ALEX i386 >Description: I am using the HP DAT 40 tape drive. I found that I can't mix-use the DDS-2 and DDS-4 tapes. If I insert DDS-4 tape in the tape drive at boot time, I can write and read both DDS-2 and DDS-4 tapes. At that moment, the block size is 1024 KB. Next time I insert DDS-2 in the tape device at boot time. The block size becomes variable and I am not able to read the data in both DDS-2 and DDS-4. I know that I could use mt(1) to set the blocksize. But I suggest that we could add this in scsi driver. I spent a lot of time to find out this problem and don't want other to waste their time again. Thanks, Wang, Chun-Pin (Alex Wang) >How-To-Repeat: >Fix: --- scsi_sa.patch begins here --- Index: scsi_sa.c =================================================================== RCS file: /home/ncvs/src/sys/cam/scsi/scsi_sa.c,v retrieving revision 1.45.2.12 diff -u -b -r1.45.2.12 scsi_sa.c --- scsi_sa.c 2002/08/02 06:25:56 1.45.2.12 +++ scsi_sa.c 2002/12/12 14:42:26 @@ -306,6 +306,10 @@ #endif { { T_SEQUENTIAL, SIP_MEDIA_REMOVABLE, "HP", + "C56*", "*"}, SA_QUIRK_VARIABLE|SA_QUIRK_2FM, 0 + }, + { + { T_SEQUENTIAL, SIP_MEDIA_REMOVABLE, "HP", "T20*", "*"}, SA_QUIRK_FIXED|SA_QUIRK_1FM, 512 }, { --- scsi_sa.patch ends here --- >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200212121452.gBCEqOlK003872>