From owner-freebsd-emulation Mon Apr 9 15:23: 9 2001 Delivered-To: freebsd-emulation@freebsd.org Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by hub.freebsd.org (Postfix) with ESMTP id D6C6437B422 for ; Mon, 9 Apr 2001 15:23:06 -0700 (PDT) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.11.3/8.11.3) id f39MN1622715; Mon, 9 Apr 2001 17:23:01 -0500 (CDT) (envelope-from dan) Date: Mon, 9 Apr 2001 17:23:01 -0500 From: Dan Nelson To: Dominik Brettnacher Cc: freebsd-emulation@freebsd.org Subject: Re: Tape support for linux programs Message-ID: <20010409172301.A18576@dan.emsphone.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.3.17i In-Reply-To: ; from "Dominik Brettnacher" on Mon Apr 9 23:47:23 GMT 2001 X-OS: FreeBSD 5.0-CURRENT Sender: owner-freebsd-emulation@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org 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