linuxolator: proc/filesystems implementation

Scot Hetzel swhetzel at gmail.com
Thu Dec 14 04:13:21 PST 2006


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.

Scot

-- 
DISCLAIMER:
No electrons were mamed while sending this message. Only slightly bruised.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: linprocfs_filesystem.patch
Type: text/x-diff
Size: 2502 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-emulation/attachments/20061214/2a246564/linprocfs_filesystem.bin


More information about the freebsd-emulation mailing list