next up previous
Next: Installation Up: Installing FUSD Previous: Compiling FUSD as a

Testing and Troubleshooting

Once everything has been compiled, give it a try to see if it actually does something. First, use insmod to insert the FUSD kernel module, e.g. insmod obj.i686-linux/kfusd.o. A greeting message similar to ``fusd: starting, Revision: 1.50'' should appear in the kernel log (accessed using the dmesg command, or by typing cat /proc/kmsg). You can verify the module has been inserted by typing lsmod, or alternatively cat /proc/modules.

Once the module has been inserted successfully, trying running the helloworld example program. When run, the program should print a greeting message similar to /dev/hello-world should now exist - calling fusd_run. This means everything is working; the daemon is now blocked, waiting for requests to the new device. From another shell, type cat /dev/hello-world. You should see Hello, world! printed in response. Try killing the test program; the corresponding device file should disappear.

If nothing seems to be working, try looking at the kernel message log (type dmesg or cat /proc/kmsg) to see if there are any errors. If nothing seems obviously wrong, try turning on FUSD kernel module debugging by defining CONFIG_FUSD_DEBUG in kfusd.c, then recompiling and reinserting the module.


next up previous
Next: Installation Up: Installing FUSD Previous: Compiling FUSD as a
Jeremy Elson 2003-08-20