HomeFreeBSD

Already initialize the vfs timestamps inside the cdev upon allocation.
rS183230Unpublished

Unpublished Commit ยท Learn More

No further details are available.

Description

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

Details

Provenance
edAuthored on
Parents
rS183229: The vendor area is the proper home for these files now.
Branches
Unknown
Tags
Unknown

Event Timeline