cvs commit: src/sys/fs/devfs devfs_devs.c
ed at FreeBSD.org
Sun Sep 21 14:02:58 UTC 2008
ed 2008-09-21 14:02:43 UTC
FreeBSD src repository
SVN rev 183230 on 2008-09-21 14:02:43Z by ed
Already initialize the vfs timestamps inside the cdev upon allocation.
In the MPSAFE TTY branch I noticed the vfs timestamps inside devfs were
allocated with 0, where the getattr() routine bumps the timestamps to
boottime if the value is below 3600. The reason why it has been designed
like this, is because timestamps during boot are likely to be invalid.
This means that device nodes that are created on demand (posix_openpt())
have timestamps with a value of boottime, which is not what we want.
Solve this by calling vfs_timestamp() inside devfs_alloc().
Discussed with: kib
Revision Changes Path
1.55 +4 -0 src/sys/fs/devfs/devfs_devs.c
More information about the cvs-all