Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 9 Apr 2001 17:23:01 -0500
From:      Dan Nelson <dnelson@emsphone.com>
To:        Dominik Brettnacher <domi@saargate.de>
Cc:        freebsd-emulation@freebsd.org
Subject:   Re: Tape support for linux programs
Message-ID:  <20010409172301.A18576@dan.emsphone.com>
In-Reply-To: <Pine.BSF.4.21.0104092346220.32952-100000@dominik.saargate.de>; from "Dominik Brettnacher" on Mon Apr  9 23:47:23 GMT 2001
References:  <fc.21f3dbdf21f3dbdf3b9aca00d0f4ae6a.e00635@saargate.de> <Pine.BSF.4.21.0104092346220.32952-100000@dominik.saargate.de>

next in thread | previous in thread | raw e-mail | index | archive | help
In the last episode (Apr 09), Dominik Brettnacher said:
> On Mon, 9 Apr 2001, dnelson@emsphone.com wrote:
> 
> > >> So does mt use raw SCSI commands?
> > >> bash-2.04$ ./mt -f /dev/sa1 status
> > >> ./mt: /dev/sa1: Invalid argument
> > >> bash-2.04$ dmesg |tail
> > >> [...]
> > >> linux: 'ioctl' fd=3, cmd=6d01 ('m',1) not implemented
> > Most of the 'mt' commands use an ioctl that is not emulated by FreeBSD. 
> > Emulating this would be considerably easier than the /dev/sgc stuff,
> > but is still a bit complicated.  The basic rewind/seek/filemark
> > operations would be pretty easy.
> 
> How easy does 'pretty easy' mean? What does one have to do to support
> those basic features?

You'd have to add a block of code to /sys/compat/linux/linux_ioctl.c
that can handle the MTIOCTOP, MTIOCGET, and MTIOCPOS ioctls.  The
MTIOCTOP ioctl has ~20 subcommands, though..

-- 
	Dan Nelson
	dnelson@emsphone.com

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-emulation" in the body of the message




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