Missing includes.
First part of disk writing.
First part of disk writing.
Test case for disk writing.