git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Explanation for dropping write-back in mmap
@ 2010-06-07 15:16 Ramkumar Ramachandra
  2010-06-07 15:50 ` Shawn O. Pearce
  2010-06-07 15:55 ` Junio C Hamano
  0 siblings, 2 replies; 5+ messages in thread
From: Ramkumar Ramachandra @ 2010-06-07 15:16 UTC (permalink / raw)
  To: Junio C Hamano
  Cc: Git Mailing List, David Michael Barr, Sverre Rabbelier,
	Jonathan Nieder

Hi Junio,

In the commit f48000fcbe100, you've forced the caller to use
MAP_PRIVATE in the alternative mmap implementation dropping write-back
support. Could you kindly explain the rationale for this? David's SVN
exporter uses mmap with MAP_SHARED, and we figured that the merge
immediately breaks this functionality.

Noticed-by: Jonathan Nieder <jrnieder@gmail.com>

-----------------------------------------------------------------------------------------------------------
commit f48000fcbe1009c18f1cc46e56cde2cb632071fa
Author: Junio C Hamano <junkio@cox.net>
Date:   Sat Oct 8 15:54:36 2005 -0700

    Yank writing-back support from gitfakemmap.

    We do not write through our use of mmap(), so make sure callers pass
    MAP_PRIVATE and remove support for writing changes back.

    Signed-off-by: Junio C Hamano <junkio@cox.net>
-----------------------------------------------------------------------------------------------------------

Thanks.

-- Ram

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2010-06-07 23:13 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-06-07 15:16 Explanation for dropping write-back in mmap Ramkumar Ramachandra
2010-06-07 15:50 ` Shawn O. Pearce
2010-06-07 15:55 ` Junio C Hamano
2010-06-07 19:01   ` Ramkumar Ramachandra
2010-06-07 23:13     ` David Michael Barr

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).