problem with find

Hello,

when I list my files with the command find, I receive errors like this:


find: Can’t read directory entry. (//1/home/jdibv/src/back1912): Bad file
descriptor
find: Error closing directory. (//1/home/jdibv/src/back1912): Bad file
descriptor
find: Can’t read directory entry. (//1/home/jdibv/src): Bad file descriptor
find: Error closing directory. (//1/home/jdibv/src): Bad file descriptor


Why I receive this errors? How to avoid them?


Thank you in advance.

“Yanick Aubut” <yaubut@sigma-techno.com> wrote in message
news:alnnbk$e6h$1@inn.qnx.com

Hello,

when I list my files with the command find, I receive errors like this:


find: Can’t read directory entry. (//1/home/jdibv/src/back1912): Bad file
descriptor
find: Error closing directory. (//1/home/jdibv/src/back1912): Bad file
descriptor
find: Can’t read directory entry. (//1/home/jdibv/src): Bad file
descriptor
find: Error closing directory. (//1/home/jdibv/src): Bad file descriptor


Why I receive this errors? How to avoid them?

Two things, run chkfsys to ensure the filesystem is intact.
Second make sure you have the latest version of QNX (4.25E);
I have this vague recollection that it was fixed in a patch
(really not sure)

Thank you in advance.

Is it possible that these are sym-links that are no longer (or at least not
currently) valid?
That would be my guess.

You can create a sym-link to something and then remove (or unmount) the
something. But the symlink is still there. If the files/directories were
on a removable device, it isn’t really and “error” so much as a “status”
condition. You can just remount the device and all is well again. A
mounted floppy would be a good example.

Good luck.

“Mario Charest” postmaster@127.0.0.1 wrote in message
news:alnpms$g0h$1@inn.qnx.com

“Yanick Aubut” <> yaubut@sigma-techno.com> > wrote in message
news:alnnbk$e6h$> 1@inn.qnx.com> …
Hello,

when I list my files with the command find, I receive errors like this:


find: Can’t read directory entry. (//1/home/jdibv/src/back1912): Bad
file
descriptor
find: Error closing directory. (//1/home/jdibv/src/back1912): Bad file
descriptor
find: Can’t read directory entry. (//1/home/jdibv/src): Bad file
descriptor
find: Error closing directory. (//1/home/jdibv/src): Bad file descriptor


Why I receive this errors? How to avoid them?

Two things, run chkfsys to ensure the filesystem is intact.
Second make sure you have the latest version of QNX (4.25E);
I have this vague recollection that it was fixed in a patch
(really not sure)



Thank you in advance.
\

Yanick Aubut <yaubut@sigma-techno.com> wrote:

Hello,

when I list my files with the command find, I receive errors like this:



find: Can’t read directory entry. (//1/home/jdibv/src/back1912): Bad file
descriptor
find: Error closing directory. (//1/home/jdibv/src/back1912): Bad file
descriptor
find: Can’t read directory entry. (//1/home/jdibv/src): Bad file descriptor
find: Error closing directory. (//1/home/jdibv/src): Bad file descriptor

Haven’t you a large hard disk ? e.g. Over 60MB ?
If yes then option -H is inevitable for Fsys (see a thread above).

Andy

Why I receive this errors? How to avoid them?

Thank you in advance.

andy@microstep-mis.com wrote:

Yanick Aubut <> yaubut@sigma-techno.com> > wrote:
Hello,

when I list my files with the command find, I receive errors like this:



find: Can’t read directory entry. (//1/home/jdibv/src/back1912): Bad file
descriptor
find: Error closing directory. (//1/home/jdibv/src/back1912): Bad file
descriptor
find: Can’t read directory entry. (//1/home/jdibv/src): Bad file descriptor
find: Error closing directory. (//1/home/jdibv/src): Bad file descriptor

Haven’t you a large hard disk ? e.g. Over 60MB ?

:slight_smile: 60GB of couse.

If yes then option -H is inevitable for Fsys (see a thread above).

And additional question: have you same errors for all trials, or the
reported files are varying ?

Andy

Why I receive this errors? How to avoid them?

Thank you in advance.

Hard disk : 10 Go

The reported files is the same each week.


<andy@microstep-mis.com> a écrit dans le message news:
alpkdh$1t0$1@charon.microstep-mis.sk

andy@microstep-mis.com > wrote:
Yanick Aubut <> yaubut@sigma-techno.com> > wrote:
Hello,

when I list my files with the command find, I receive errors like this:


find: Can’t read directory entry. (//1/home/jdibv/src/back1912): Bad
file
descriptor
find: Error closing directory. (//1/home/jdibv/src/back1912): Bad file
descriptor
find: Can’t read directory entry. (//1/home/jdibv/src): Bad file
descriptor
find: Error closing directory. (//1/home/jdibv/src): Bad file
descriptor

Haven’t you a large hard disk ? e.g. Over 60MB ?

:slight_smile: > 60GB of couse.

If yes then option -H is inevitable for Fsys (see a thread above).

And additional question: have you same errors for all trials, or the
reported files are varying ?

Andy

Why I receive this errors? How to avoid them?


Thank you in advance.

<andy@microstep-mis.com> wrote in message
news:alpb73$taj$1@charon.microstep-mis.sk

Yanick Aubut <> yaubut@sigma-techno.com> > wrote:

Haven’t you a large hard disk ? e.g. Over 60MB ?

I had to chuckle when I read this.
60 MB is considered a large disk?
I think I have a video card with 60 MB (well almost!)

Bill Caroselli (Q-TPS) <QTPS@EarthLink.net> wrote:

andy@microstep-mis.com> > wrote in message
news:alpb73$taj$> 1@charon.microstep-mis.sk> …
Yanick Aubut <> yaubut@sigma-techno.com> > wrote:

Haven’t you a large hard disk ? e.g. Over 60MB ?

I had to chuckle when I read this.
60 MB is considered a large disk?
I think I have a video card with 60 MB (well almost!)

:slight_smile: 60G of couse. Smile!