sparsefile - generate a sparse file
/testbin/sparsefile filename size
sparsefile generates a sparse file (a file where most of the file is unallocated space) of the requested size by writing one byte to the end of it. The resulting file should use one block for data, and depending on the size (and the file system implementation) some small number of blocks for metadata.
sparsefile uses the following system calls:
sparsefile will work once you have implemented the basic system calls, but will be most useful when working on the file system.