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>

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

[-- Attachment #1 --]
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 modules.
> 
> I have implemented the function that fills this file using the linprocfs 
> module.
> 
> What the function does is look for specific kernel modules using
> module_lookupbyname to create an entry in the proc/filesystems file:
> 
> # 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
> 
> 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.


[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (FreeBSD)

iD8DBQFFgUQPC3+MBN1Mb4gRAqDFAKCUKBhsE3pkib2X22/nMF4avhhqlQCgutRC
nL3lynY9CKlnGWxsniLXfPQ=
=yb+M
-----END PGP SIGNATURE-----
home | help

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