linuxolator: proc/filesystems and sysfs function implementations
Scot Hetzel
swhetzel at gmail.com
Sun Jan 14 04:17:07 UTC 2007
Attached is an implementation for the linux sysfs() function and
linprocfs (proc/filesystems).
I have run the sysfs01-06 LTP tests, and it passes all tests.
NOTE: kldload ext2fs before running the sysfs01 test.
The code uses 2 translation functions located in linux_util.c:
bsd_to_linux_fs - converts BSD filesystem name to the Linux
equivalent, and if the filesystem requires a dev entry (used by
linprocfs_do_filesystems function).
linux_to_bsd_fs - converts Linux filesystem name to the BSD equivalent
Scot
--
DISCLAIMER:
No electrons were mamed while sending this message. Only slightly bruised.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: sysfs.patch
Type: text/x-diff
Size: 7164 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-emulation/attachments/20070114/75b77064/sysfs.bin
More information about the freebsd-emulation
mailing list