I am using QNX 6.2. /hd/file.sh is copied by the boot image. Anyway, I have figured a workaround, regarding the issue. I am not editing the file.sh directly from my program. Hence, its not an issue.
I am getting another error, I am also posting it as a separate thread. but if you have any idea, regarding the issue, please do guide:
Now, when i am running my QNX 6.2 from the CF image.
I have a drive /hd. I store my files that i need to manipulate/edit here. By default I have three files here in /hd. If I copy an existing file for example a.sh and rename it b.sh. It creates the new file b.sh.
When i do ls: it shows a.sh b.sh yyyyyyyyyyyyyyyyyyyyyy (with two dots on top of each y).
when i do ls -l : it says
ls: Corrupted file system detected (./yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy) with two dots on top of each y.
I am not able to figure out, why does it say that the file system is corupted if I add an extra file. The new files works fine so does the old. This corruption thing does not happen if I edit my existing default files, its only when i add a new file to the directory either via move, cp or so on, then it says the file system is corrupted.
Thanks a lot for your help/