jffs2 stat() returns bogus inode numbers
Gary Thomas
gary@mlbassoc.com
Thu Sep 18 19:42:00 GMT 2003
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
More information about the Ecos-patches
mailing list