cvs commit: src/sys/vm vm_mmap.c

Diomidis Spinellis dds at FreeBSD.org
Tue Oct 4 07:58:59 PDT 2005


dds         2005-10-04 14:58:58 UTC

  FreeBSD src repository

  Modified files:
    sys/vm               vm_mmap.c 
  Log:
  Update the vnode's access time after an mmap operation on it.
  Before this change a copy operation with cp(1) would not update the
  file access times.
  
  According to the POSIX mmap(2) documentation: the st_atime field
  of the mapped file may be marked for update at any time between the
  mmap() call and the corresponding munmap() call. The initial read
  or write reference to a mapped region shall cause the file's st_atime
  field to be marked for update if it has not already been marked for
  update.
  
  Revision  Changes    Path
  1.202     +12 -0     src/sys/vm/vm_mmap.c


More information about the cvs-src mailing list