Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 23 Feb 2025 16:24:59 -0800
From:      Rick Macklem <rick.macklem@gmail.com>
To:        "Peter 'PMc' Much" <pmc@citylink.dinoex.sub.org>
Cc:        freebsd-fs@freebsd.org
Subject:   Re: nfscbd does not update mtime
Message-ID:  <CAM5tNy4mK2BXpO1_gaOpX%2BpkXp%2Bg1Y2EzVRFxX0h2KHGcmNgEA@mail.gmail.com>
In-Reply-To: <Z7uoxxJVg63KIirO@disp.intra.daemon.contact>

index | next in thread | previous in thread | raw e-mail

On Sun, Feb 23, 2025 at 3:09 PM Peter 'PMc' Much
<pmc@citylink.dinoex.sub.org> wrote:
>
>
> Hello,
>
>  after some discussion earlier concerning a runaway nfscbd process
> (which luckily did not repeat), I decided to correctly (hopefully)
> engage the feature.
>
> But now I find it has a side-effect: one cannot compile ports, because
> the mtime isn't right. The result is then like that:
>
>
> /usr/ports/security/openvpn/work/openvpn-2.6.13/missing: aclocal-1.16: not found
> WARNING: 'aclocal-1.16' is missing on your system.
> *** [./aclocal.m4] Error code 127
> make[3]: stopped in /usr/ports/security/openvpn/work/openvpn-2.6.13
>
>
> The cause is the the mtime are not updated to those that were in the
> tarball, but stay at the time of unpacking the tarball. And that
> doesn't work well with make.
>
> Then I kill the nfscbd processes, and my timestamps are correct. I
> start the nfscbd again, umount and mount, unpack an archive, and
> it keeps the wrong (current) timestamps.
> So this is certainly the cause - but what is going wrong?
You found a bug in NFSv4.n when delegations are enabled (nfscbd
running on the client and a server that has delegations enabled).
I reproduced it. The mtime is actually correct on the file server.
(if you look at the files on the server after unrolling the tarball.)
At least this is what I see.

However, the client is returning a stale mtime.
Since I can reproduce it, I should be able to fix it fairly quickly.

You already know how to avoid it (don't run nfscbd or don't enable
delegations on the server).

Thanks for reporting it, rick
ps: It would still be nice if you can answer the questions in my
      previous email.



> Or what am
> I doing wrong?
>
> I'm still at 13.4, and the share comes from ZFS and is created for
> the exclusive use on a single client.
>
>
> cheerio,
> PMc


home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAM5tNy4mK2BXpO1_gaOpX%2BpkXp%2Bg1Y2EzVRFxX0h2KHGcmNgEA>