A method for testing an intent log for a file system that includes
creating a first file system, issuing a command to freeze the first file
system, performing a plurality of commands on the first file system to
obtain a plurality of deltas, wherein each of the plurality of deltas is
stored in the intent log and is not committed to the first file system,
copying the first file system to obtain a second file system, committing
each of the plurality of deltas in the intent log to the second file
system, unfreezing the first file system and committing each of the
deltas in the intent log to the first file system, and comparing the
first file system, after committing each of the deltas in the intent log,
to the second file system to determine whether the intent log is valid.