From owner-freebsd-current Tue Dec 28 18:19:52 1999 Delivered-To: freebsd-current@freebsd.org Received: from InterJet.elischer.org (c421509-a.pinol1.sfba.home.com [24.7.86.9]) by hub.freebsd.org (Postfix) with ESMTP id 95F03155C1 for ; Tue, 28 Dec 1999 18:19:32 -0800 (PST) (envelope-from julian@elischer.org) Received: from InterJet.elischer.org (InterJet.elischer.org [192.168.1.1]) by InterJet.elischer.org (8.9.1a/8.9.1) with ESMTP id SAA04956; Tue, 28 Dec 1999 18:19:25 -0800 (PST) Date: Tue, 28 Dec 1999 18:19:25 -0800 (PST) From: Julian Elischer To: Doug White Cc: current@freebsd.org Subject: Re: SUBMIT: compat.linux.pathmunge In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Tue, 28 Dec 1999, Doug White wrote: > Hello fellow hackers, > > I've written up a short patch to add a sysctl to control the appending of > /compat/linux/ to path requests in Linux mode. We had to get ADSM's Linux > client working on FreeBSD so we could do backups of our systems. Luckily > it comes statically linked so all was needed was this sysctl and some > creative redirections (there's a bug in the termio ioctl() emulation > still...) to get it working. > > Patch is attached. Alternately you can poke > http://www.freebsd.org/~dwhite/linux.pathmunge.patch. These are against > -current. I have a nasty #ifdef hack for 3.3 that requires Makefile > changes to compile (you want to keep the fixed and unfixed kernel modules > around on 3.3!). > > Please let me know if you have comments/suggestions/etc. If no one whines > too badly I'll commit these later this week and finally break my > declaration against making kernel changes. :) Good idea that... > > Doug White | FreeBSD: The Power to Serve > dwhite@resnet.uoregon.edu | www.FreeBSD.org > > Index: linux_mib.c > =================================================================== > RCS file: /usr/local/cvs/src/sys/i386/linux/linux_mib.c,v > retrieving revision 1.2 > diff -u -r1.2 linux_mib.c > --- linux_mib.c 1999/08/28 02:16:31 1.2 > +++ linux_mib.c 1999/12/07 06:33:35 > @@ -43,6 +43,7 @@ > char pr_osname[LINUX_MAX_UTSNAME]; > char pr_osrelease[LINUX_MAX_UTSNAME]; > int pr_oss_version; > + int pr_pathmunge; white space inconsistancy > }; > > SYSCTL_NODE(_compat, OID_AUTO, linux, CTLFLAG_RW, 0, > @@ -111,6 +112,28 @@ > 0, 0, linux_sysctl_oss_version, "I", > "Linux OSS version"); To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message