Re: PEFS and advisory locking on ZFS

From: Daniel O'Connor <darius_at_dons.net.au>
Date: Tue, 05 Apr 2022 22:11:52 UTC

> On 6 Apr 2022, at 06:27, Alan Somers <asomers@freebsd.org> wrote:
>> ZFS itself is fine, the lock test passes if PEFS isn't mounted, and on the same version PEFS on UFS works fine also.
>> 
>> I plan on bisecting it but if anyone has a suggestion I'm all ears.
> 
> Does it use flock or fcntl with F_GETLK/F_SETLK?  Or worse, does it
> mix the two?  Is fusefs involved?  And does it work on top of UFS?

I tested with lockf(1) which uses flock(3) but the odd part is it works on top of UFS but not ZFS..

--
Daniel O'Connor
"The nice thing about standards is that there
are so many of them to choose from."
 -- Andrew Tanenbaum