This is the mail archive of the ecos-patches@sources.redhat.com 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: jffs2 stat() returns bogus inode numbers


On Thu, 2003-09-18 at 13:21, Thomas Koeller wrote:
> Here is a patch that fixes an issue with the stat() call
> for jffs2. The inode number returned used to be the address
> of the inode in the inode cache. Inode numbers generated in
> this way are not unique. In my program I called stat() for
> multiple files in a loop. For every pass through the loop,
> the inode was purged from the cache, freed and immediatly
> reallocated at the same address, resulting in identical
> 'inode numbers' returned for all files. The attached patch
> fixes this.
> 

Applied, thanks.

-- 
Gary Thomas <gary@mlbassoc.com>
MLB Associates


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