Re: Fwd: Re: A new look at old NFS readdir() problems? - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Fwd: Re: A new look at old NFS readdir() problems?
Date
Msg-id 318051.1735859113@sss.pgh.pa.us
Whole thread Raw
In response to Re: Fwd: Re: A new look at old NFS readdir() problems?  (Larry Rosenman <ler@lerctr.org>)
List pgsql-hackers
Larry Rosenman <ler@lerctr.org> writes:
> On 01/02/2025 4:56 pm, Tom Lane wrote:
>> I am sort of wondering though why we've not heard reports of this
>> many times before.  Did FreeBSD recently change something in this
>> area?  Also, if as they argue it's a fundamental problem in the NFS
>> protocol, why are we failing to reproduce it with other clients?

> Pre version 16, we worked just fine.  There was a change in 16.

Well, as Thomas already mentioned, rmtree() used to work by reading
the directory and making an in-memory copy of the whole file list
before it started to delete anything.  But reverting that wouldn't
fix all of the other problems that we now know exist.  (In other
words, "we worked just fine" only for small values of "fine".)

            regards, tom lane



pgsql-hackers by date:

Previous
From: Larry Rosenman
Date:
Subject: Re: Fwd: Re: A new look at old NFS readdir() problems?
Next
From: Thomas Munro
Date:
Subject: Re: Fwd: Re: A new look at old NFS readdir() problems?