diff options
Diffstat (limited to 'sys/fs/devfs')
-rw-r--r-- | sys/fs/devfs/devfs_devs.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/fs/devfs/devfs_devs.c b/sys/fs/devfs/devfs_devs.c index 45f8d58..028f5c9 100644 --- a/sys/fs/devfs/devfs_devs.c +++ b/sys/fs/devfs/devfs_devs.c @@ -117,6 +117,7 @@ devfs_alloc(void) { struct cdev_priv *cdp; struct cdev *cdev; + struct timespec ts; cdp = malloc(sizeof *cdp, M_CDEVP, M_USE_RESERVE | M_ZERO | M_WAITOK); @@ -128,6 +129,9 @@ devfs_alloc(void) cdev->si_name = cdev->__si_namebuf; LIST_INIT(&cdev->si_children); + vfs_timestamp(&ts); + cdev->si_atime = cdev->si_mtime = cdev->si_ctime = ts; + return (cdev); } |