Truncating An Inode's Data Blocks

This function is used both when deleting the inode, and when a user invokes a "truncate" operation (with a given offset) on a file, so it uses the inode's size field in order to know where to start truncating from:

Now, here is the persistent STAMFS code.

Originally written by Valid HTML 4.01!guy keren