From owner-freebsd-emulation@FreeBSD.ORG Thu Dec 14 12:32:49 2006 Return-Path: X-Original-To: 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 1518A16A50A for ; Thu, 14 Dec 2006 12:32:49 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from relay01.kiev.sovam.com (relay01.kiev.sovam.com [62.64.120.200]) by mx1.FreeBSD.org (Postfix) with ESMTP id 09B9B43D9A for ; Thu, 14 Dec 2006 12:30:03 +0000 (GMT) (envelope-from kostikbel@gmail.com) Received: from [212.82.216.227] (helo=fw.zoral.com.ua) by relay01.kiev.sovam.com with esmtps (TLSv1:AES256-SHA:256) (Exim 4.60) (envelope-from ) id 1Gupk7-000Eaa-Gv for emulation@freebsd.org; Thu, 14 Dec 2006 14:31:28 +0200 Received: from deviant.kiev.zoral.com.ua (root@deviant.kiev.zoral.com.ua [10.1.1.148]) by fw.zoral.com.ua (8.13.4/8.13.4) with ESMTP id kBECVDH7056767 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 14 Dec 2006 14:31:13 +0200 (EET) (envelope-from kostikbel@gmail.com) Received: from deviant.kiev.zoral.com.ua (kostik@localhost [127.0.0.1]) by deviant.kiev.zoral.com.ua (8.13.8/8.13.8) with ESMTP id kBECVDw1024637; Thu, 14 Dec 2006 14:31:13 +0200 (EET) (envelope-from kostikbel@gmail.com) Received: (from kostik@localhost) by deviant.kiev.zoral.com.ua (8.13.8/8.13.8/Submit) id kBECVCMl024636; Thu, 14 Dec 2006 14:31:12 +0200 (EET) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: deviant.kiev.zoral.com.ua: kostik set sender to kostikbel@gmail.com using -f Date: Thu, 14 Dec 2006 14:31:12 +0200 From: Kostik Belousov To: Scot Hetzel Message-ID: <20061214123111.GC67895@deviant.kiev.zoral.com.ua> References: <790a9fff0612140401h7bf0bdb0idb1590120ae95e3f@mail.gmail.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="kfjH4zxOES6UT95V" Content-Disposition: inline In-Reply-To: <790a9fff0612140401h7bf0bdb0idb1590120ae95e3f@mail.gmail.com> User-Agent: Mutt/1.4.2.2i X-Virus-Scanned: ClamAV version 0.88.4, clamav-milter version 0.88.4 on fw.zoral.com.ua X-Virus-Status: Clean X-Spam-Status: No, score=1.4 required=5.0 tests=SPF_NEUTRAL, UNPARSEABLE_RELAY autolearn=no version=3.1.4 X-Spam-Level: * X-Spam-Checker-Version: SpamAssassin 3.1.4 (2006-07-25) on fw.zoral.com.ua X-Scanner-Signature: 6dc4245230f22f3abb357b69a6da667e X-DrWeb-checked: yes X-SpamTest-Envelope-From: kostikbel@gmail.com X-SpamTest-Group-ID: 00000000 X-SpamTest-Info: Profiles 610 [Dec 14 2006] X-SpamTest-Info: helo_type=3 X-SpamTest-Info: {received from trusted relay: not dialup} X-SpamTest-Method: none X-SpamTest-Method: Local Lists X-SpamTest-Rate: 0 X-SpamTest-Status: Not detected X-SpamTest-Status-Extended: not_detected X-SpamTest-Version: SMTP-Filter Version 3.0.0 [0255], KAS30/Release Cc: emulation@freebsd.org Subject: Re: linuxolator: proc/filesystems implementation 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: Thu, 14 Dec 2006 12:32:49 -0000 --kfjH4zxOES6UT95V Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Dec 14, 2006 at 06:01:27AM -0600, Scot Hetzel wrote: > Linux has a file in the procfs that shows all the loaded filesystem modul= es. >=20 > I have implemented the function that fills this file using the linprocfs= =20 > module. >=20 > What the function does is look for specific kernel modules using > module_lookupbyname to create an entry in the proc/filesystems file: >=20 > # cat /compat/linux/proc/filesystems > cd9660 > nodev devfs > nodev bsdprocfs > mfs > msdosfs > nfs > nfs4 > nodev procfs > nodev sysfs > ufs > # kldload smbfs > # cat /compat/linux/proc/filesystems > cd9660 > nodev devfs > nodev bsdprocfs > mfs > msdosfs > nfs > nfs4 > nodev procfs > smbfs > nodev sysfs > ufs >=20 > Unloading a filesystem kernel module will remove the entry from > proc/filesystems. The kernel keeps the list of the registered fs types in the vfsconf list of struct vfsconf. See sys/sys/mount.h and sys/kern/vfs_init.c. --kfjH4zxOES6UT95V Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (FreeBSD) iD8DBQFFgUQPC3+MBN1Mb4gRAqDFAKCUKBhsE3pkib2X22/nMF4avhhqlQCgutRC nL3lynY9CKlnGWxsniLXfPQ= =yb+M -----END PGP SIGNATURE----- --kfjH4zxOES6UT95V--