Track the last read and last write timestamp at the device level and modify
authorMatthew Dillon <dillon@dragonflybsd.org>
Mon, 21 Feb 2005 18:56:05 +0000 (18:56 +0000)
committerMatthew Dillon <dillon@dragonflybsd.org>
Mon, 21 Feb 2005 18:56:05 +0000 (18:56 +0000)
commitd8869c1b2a963a5223456ccc33774c4d26c28f3a
tree60eb1a73d15445374075bc3df86f457f862430af
parent198d12938f1c939ec76d10561f1b5b38fbf78bf2
Track the last read and last write timestamp at the device level and modify
the stat code to retrieve the information.  This is so devices such as ttys
report the correct access/modified time for the 'w' and related utilities.
NOTE: the inode still needs to be updated at CLOSE time to record the last
accessed and modified times persistently, and this is not yet occuring.

This is necessary because device read/write now bypasses the filesystem VOP
code.
sys/kern/kern_device.c
sys/kern/vfs_vnops.c
sys/sys/conf.h