Date: Thu, 18 Feb 1999 05:20:56 -0800 (PST) From: mvh@ix.netcom.com To: freebsd-gnats-submit@freebsd.org Subject: misc/10148: atime behavior differs with empty files for 2.2.8 and 3.1-current Message-ID: <19990218132056.2DFE311310@hub.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 10148 >Category: misc >Synopsis: atime behavior differs with empty files for 2.2.8 and 3.1-current >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu Feb 18 05:30:01 PST 1999 >Closed-Date: >Last-Modified: >Originator: Mike Harding >Release: 3.1FreeBSD netcom1.netcom.com 3.1-STABLE FreeBSD 3.1-STABLE #0: Wed Feb 17 04:35:48 PST 13.1-stable >Organization: Stamps.com >Environment: FreeBSD netcom1.netcom.com 3.1-STABLE FreeBSD 3.1-STABLE #0: Wed Feb 17 04:35:48 PST 1999 mvh@netcom1.netcom.com:/usr/src/sys/compile/MIKE i386 >Description: Create an empty file. read the file (cat it or open with emacs) atime is not updated for a 3.1 system, it is updated for a 2.2.8 system. This breaks the leafnode port. I don't know if this is due to a kernel change or a library change. I compiled a 3.1 kernel with and without softupdates, and there was no change, so it's not due to my using softupdates (directly, anyways). >How-To-Repeat: (From the leafnode+ mailing list) atime is updated when a null file is read on 2.2.8. Here's what happend: tom@bergen [~] touch myfile tom@bergen [~] cat myfile tom@bergen [~] perl -e '$f="myfile"; use File::stat; print stat($f)->atime, ", ",stat($f)->mtime, "\n";' 919102955, 919102953 tom@bergen [~] cat myfile tom@bergen [~] perl -e '$f="myfile"; use File::stat; print stat($f)->atime, ", ",stat($f)->mtime, "\n";' 919102985, 919102953 >Fix: >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19990218132056.2DFE311310>