This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
e2fs bug , e2fs_get_gdesc
- From: david at mind dot be
- To: ecos-discuss at sources dot redhat dot com
- Date: Sun, 15 Dec 2002 15:53:19 +0100
- Subject: [ECOS] 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