This is the mail archive of the
ecos-patches@sources.redhat.com
mailing list for the eCos project.
Re: jffs2 stat() returns bogus inode numbers
- From: Gary Thomas <gary at mlbassoc dot com>
- To: Thomas Koeller <thomas dot koeller at baslerweb dot com>
- Cc: eCos patches <ecos-patches at sources dot redhat dot com>
- Date: 18 Sep 2003 13:42:31 -0600
- Subject: Re: jffs2 stat() returns bogus inode numbers
- Organization: MLB Associates
- References: <200309182121.20416.thomas.koeller@baslerweb.com>
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