9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: Bruce Ellis <bruce.ellis@gmail.com>
To: Fans of the OS Plan 9 from Bell Labs <9fans@cse.psu.edu>
Subject: Re: [9fans] Strange date/time on some created files
Date: Sun, 12 Feb 2006 14:10:46 +1100	[thread overview]
Message-ID: <775b8d190602111910w5adb0046q796ef800e92d2aea@mail.gmail.com> (raw)
In-Reply-To: <ee9e417a0602111826j465169dcwbaf7ec14dac633f0@mail.gmail.com>

it would work if stat on PATH/. returned the server's idea.
this is only feasible for a REPLACE, i think union directroies
should return the 'M'.

brucee

On 2/12/06, Russ Cox <rsc@swtch.com> wrote:
> > 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
>
> ls -ld /n /n/boot and you will see they have the same mount number.
>
> > 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.
>
> It does, if only because accessing the root updates atime anyway.
>
> But that's not what I was getting at.  If you dial the file server
> yourself and read/write 9P messages, yes, you can get at the
> stat info for a file server root.  But via the usual system calls,
> the stat info for any mounted file server root is invisible.  You
> always see the mount point, never the mounted root.
>
> Russ
>


  reply	other threads:[~2006-02-12  3:10 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
2006-02-12  2:26         ` Russ Cox
2006-02-12  3:10           ` Bruce Ellis [this message]
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=775b8d190602111910w5adb0046q796ef800e92d2aea@mail.gmail.com \
    --to=bruce.ellis@gmail.com \
    --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).