git: tmpfs - Correct some timestamp update issues
dillon at crater.dragonflybsd.org
Thu Dec 7 18:23:26 PST 2017
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(-)
DragonFly BSD source repository
More information about the Commits