if I write data to the middle of the allocated address space, will the file size increase. just like fseek
does ?
or it will write to the beginning of the file ?
The answer is no. writeto mmap will not grow the file or create sparse file. I have to allocate the file manually.