Subject: Re: kern/21503: empty SCSI tape drives cannot be queried or configured
To: NetBSD GNATS submissions and followups <email@example.com>
From: Manuel Bouyer <firstname.lastname@example.org>
Date: 06/16/2003 21:28:58
On Mon, Jun 16, 2003 at 02:22:45PM -0400, Greg A. Woods wrote:
> [ On Wednesday, May 14, 2003 at 14:53:56 (+0200), Manuel Bouyer wrote: ]
> > Subject: Re: kern/21503: empty SCSI tape drives cannot be queried or configured
> > Did you try mt -f /dev/enrst0 status ? This work for me, on a DLT7000
> OK, so to finally get back to this PR.
> Yes, /dev/enrst0 does work.
> I think there are two related problems (well, three or four if you
> include the documentation fixes).
> The first is that if tape is empty the driver returns ENODEV on open of
> a non-control device (i.e. a device node without both low bits set (11)
> in the minor number). I think the patch I offered in the initial PR
> mostly solves this problem.
I don't see why you think ENODEV isn't right here. This is what other drivers
return when there's no media too.
> A good technical documentation editor might
> be able to make the st(4) documentation a little better too -- e.g.
> remind the reader more prominently that the control mode device must be
> used if there's no media in the drive.
> The second problem is that 'mt' was never fixed to use the control mode
> device by default when that mode was first introduced. That fix can be
> done quite simply with the following patch:
I'll let someone else handle this; I don't know what others differences there
are between nrst and enrst ...
Manuel Bouyer <email@example.com>
NetBSD: 24 ans d'experience feront toujours la difference