mmap IO engine cannot extend a file
authorJens Axboe <jens.axboe@oracle.com>
Tue, 20 Feb 2007 18:49:57 +0000 (19:49 +0100)
committerJens Axboe <jens.axboe@oracle.com>
Tue, 20 Feb 2007 18:49:57 +0000 (19:49 +0100)
commit948f9b2eed7aeee6367957ea30be7a2da94d5b1b
tree0eb1bf3ff425eb44c02a5131060a349fab3e0c42
parent6c23570dd5458d8f7c7086fb86675ce7b424d4fd
mmap IO engine cannot extend a file

We need to ftruncate it to the wanted size first, or the mmap
write will terminate with SIGBUS.

Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
engines/mmap.c