tmpfs - Correct some timestamp update issues
authorMatthew Dillon <dillon@apollo.backplane.com>
Fri, 8 Dec 2017 02:20:49 +0000 (18:20 -0800)
committerMatthew Dillon <dillon@apollo.backplane.com>
Fri, 8 Dec 2017 02:20:49 +0000 (18:20 -0800)
commit9132128428309d983e24a401509e2bb8512decff
treeec21a3af4cf70560375fd669b2701335ac7b2f08
parent8f77b6ceaa3e169cd03a69c5ec67834912c6b2c6
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.
sys/vfs/tmpfs/tmpfs_vnops.c