[lkml]   [2004]   [May]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: 1352 NUL bytes at the end of a page?
    On Mon, May 17, 2004 at 11:17:38AM -0400, Theodore Ts'o wrote:
    > On Mon, May 17, 2004 at 08:56:40AM -0500, Wayne Scott wrote:
    > > From: Andrew Morton <>
    > > > Well we can stop right there, because the only way someone can get some
    > > > more non-zero user data into this page before we memset and write it is by
    > > > locking the page beforehand, and block_write_full_page() has the page lock.
    > > > (Or they can write stuff into it via mmap, but writing to the page outside
    > > > i_size is an application bug).
    > >
    > > BTW: BitKeeper never opens a writable mmap to a file. The files are
    > > read with mmap() and written by fwriting to a tmp file and then
    > > renaming over the target. And since we run on Windows, no process has
    > > the file open when we are updating it.
    > Note though that the stdio library uses a writeable mmap to implement
    > fwrite.

    That's news to me. And we use fwrite.
    Larry McVoy lm at
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to
    More majordomo info at
    Please read the FAQ at

     \ /
      Last update: 2005-03-22 14:03    [W:0.028 / U:0.840 seconds]
    ©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site