From owner-freebsd-emulation@FreeBSD.ORG Sat Jan 6 12:08:43 2007 Return-Path: X-Original-To: freebsd-emulation@freebsd.org Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 02CF116A412 for ; Sat, 6 Jan 2007 12:08:43 +0000 (UTC) (envelope-from alexander@leidinger.net) Received: from redbull.bpaserver.net (redbullneu.bpaserver.net [213.198.78.217]) by mx1.freebsd.org (Postfix) with ESMTP id B586613C455 for ; Sat, 6 Jan 2007 12:08:42 +0000 (UTC) (envelope-from alexander@leidinger.net) Received: from outgoing.leidinger.net (p54A5F586.dip.t-dialin.net [84.165.245.134]) by redbull.bpaserver.net (Postfix) with ESMTP id 4E2922E146; Sat, 6 Jan 2007 13:13:27 +0100 (CET) Received: from Magellan.Leidinger.net (Magellan.Leidinger.net [192.168.1.1]) by outgoing.leidinger.net (Postfix) with ESMTP id BF4D25B497E; Sat, 6 Jan 2007 13:08:30 +0100 (CET) Date: Sat, 6 Jan 2007 13:08:30 +0100 From: Alexander Leidinger To: "Scot Hetzel" Message-ID: <20070106130830.3c2e6d98@Magellan.Leidinger.net> In-Reply-To: <790a9fff0701060012x40063f48pc842510b082df5a5@mail.gmail.com> References: <790a9fff0701060012x40063f48pc842510b082df5a5@mail.gmail.com> X-Mailer: Claws Mail 2.6.1 (GTK+ 2.10.6; i386-portbld-freebsd7.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BPAnet-MailScanner-Information: Please contact the ISP for more information X-BPAnet-MailScanner: Found to be clean X-BPAnet-MailScanner-SpamCheck: not spam, SpamAssassin (not cached, score=-14.787, required 6, autolearn=not spam, BAYES_00 -15.00, DK_POLICY_SIGNSOME 0.00, FORGED_RCVD_HELO 0.14, TW_OC 0.08) X-BPAnet-MailScanner-From: alexander@leidinger.net X-Spam-Status: No Cc: freebsd-emulation@freebsd.org Subject: Re: linuxolator: proc/filesystems and sysfs function implementations X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 06 Jan 2007 12:08:43 -0000 Quoting "Scot Hetzel" (Sat, 6 Jan 2007 02:12:00 -0600): > I also re-implemented the patch to linprocfs to use > TAILQ_FOREACH(vfsp, &vfsconf, vfc_list), and implemented the > freebsd_to_linux_fs function (translates a freebsd fs name to a linux > fs name) in sys/compat/linprocfs/linprocfs.c. > > This function is needed by the sysfs implementation, and was wondering > where the translation function, and the structure it returns should be > placed so that it is accessable to both implementations (linux_sysfs, > and linprocfs_dofilesystems). What about compat/linux_emul.[ch], or linux_misc.[ch] or a completely new linux_fs.[ch]? I don't know if it is a good idea to translate the names or not... I can come up with cases where it is ok, but I can also come up with cases where it isn't. Unluckily I don't know which cases should be taken into account or not. Bye, Alexander. -- Golly, I'd hate to have a kid like me! -- Calvin http://www.Leidinger.net Alexander @ Leidinger.net: PGP ID = B0063FE7 http://www.FreeBSD.org netchild @ FreeBSD.org : PGP ID = 72077137