From owner-freebsd-hackers Thu Mar 20 08:16:32 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id IAA22042 for hackers-outgoing; Thu, 20 Mar 1997 08:16:32 -0800 (PST) Received: from plains.nodak.edu (tinguely@plains.NoDak.edu [134.129.111.64]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id IAA22029 for ; Thu, 20 Mar 1997 08:16:27 -0800 (PST) Received: (from tinguely@localhost) by plains.nodak.edu (8.8.5/8.8.5) id KAA11021; Thu, 20 Mar 1997 10:15:58 -0600 (CST) Date: Thu, 20 Mar 1997 10:15:58 -0600 (CST) From: Mark Tinguely Message-Id: <199703201615.KAA11021@plains.nodak.edu> To: avalon@coombs.anu.edu.au Subject: Re: dds tape drives. Cc: darrenr@cyber.com.au, hackers@FreeBSD.ORG Sender: owner-hackers@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk I whipped together the sys/scsi/st.c block and record counting code I had for both FreeBSD 2.2-RELEASE and FreeBSD 1.7-RELEASE. This is tested only on FreeBSD 1.7. I surrounded the sys/scsi/st.c changes inside NDSU_ST_EXT defines for quicker disabling if you so desire. A person may also remove the NDSU_ST_EXT #ifdef statements if you also wish. I also added the check to see if the tape is mounted read-write or read-only (I used this is a tape mounting program where an operator mounts a tape in one of those mode, and the tape mounting program can spit the tape out if the operator has the wrong write setting). The Write status is accomplished by adding a new "flag" field in the mtget structure located in the file sys/sys/mtio.h for anyone that is interested you in these changes, you may get them from either: ftp://joy.cs.ndsu.nodak.edu/pub/freebsd-st-count/1.7-st-patch ftp://joy.cs.ndsu.nodak.edu/pub/freebsd-st-count/2.2-st-patch or ftp://ftp.cs.ndsu.nodak.edu/pub/freebsd-st-count/1.7-st-patch ftp://ftp.cs.ndsu.nodak.edu/pub/freebsd-st-count/2.2-st-patch --mark.