From owner-freebsd-emulation Mon Apr 9 14: 6:13 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 0FAD037B423 for ; Mon, 9 Apr 2001 14:06:10 -0700 (PDT) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.11.3/8.11.3) id f39L5m911832; Mon, 9 Apr 2001 16:05:48 -0500 (CDT) (envelope-from dan) Date: Mon, 9 Apr 2001 16:05:39 -0500 From: Dan Nelson To: Dominik Brettnacher Cc: freebsd-emulation@freebsd.org Subject: Re: Tape support for linux programs Message-ID: <20010409160538.A12420@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 19:37:15 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: > > >> has anybody of you plans to make the Linux emulation support tape > > >> drives so that one can use Linux backup programs on FreeBSD? > > It's not a matter of tape support; the tape drive support is fine. > > Lots of Linux backup programs want to send raw SCSI commands, though, > > which means there needs to be an emulation layer to convert our > > /dev/pass* devices to support Linux /dev/sgm* 's ioctls. > > 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. -- Dan Nelson dnelson@emsphone.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-emulation" in the body of the message