This is the mail archive of the
ecos-patches@sourceware.org
mailing list for the eCos project.
Re: Possible bug in stat()
- From: Andrew Lunn <andrew at lunn dot ch>
- To: Krzysztof Czyz <krzysztof_czyz at wp dot pl>
- Cc: ecos-patches at ecos dot sourceware dot org
- Date: Thu, 5 Oct 2006 19:39:00 +0200
- Subject: Re: Possible bug in stat()
- References: <op.tgv52put1akrs3@kcnb>
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