summaryrefslogtreecommitdiffstats
path: root/sys/kern/vfs_extattr.c
diff options
context:
space:
mode:
authorjdp <jdp@FreeBSD.org>1999-08-22 16:50:30 +0000
committerjdp <jdp@FreeBSD.org>1999-08-22 16:50:30 +0000
commit545b4031fcf7a84e33e2c2e2fad8e13d80a3395c (patch)
tree8d36ca0249d113078e220059b3127ce725a02b76 /sys/kern/vfs_extattr.c
parent2d6692b0582fd5543d871a77d1fb85fe9c5426c7 (diff)
downloadFreeBSD-src-545b4031fcf7a84e33e2c2e2fad8e13d80a3395c.zip
FreeBSD-src-545b4031fcf7a84e33e2c2e2fad8e13d80a3395c.tar.gz
Go back to using microtime() to get the timestamps for {f,l,}utimes(path,
NULL) for now. Bruce says I jumped the gun with my change in revision 1.131, or maybe it should use nanotime(), or maybe it shouldn't be decided in the VFS layer at all. I'm leaving it with the old behavior until the Trans-Pacific Internet Vulcan Mind Meld yields fuller understanding.
Diffstat (limited to 'sys/kern/vfs_extattr.c')
-rw-r--r--sys/kern/vfs_extattr.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/kern/vfs_extattr.c b/sys/kern/vfs_extattr.c
index a35d977..ef8cb7a 100644
--- a/sys/kern/vfs_extattr.c
+++ b/sys/kern/vfs_extattr.c
@@ -36,7 +36,7 @@
* SUCH DAMAGE.
*
* @(#)vfs_syscalls.c 8.13 (Berkeley) 4/15/94
- * $Id: vfs_syscalls.c,v 1.130 1999/08/12 20:38:32 alfred Exp $
+ * $Id: vfs_syscalls.c,v 1.131 1999/08/22 01:46:57 jdp Exp $
*/
/* For 4.3 integer FS ID compatibility */
@@ -2192,7 +2192,8 @@ getutimes(usrtvp, tsp)
int error;
if (usrtvp == NULL) {
- vfs_timestamp(&tsp[0]);
+ microtime(&tv[0]);
+ TIMEVAL_TO_TIMESPEC(&tv[0], &tsp[0]);
tsp[1] = tsp[0];
} else {
if ((error = copyin(usrtvp, tv, sizeof (tv))) != 0)
OpenPOWER on IntegriCloud