IMFS and opendir/readdir.

Sergei Organov osv at javad.ru
Wed Nov 15 17:27:39 UTC 2000


<mcollins at hawkeye.sps.mot.com> ("Michael P. Collins" on korat) writes:
> Sergei Organov <osv at javad.ru> wrote:
> 
> > I'm using rtems-ss-20000929 snapshot.
> 
>   I haven't used this snapshot, so I can't offer much help here, but
> 
> > BTW, 'ls /dev' output is also empty, while 'cd /dev' and then 'ls' gives the
> > list of registered devices. But this seems to be unrelated bug.
> 
>   This leads me to believe that "/dev" is a symbolic link, and you're seeing
> an effect of ls when operating on such links.  Try "ls /dev/" (note the
> trailing '/') and see if the output isn't the same as you get after "cd /dev".
> Of course, you can also try "ls -l /" and see how "/dev" shows up there.

No, it's marked as directory. "ls dev", "ls /dev", and "ls /dev/" all give the
same (empty) result. "ls -l" doesn't work at all because FTPD doesn't
understand command line options and thus thinks "-l" is a file name.

> 
>   Whether this is somehow related to the other problems you're chasing, I
> don't know.  I do know that the trailing '/' thing with ls took me a while
> to figure out.
> 					-- MC --




More information about the users mailing list