Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 21 Sep 2008 14:02:43 +0000 (UTC)
From:      Ed Schouten <ed@FreeBSD.org>
To:        src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/sys/fs/devfs devfs_devs.c
Message-ID:  <200809211402.m8LE2wL0096977@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
ed          2008-09-21 14:02:43 UTC

  FreeBSD src repository

  Modified files:
    sys/fs/devfs         devfs_devs.c 
  Log:
  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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200809211402.m8LE2wL0096977>