mmap bug?

Giorgos Keramidas keramida at ceid.upatras.gr
Sun Jul 31 16:08:59 GMT 2005


On 2005-07-31 21:26, Joseph Koshy <joseph.koshy at gmail.com> wrote:
> > The following program can be used to mmap() a region
>
> Do you still see the 'extra' data if you unmount and remount
> the filesystem with the test file?

That's something I didn't test.  No, the 'extra' data disappears.

I tried this by creating a new md-based filesystem.  After the file
system is unmounted, mounted again and the test program run to write
through mmap() past the end of the file, there are zeroes in that area
(before I write my own data, that is).

The size of the file remains the same between mount/unmount requests.



More information about the freebsd-current mailing list