Possible bug in stat()

Andrew Lunn andrew@lunn.ch
Thu Oct 5 17:39:00 GMT 2006


On Wed, Oct 04, 2006 at 12:00:45PM +0200, Krzysztof Czyz wrote:
> Hi,
> 
> This patch lets to get stat info for directory entry. In current  
> implementation function stat() always returns ENOENT for dirs,
> patch corrects this behaviour.
 
Hi Krzysztof

Could you explain the problem in a bit more detail. The test cases do
a stat() on a directory and it works. eg here is part of the output from 
./install/tests/fs/fat/current/tests/fatfs1:

<INFO>: mkdir noonoo
<INFO>: reading directory /disk2
<INFO>: entry          TINKY [mode 00000008 ino 00000002 nlink 1 size 4567]
<INFO>: entry         LAALAA [mode 00000008 ino 0000000b nlink 1 size 4567]
<INFO>: entry         NOONOO [mode 00000001 ino 00000014 nlink 1 size 0]

I also looked at romfs and ramfs test cases and they stat() a
directory will success.

          Thanks
                Andrew



More information about the Ecos-patches mailing list