git: tmpfs - Correct some timestamp update issues

Matthew Dillon dillon at crater.dragonflybsd.org
Thu Dec 7 18:23:26 PST 2017


commit 9132128428309d983e24a401509e2bb8512decff
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Thu Dec 7 18:20:49 2017 -0800

    tmpfs - Correct some timestamp update issues
    
    * write() was updating ACCESSED and MODIFIED when it should only
      be updating MODIFIED.
    
    * unlink() (aka rm) was updating CHANGE, ACCESSED, and MODIFIED
      which would be visible if a file has multiple links.  It should
      only update the CHANGE time.
    
    * rmdir() was doing the same thing as UNLINKED.  Fixed this too,
      but the bug would not be readily visible anyway since directories
      cannot be hardlinked.  However, fstat() on an open descriptor
      would still reveal it.

Summary of changes:
 sys/vfs/tmpfs/tmpfs_vnops.c | 8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/9132128428309d983e24a401509e2bb8512decff


-- 
DragonFly BSD source repository



More information about the Commits mailing list