This is the mail archive of the
ecos-patches@sources.redhat.com
mailing list for the eCos project.
mtab -> cyg_mtab
- From: Bob Koninckx <bob dot koninckx at mech dot kuleuven dot ac dot be>
- To: ecos-patches at sources dot redhat dot com
- Date: 19 Apr 2003 19:35:56 +0200
- Subject: mtab -> cyg_mtab
- Organization: KULeuven
attached patch makes the jffs2 packages compile against the latest
modifications in the fileio package
--
----------------------------------------------------------------------
ir. Bob Koninckx
Katholieke Universiteit Leuven
Division Production Engineering, tel. +32 16 322535
Machine Design and Automation fax. +32 16 322987
Celestijnenlaan 300B bob dot koninckx at mech dot kuleuven dot ac dot be
B-3001 Leuven Belgium http://www.mech.kuleuven.ac.be/pma
----------------------------------------------------------------------
Index: fs-ecos.c
===================================================================
RCS file: /cvs/ecos/ecos/packages/fs/jffs2/current/src/fs-ecos.c,v
retrieving revision 1.2
diff -u -5 -r1.2 fs-ecos.c
--- fs-ecos.c 27 Mar 2003 08:46:29 -0000 1.2
+++ fs-ecos.c 19 Apr 2003 17:29:44 -0000
@@ -500,11 +500,11 @@
return err;
}
static int jffs2_mount(cyg_fstab_entry * fste, cyg_mtab_entry * mte)
{
- extern cyg_mtab_entry mtab[], mtab_end;
+ extern cyg_mtab_entry cyg_mtab[], cyg_mtab_end;
struct super_block *jffs2_sb = NULL;
struct jffs2_sb_info *c;
cyg_mtab_entry *m;
cyg_io_handle_t t;
Cyg_ErrNo err;
@@ -516,14 +516,14 @@
return -err;
// Iterate through the mount table to see if we're mounted
// FIXME: this should be done better - perhaps if the superblock
// can be stored as an inode in the icache.
- for (m = &mtab[0]; m != &mtab_end; m++) {
+ for (m = &cyg_mtab[0]; m != &cyg_mtab_end; m++) {
// stop if there are more than the configured maximum
- if (m - &mtab[0] >= CYGNUM_FILEIO_MTAB_MAX) {
- m = &mtab_end;
+ if (m - &cyg_mtab[0] >= CYGNUM_FILEIO_MTAB_MAX) {
+ m = &cyg_mtab_end;
break;
}
if (m->valid && strcmp(m->fsname, "jffs2") == 0 &&
strcmp(m->devname, mte->devname) == 0) {
jffs2_sb = (struct super_block *) m->data;