From owner-freebsd-hackers Mon Aug 13 6:11: 3 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from srv1.cosmo-project.de (srv1.cosmo-project.de [213.83.6.106]) by hub.freebsd.org (Postfix) with ESMTP id 1D71D37B407 for ; Mon, 13 Aug 2001 06:10:48 -0700 (PDT) (envelope-from ticso@mail.cicely.de) Received: from mail.cicely.de (cicely20 [10.1.1.22]) by srv1.cosmo-project.de (8.11.0/8.11.0) with ESMTP id f7DDAh343234; Mon, 13 Aug 2001 15:10:43 +0200 (CEST) Received: (from ticso@localhost) by mail.cicely.de (8.11.0/8.11.0) id f7DDAlW11386; Mon, 13 Aug 2001 15:10:47 +0200 (CEST) Date: Mon, 13 Aug 2001 15:10:46 +0200 From: Bernd Walter To: Matthew Jacob Cc: Bernd Walter , freebsd-hackers@FreeBSD.ORG Subject: Re: mtio questions Message-ID: <20010813151046.A11357@cicely20.cicely.de> References: <20010812140406.A7326@cicely20.cicely.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from mjacob@feral.com on Sun, Aug 12, 2001 at 06:03:00PM -0700 X-Operating-System: NetBSD cicely20.cicely.de 1.5 sparc Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Sun, Aug 12, 2001 at 06:03:00PM -0700, Matthew Jacob wrote: > > I'll answer based upon -stable FreeBSD code. > > On Sun, 12 Aug 2001, Bernd Walter wrote: > > > > > Asume the following code examples: > > > > int fd; > > struct mtop mo; > > char buf[10240]; > > > > fd = open("/dev/nsa0", O_RDWR | O_EXLOCK); > > mo.mt_op = MTREW; > > mo.mt_count = 0; > > ioctl(fd, MTIOCTOP, &mo); > > write(fd, buf, 10240); > > close(fd); > > Let's not ask whether this is variable record or not. Do you think it's a good idea to always set the blocksize to 10k? Are there better choices than 10k? Are there drives out there that can't work with this? AFAIK it's supposed that drives/drivers have to split the 10k block into smaller physical if the drive is not capable of writing a single 10k block. -- B.Walter COSMO-Project http://www.cosmo-project.de ticso@cicely.de Usergroup info@cosmo-project.de To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message