[Bug 255945] FuseFS breaks Flock on FreeBSD 13 RELEASE

From: <bugzilla-noreply_at_freebsd.org>
Date: Mon, 17 May 2021 15:03:40 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=255945

jSML4ThWwBID69YC@protonmail.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jSML4ThWwBID69YC@protonmail
                   |                            |.com

--- Comment #1 from jSML4ThWwBID69YC@protonmail.com ---
Here's the Flock test using PHP instead of sh. 

---------- flock-test.php ---------------
<?php
   echo "Hello"; print " World \n";

   $fp = fopen("lock.file", "w");
   if (flock($fp, LOCK_EX)) {
       print "Got lock!\n";
       print "Sleep five secs.\n";
       sleep(5);
       flock($fp, LOCK_UN);
       print "Released lock!\n";
   }
?>
--------------------------------------------

Be sure to run it on a FuseFS mount, and run it twice. For some reason the PHP
version succeeds the first time so long as the 'lock.file' file does not exist.

-- 
You are receiving this mail because:
You are the assignee for the bug.