Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 13 Aug 2001 15:10:46 +0200
From:      Bernd Walter <ticso@mail.cicely.de>
To:        Matthew Jacob <mjacob@feral.com>
Cc:        Bernd Walter <ticso@mail.cicely.de>, freebsd-hackers@FreeBSD.ORG
Subject:   Re: mtio questions
Message-ID:  <20010813151046.A11357@cicely20.cicely.de>
In-Reply-To: <Pine.BSF.4.21.0108121753040.65085-100000@beppo>; from mjacob@feral.com on Sun, Aug 12, 2001 at 06:03:00PM -0700
References:  <20010812140406.A7326@cicely20.cicely.de> <Pine.BSF.4.21.0108121753040.65085-100000@beppo>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010813151046.A11357>