On the workings of mmap

From: Rafael Almeida
Date: Thu Dec 17 2009 - 13:06:56 EST


Hello. I have been studying the mmap function and it seems like when I
map an sparse file, that the parts of the file that have nothing are
defined as 0 when I access them through the address space returned by
mmap. Is that luck or is it defined to be this way? My only source of
information was debian's manpage on mmap that didn't seem to talk
about sparse files at all.

[]'s
Rafael
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/