From owner-freebsd-bugs Fri Jan 17 13: 0:26 2003 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7F20737B401 for ; Fri, 17 Jan 2003 13:00:24 -0800 (PST) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7380B43F65 for ; Fri, 17 Jan 2003 13:00:23 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.6/8.12.6) with ESMTP id h0HL0NNS069427 for ; Fri, 17 Jan 2003 13:00:23 -0800 (PST) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.6/8.12.6/Submit) id h0HL0NWa069426; Fri, 17 Jan 2003 13:00:23 -0800 (PST) Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1E2A037B401 for ; Fri, 17 Jan 2003 12:53:55 -0800 (PST) Received: from exgw2.lumeta.com (exgw2.lumeta.com [65.198.68.66]) by mx1.FreeBSD.org (Postfix) with ESMTP id E30EB43E4A for ; Fri, 17 Jan 2003 12:53:53 -0800 (PST) (envelope-from hburch@lumeta.com) Received: from lucy.corp.lumeta.com (h65-198-68-133.lumeta.com [65.198.68.133]) by exgw2.lumeta.com (Postfix) with ESMTP id B93D237385E for ; Fri, 17 Jan 2003 15:53:52 -0500 (EST) Received: from localhost (localhost [127.0.0.1]) by lucy.corp.lumeta.com (Postfix) with ESMTP id 3F8E110844 for ; Fri, 17 Jan 2003 15:53:52 -0500 (EST) Received: from hburch.corp.lumeta.com (hburch.corp.lumeta.com [65.198.68.240]) by lucy.corp.lumeta.com (Postfix) with ESMTP id 02B1E1083C for ; Fri, 17 Jan 2003 15:53:51 -0500 (EST) Received: by hburch.corp.lumeta.com (Postfix, from userid 2007) id 6118B5E3; Fri, 17 Jan 2003 15:53:46 -0500 (EST) Message-Id: <20030117205346.6118B5E3@hburch.corp.lumeta.com> Date: Fri, 17 Jan 2003 15:53:46 -0500 (EST) From: Hal Burch Reply-To: Hal Burch To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: kern/47168: st_*timespec tv_nsec zero on file creation Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >Number: 47168 >Category: kern >Synopsis: st_*timespec tv_nsec zero on file creation >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Fri Jan 17 13:00:22 PST 2003 >Closed-Date: >Last-Modified: >Originator: Hal Burch >Release: FreeBSD 4.7-STABLE i386 >Organization: >Environment: System: FreeBSD hburch.corp.lumeta.com 4.7-STABLE FreeBSD 4.7-STABLE #1: Thu Oct 17 10:07:42 EDT 2002 root@hburch.corp.lumeta.com:/usr/obj/usr/src/sys/LOCAL i386 >Description: tv_nsec in st_atimespec, st_mtimespec, and st_ctimespec are all zero after most system calls. >How-To-Repeat: stat-ing code: #include #include #include int main(int argc, char **argv) { struct stat sb; if (argc < 2) { fprintf (stderr, "No args\n"); exit(1); } if (stat(argv[1], &sb) < 0) { perror("stat"); exit(1); } fprintf (stdout, "%i.%09i\n", sb.st_atimespec.tv_sec, sb.st_atimespec.tv_nsec); } $ rm -f a; touch a; ./dostat a 1042836075.000000000 $ rm -f a; touch a; ./dostat a 1042836079.000000000 $ cat a; ./dostat a 1042836123.000000000 $ rm a; >a; ./dostat a 1042836191.000000000 >Fix: I'm not familiar enough with the kernel tree to figure out where this system times are being set. This may also be expected behavior. >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message