This is the mail archive of the ecos-discuss@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]

e2fs bug , e2fs_get_gdesc


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


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