From owner-freebsd-current@FreeBSD.ORG Wed Jun 30 05:34:13 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AE32716A4CE for ; Wed, 30 Jun 2004 05:34:13 +0000 (GMT) Received: from cain.gsoft.com.au (cain.gsoft.com.au [203.31.81.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4CD7743D1F for ; Wed, 30 Jun 2004 05:34:12 +0000 (GMT) (envelope-from doconnor@gsoft.com.au) Received: from inchoate.gsoft.com.au (localhost [127.0.0.1]) (authenticated bits=0) by cain.gsoft.com.au (8.12.11/8.12.10) with ESMTP id i5U5XINl050749; Wed, 30 Jun 2004 15:03:18 +0930 (CST) (envelope-from doconnor@gsoft.com.au) From: "Daniel O'Connor" To: "Thyer, Matthew" Date: Wed, 30 Jun 2004 15:03:18 +0930 User-Agent: KMail/1.6.2 References: In-Reply-To: MIME-Version: 1.0 Content-Disposition: inline Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Message-Id: <200406301503.18440.doconnor@gsoft.com.au> X-Spam-Score: -4.9 () CARRIAGE_RETURNS,IN_REP_TO,PGP_SIGNATURE,QUOTED_EMAIL_TEXT,REFERENCES,SPAM_PHRASE_00_01,USER_AGENT,USER_AGENT_KMAIL X-Scanned-By: MIMEDefang 2.16 (www . roaringpenguin . com / mimedefang) cc: Carl Makin cc: Paul Mather cc: freebsd-current@freebsd.org cc: Paul Seniura Subject: Re: Q's about IBM TSM (was Re: HEADSUP: ibcs2 and svr4 comp at headed for history) X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 30 Jun 2004 05:34:13 -0000 =2D----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Wed, 30 Jun 2004 14:15, Thyer, Matthew wrote: > Ideally this would need some kernel support to handle updating of the file > whenever file systems are manually mounted and unmounted. Remember that > Linux's etc/mtab file is to record what is currently mounted. A simple > translation of FreeBSD's /etc/fstab at module load time or system boot ti= me > is not really adequate. Ahh I see.. I guess it would be not significantly more complicated to ask the kernel wh= at=20 is mounted and gin up a fake mtab to feed in via LD_PRELOAD. ie I don't think any magic kernel support would be needed (although that id= ea=20 does have some appeal as then you wouldn't need LD_PRELOAD magic and it wou= ld=20 work on static binaries). > -----Original Message----- > From: owner-freebsd-current@freebsd.org > [mailto:owner-freebsd-current@freebsd.org]On Behalf Of Daniel O'Connor > Sent: Wednesday, 30 June 2004 12:11 PM > To: freebsd-current@freebsd.org > Cc: Carl Makin; Paul Mather; Paul Seniura > Subject: Re: Q's about IBM TSM (was Re: HEADSUP: ibcs2 and svr4 compat > headed for history) > > On Wed, 30 Jun 2004 01:11, Paul Mather wrote: > > I'm using the Linux 5.1.5.15 TSM client on a FreeBSD 5.2.1-RELEASE-p8 > > system. (See previous message in this thread.) It was a bit finicky to > > get going. I found I had better luck using emulators/linux_base-8 than > > emulators/linux_base, though I did get it running under both. One > > hurdle for most people is that the client aborts with an out of memory > > error during file activities. I discovered that this is caused by > > having an empty or missing /compat/linux/etc/mtab file. Creating a > > proper mtab file solves these problems. One way to do this is via > > something like the following: > > > > sed 's/ufs/ext2/' < /etc/fstab > /compat/linux/etc/mtab > > > > That way, the Linux TSM "sees" your UFS partitions and will > > backup/restore to them. > > I wonder if it could work with an LD_PRELOAD or some other linker > trickery.. > > ie replace open()/read()/write() with something that looks for /etc/mtab > and instead opens /etc/fstab and translates it on the fly.. > > I don't use TSM though so I couldn't test it :) > > (BTW linux_devtools can be used to make something like this, I wrote one > for the TeamSpeak port to hide an unimplemented sound ioctl) =2D --=20 Daniel O'Connor software and network engineer for Genesis Software - http://www.gsoft.com.au "The nice thing about standards is that there are so many of them to choose from." -- Andrew Tanenbaum GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C =2D----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQFA4lCe5ZPcIHs/zowRAgp+AKCMMIqG0ltikSjEX5UDfiCAlf7eoQCeMRa5 QCyCEoySxSsmMx8p7vw03fc=3D =3DqADA =2D----END PGP SIGNATURE-----