I’ve just seen something very odd, and was wondering if anyone else had
seen this. On a QNX 4.25E machine, I created a directory yesterday and
copied some files into it. This morning, I attempted to retrieve those
files. But there was a problem: the directory had lost it’s directory
attribute. That is, an ‘ls -l’ shows:
-rwxr-xr-x 1 root root 4096 Aug 02 08:11 test
It’s the right size for the directory, and if I open it in an editor it
looks like a directory. But it just seems to have lost the ‘d’
attribute. A ‘chkfsys -u’ reports no problems.
We’ve seen weirdnesses like this on this machine before; the hard drive
is slightly suspect, although we’ve run extensive diagnostics and never
found a problem.
My real question: is there any way of getting the file system to think
that this is a directory again? The contents aren’t really important,
I’m just curious.