Do not mmap invalid files.