|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #42594 fopen doesn't work with ocfs2 cdsl (ocfs2 == Oracle Cluster Filesystem 2)
Submitted: 2007-09-07 22:28 UTC Modified: 2008-11-05 01:00 UTC
From: i dot dastolfo at smart dot it Assigned:
Status: No Feedback Package: Filesystem function related
PHP Version: 5.2.4 OS: Linux
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Bug Type:
From: i dot dastolfo at smart dot it
New email:
PHP Version: OS:


 [2007-09-07 22:28 UTC] i dot dastolfo at smart dot it
The fopen function (and maybe other filesystem related functions) can't handle CDSL files/directories.
CDSL stands for context dependent symbolic link and it's a feature of Oracle Cluster FileSystem 2 (OCFS2).
While fopen works fine with regular files and directory inside an OCFS2  filesystem, gives "failed to open stream: No such file or directory" for  CDSL files. 

Reproduce code:
make a OCFS2 filesystem (you can setup it even with 1 node).
Create a regular file (touch test)
Transform it in a cdsl file (ocfs2cdsl -t hostname -c test)
fopen("test","w"); => Warning: fopen(test) [function.fopen]: failed to open stream: No such file or directory in ...


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2007-09-12 07:10 UTC] i dot dastolfo at smart dot it
Additional elements that could help in debugging:
CDSL link are special soft links.
Issuing a stat on this files you obtain this:

File: `test' -> `.cluster/hostname/{hostname}/test'

Should it be that the php filesystem related functions misinterpret this link, that should be followed by a syscall to the VFS?
 [2008-10-27 12:55 UTC]
Please try using this CVS snapshot:
For Windows:

 [2008-10-28 22:52 UTC]
Note to PHP developers: this is nothing to do with OCI8.
 [2008-11-05 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Sat Nov 28 05:01:27 2020 UTC