Re: comparing file contents in is_exact_match?
- From
Alex Riesen <raa.lkml@gmail.com>
- Date
- Jul 18, 2006, 18:49 UTC
- Message-ID
- <81b0412b0607181149k74165724pa0a513d14704ce73@mail.gmail.com>
- In-Reply-To
- <Pine.LNX.4.64.0607180837260.3386@evo.osdl.org>
On 7/18/06, Linus Torvalds <torvalds@osdl.org> wrote:
> So I really think we should just basically always mmap the pack-files (it > should work everywhere), and make NO_MMAP just trigger on the other cases.
And while we are at it make a mental note about avoiding platforms with broken mmap. For instance, QNX6 mmap with MAP_PRIVATE _always_ makes a copy of the whole! file, the stupid thing (they even documented it so!). The alternative flag, MAP_SHARED, does not work on some filesystems at all.