Reading The Contents Of A Directory

If we'll just stop here, we'll get a system crash in the first "ls" to the root directory - we want to be able to read the contents of the root directory, and this requires a file-operation named readdir, implemented in stamfs_readdir():

Now, here is the search-able STAMFS code.
Note: expect a kernel-panic when bdflush tries to sync this directory - we'll get back to this later...

Originally written by Valid HTML 4.01!guy keren