Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 7 Jul 2024 12:03:36 -0600
From:      Warner Losh <imp@bsdimp.com>
To:        Mark Millard <marklmi@yahoo.com>
Cc:        bob prohaska <fbsd@www.zefox.net>, Ronald Klop <ronald-lists@klop.ws>,  "freebsd-arm@freebsd.org" <freebsd-arm@freebsd.org>
Subject:   Re: ntpd vs ntpdate with no hardware clock
Message-ID:  <CANCZdfqqh2sq6A7kwZTLD-a8zNh=gUUM7PQydnrGht8hHmTYYQ@mail.gmail.com>
In-Reply-To: <3C703965-FE57-441D-9A64-0EB72C7E7E6F@yahoo.com>
References:  <Zoq7xD2BRT6YyF6l@www.zefox.net> <454282477.15929.1720372600841@localhost> <CANCZdfrdFrCkt8VPd%2Bnv=UpVMzqHmX2kw=7wULwZvkQnHDcAhg@mail.gmail.com> <ZorPEr6JtyUEoE9R@www.zefox.net> <3C703965-FE57-441D-9A64-0EB72C7E7E6F@yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help
--0000000000004e14cb061cac1e26
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

On Sun, Jul 7, 2024, 11:54=E2=80=AFAM Mark Millard <marklmi@yahoo.com> wrot=
e:

> On Jul 7, 2024, at 10:23, bob prohaska <fbsd@www.zefox.net> wrote:
>
> > On Sun, Jul 07, 2024 at 11:18:56AM -0600, Warner Losh wrote:
> >> On Sun, Jul 7, 2024, 11:16=E2=80=AFAM Ronald Klop <ronald-lists@klop.w=
s> wrote:
> >>
> >>> I created fakertc for my rpi4.
> >>>
> >>> https://www.freshports.org/sysutils/fakertc/
> >>>
> >>> Saves the time on shutdown and sets it back early at boot.
> >>>
> >>> Plus I use ntpdate together with ntpd. Works fine.
> >>>
> >>
> >> Curious why the root mod time isn't firing... it whould alrwady do tha=
t
> >>
> > Root mod time seems fairly laggy:
> > rprohask@www:~ % date
> > Sun Jul  7 10:20:38 PDT 2024
> > rprohask@www:~ % ls -al /
> > total 97
> > drwxr-xr-x  20 root wheel     512 Jul  5 13:21 .
> > drwxr-xr-x  20 root wheel     512 Jul  5 13:21 ..
> > unless I'm misusing ls -al, of course....
>
> I mount with noatime in use. Do you?
>

Doesn't matter since it's in the superblock.

Are you trying to show:
>
> time when file was created (-Ul)
> time when file status was last changed (-cl)
> time when file was last modified (-l)
> time of last access (-ul)
>
> You implicitly specified "last modified". So
> when was the last change to the root directory
> representation? It likely is not modified often.
> (Modifications to file content and subdirectories
> would not modify / of itself.)
>

It's in the superblock. Time of last unmount / update (I'd recalled
incorrectly).

linux can have relatime vs. strictatime modes.
> relatime mode updates the atime less often, via
> a rule set. A linux can have relatime by default.
>

Yea... none of that matters...

Warner

=3D=3D=3D
> Mark Millard
> marklmi at yahoo.com
>
>

