[ECOS] e2fs bug , e2fs_get_gdesc

david@mind.be david@mind.be
Sun Dec 15 06:53:00 GMT 2002


Hello,

am I the first one to be using e2fs in redboot ? :-)
In e2fs_get_gdesc() when a cache miss occurs, the cache contents get updated
but the value of e2fs->gdesc_first never gets updated, so you will never get a
meaningful group descriptor if you try to access something outside of groups
[0 - E2FS_GDESC_CACHE_SIZE].

The value should be set to:
e2fs->gdesc_first = (group_nr / E2FS_GDESC_CACHE_SIZE) * E2FS_GDESC_CACHE_SIZE;

Best Regards,
David Mazur
-- 
Mind: Embedded Linux, eCos and JVM development in Europe
http://mind.be                        tel +32-16-309.666

-- 
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss



More information about the Ecos-discuss mailing list