4 ms·
It doesn't really add extra bytes - it "remembers" the original size of the file. So if you update the file to be larger, you only get the first N bytes. If yo
by defen 12y ago
It doesn't really add extra bytes - it "remembers" the original size of the file. So if you update the file to be larger, you only get the first N bytes. If you update it to be smaller, you get the full file + zero bytes at the end to fill out the remainder. If you can't turn off sendfile for some reason, the workaround is to delete the file every time before saving it.
- dirtyaura 12y agoThanks, enlightening. And is this because due to some implementation difficulties for sendfile when using shared file system between the box and the host machine?