|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[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 ...
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 14:00:01 2025 UTC |
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?