php.net |  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
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
MUST BE VALID
Solve the problem:
36 + 12 = ?
Subscribe to this entry?

 
 [2007-09-07 22:28 UTC] i dot dastolfo at smart dot it
Description:
------------
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 ...


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

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] jani@php.net
Please try using this CVS snapshot:

  http://snaps.php.net/php5.2-latest.tar.gz
 
For Windows:

  http://windows.php.net/snapshots/


 [2008-10-28 22:52 UTC] sixd@php.net
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: Thu Dec 03 08:01:23 2020 UTC