Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 14 Dec 2006 14:31:12 +0200
From:      Kostik Belousov <kostikbel@gmail.com>
To:        Scot Hetzel <swhetzel@gmail.com>
Cc:        emulation@freebsd.org
Subject:   Re: linuxolator: proc/filesystems implementation
Message-ID:  <20061214123111.GC67895@deviant.kiev.zoral.com.ua>
In-Reply-To: <790a9fff0612140401h7bf0bdb0idb1590120ae95e3f@mail.gmail.com>
References:  <790a9fff0612140401h7bf0bdb0idb1590120ae95e3f@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help

--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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20061214123111.GC67895>