--0000000000004e14cb061cac1e26
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"auto"><div><br><br><div class=3D"gmail_quote"><div dir=3D"ltr" =
class=3D"gmail_attr">On Sun, Jul 7, 2024, 11:54=E2=80=AFAM Mark Millard &lt=
;<a href=3D"mailto:marklmi@yahoo.com">marklmi@yahoo.com</a>&gt; wrote:<br><=
/div><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-le=
ft:1px #ccc solid;padding-left:1ex">On Jul 7, 2024, at 10:23, bob prohaska =
&lt;<a href=3D"mailto:fbsd@www.zefox.net" target=3D"_blank" rel=3D"noreferr=
er">fbsd@www.zefox.net</a>&gt; wrote:<br>
<br>
&gt; On Sun, Jul 07, 2024 at 11:18:56AM -0600, Warner Losh wrote:<br>
&gt;&gt; On Sun, Jul 7, 2024, 11:16=E2=80=AFAM Ronald Klop &lt;<a href=3D"m=
ailto:ronald-lists@klop.ws" target=3D"_blank" rel=3D"noreferrer">ronald-lis=
ts@klop.ws</a>&gt; wrote:<br>
&gt;&gt; <br>
&gt;&gt;&gt; I created fakertc for my rpi4.<br>
&gt;&gt;&gt; <br>
&gt;&gt;&gt; <a href=3D"https://www.freshports.org/sysutils/fakertc/" rel=
=3D"noreferrer noreferrer" target=3D"_blank">https://www.freshports.org/sys=
utils/fakertc/</a><br>
&gt;&gt;&gt; <br>
&gt;&gt;&gt; Saves the time on shutdown and sets it back early at boot.<br>
&gt;&gt;&gt; <br>
&gt;&gt;&gt; Plus I use ntpdate together with ntpd. Works fine.<br>
&gt;&gt;&gt; <br>
&gt;&gt; <br>
&gt;&gt; Curious why the root mod time isn&#39;t firing... it whould alrwad=
y do that<br>
&gt;&gt; <br>
&gt; Root mod time seems fairly laggy:<br>
&gt; rprohask@www:~ % date<br>
&gt; Sun Jul=C2=A0 7 10:20:38 PDT 2024<br>
&gt; rprohask@www:~ % ls -al /<br>
&gt; total 97<br>
&gt; drwxr-xr-x=C2=A0 20 root wheel=C2=A0 =C2=A0 =C2=A0512 Jul=C2=A0 5 13:2=
1 .<br>
&gt; drwxr-xr-x=C2=A0 20 root wheel=C2=A0 =C2=A0 =C2=A0512 Jul=C2=A0 5 13:2=
1 ..<br>
&gt; unless I&#39;m misusing ls -al, of course....<br>
<br>
I mount with noatime in use. Do you?<br></blockquote></div></div><div dir=
=3D"auto"><br></div><div dir=3D"auto">Doesn&#39;t matter since it&#39;s in =
the superblock.</div><div dir=3D"auto"><br></div><div dir=3D"auto"><div cla=
ss=3D"gmail_quote"><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 =
.8ex;border-left:1px #ccc solid;padding-left:1ex">
Are you trying to show:<br>
<br>
time when file was created (-Ul)<br>
time when file status was last changed (-cl)<br>
time when file was last modified (-l)<br>
time of last access (-ul)<br>
<br>
You implicitly specified &quot;last modified&quot;. So<br>
when was the last change to the root directory<br>
representation? It likely is not modified often.<br>
(Modifications to file content and subdirectories<br>
would not modify / of itself.)<br></blockquote></div></div><div dir=3D"auto=
"><br></div><div dir=3D"auto">It&#39;s in the superblock. Time of last unmo=
unt / update (I&#39;d recalled incorrectly).</div><div dir=3D"auto"><br></d=
iv><div dir=3D"auto"><div class=3D"gmail_quote"><blockquote class=3D"gmail_=
quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1=
ex">
linux can have relatime vs. strictatime modes.<br>
relatime mode updates the atime less often, via<br>
a rule set. A linux can have relatime by default.<br></blockquote></div></d=
iv><div dir=3D"auto"><br></div><div dir=3D"auto">Yea... none of that matter=
s...</div><div dir=3D"auto"><br></div><div dir=3D"auto">Warner</div><div di=
r=3D"auto"><br></div><div dir=3D"auto"><div class=3D"gmail_quote"><blockquo=
te class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc so=
lid;padding-left:1ex">
=3D=3D=3D<br>
Mark Millard<br>
marklmi at <a href=3D"http://yahoo.com" rel=3D"noreferrer noreferrer" targe=
t=3D"_blank">yahoo.com</a><br>
<br>
</blockquote></div></div></div>

--0000000000004e14cb061cac1e26--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CANCZdfqqh2sq6A7kwZTLD-a8zNh=gUUM7PQydnrGht8hHmTYYQ>