Integration tests for fs truncate, ftruncate and the sync versions.