Use ftruncate() to map checkpoint images as sparse files.