[Ocfs2-users] php flock function and ocfs2?

Stephan Hendl Stephan.Hendl at lds.brandenburg.de
Mon May 21 06:30:50 PDT 2007


Hi all,

does anybody have experiences with php flock funktion and ocfs2 clusters? flock is described in http://php.net/flock . The following text is outlined by the developers:

-------- snip --------
flock() will not work on NFS and many other networked file systems. Check your operating system documentation for more details.

On some operating systems flock() is implemented at the process level. When using a multithreaded server API like ISAPI you may not be able to rely on flock() to protect files against other PHP scripts running in parallel threads of the same server instance! 
-------- snip --------

OS is CentOS 4.4, latest kernel (2.6.9-42.0.10ELsmp) and latest rpm package from ocfs2.

Could it be that there are interactions between the two locking mechanism of php and ocfs2?

Stephan




More information about the Ocfs2-users mailing list