This is the mail archive of the ecos-patches@sourceware.org mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Possible bug in stat()


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]