9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: geoff@collyer.net
To: 9fans@cse.psu.edu
Subject: Re: [9fans] Strange date/time on some created files
Date: Sat, 11 Feb 2006 18:14:28 -0800	[thread overview]
Message-ID: <92e9851ad8fe77a526c62bbb5c9121a8@collyer.net> (raw)
In-Reply-To: <ee9e417a0602110751h759b00faqebf2dc52ed1a74c3@mail.gmail.com>

At least in Ken fs, you want the access time of the root (to get the
current fs time):

; date; ls -ldu /n/boot /
Sat Feb 11 17:45:13 PST 2006
d-r-xr-xr-x /      0 bootes bootes 0 Feb 11 17:45 /
d-rwxrwxr-x M 251502 adm    sys    0 Feb 11 17:45 /n/boot

It's done here, 9p1.c:1300,1301:

	if(d->qid.path == QPROOT)	/* stat of root gives time */
		d->atime = time();

and here, 9p2.c:1431,1432:

		if(d->qid.path == QPROOT)	/* stat of root gives time */
			d->atime = time();

I haven't looked to see if fossil does it.



  reply	other threads:[~2006-02-12  2:14 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-02-10 14:50 Gregory Pavelcak
2006-02-10 16:59 ` Russ Cox
2006-02-11  1:12 ` geoff
2006-02-11 15:28   ` Gregory Pavelcak
2006-02-11 15:51     ` Russ Cox
2006-02-12  2:14       ` geoff [this message]
2006-02-12  2:26         ` Russ Cox
2006-02-12  3:10           ` Bruce Ellis
2006-02-12  3:36             ` geoff
2006-02-12  3:53               ` Bruce Ellis
2006-02-12 11:06                 ` Russ Cox

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=92e9851ad8fe77a526c62bbb5c9121a8@collyer.net \
    --to=geoff@collyer.net \
    --cc=9fans@cse.psu.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).