[8632] in linux-scsi channel archive
Re: reading blocks > 32K with generic device
daemon@ATHENA.MIT.EDU (Douglas Gilbert)
Fri Apr 14 22:25:06 2000
Message-ID: <38F7D19E.411F4960@interlog.com>
Date: Fri, 14 Apr 2000 22:19:10 -0400
From: Douglas Gilbert <dgilbert@interlog.com>
MIME-Version: 1.0
To: Jim Hammack <HammackJ@navo.navy.mil>
Cc: linux-scsi@vger.rutgers.edu
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Jim Hammack wrote:
>
> How can I read > 32 Kbytes from a generic scsi device? I am running
> kernel 2.2.13 and using a Sony SDT-9000 DAT drive. I have data tapes
> with a 40960 byte block size. I can read these tapes okay on an SGI
> under IRIX 6.5, but under Linux I only get 32K bytes.
Strange. It should work. Another thing that occurs when 32KB is
exceeded (due to the setting of SG_SCATTER_SZ) is scatter gather.
This would suggest there is something wrong with the SCSI adapter
or driver. [kernel version and adapter?]
To test this theory you could increase SG_SCATTER_SZ (in sg.h)
to 64 KB and rebuild sg.
> I have tried setting the block size with mt:
>
> mt -f /dev/st1 setblk 40960
>
> with no effect. I have tried using ioctl to set SG_SET_RESERVED_SIZE to
> 64K. The ioctl seemed to work and I could use SG_GET_RESERVED_SIZE to
> verify it, but still no effect on reading the tapes.
Doug Gilbert
-
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@vger.rutgers.edu