Mercurial > ecos
changeset 1271:8eb2d0d3c498
* src/fs-ecos.c: Another umount() fix.
| author | asl |
|---|---|
| date | Sat, 04 Oct 2003 19:05:25 +0000 |
| parents | 244c544171e7 |
| children | 548125f9b000 |
| files | packages/fs/jffs2/current/ChangeLog packages/fs/jffs2/current/src/fs-ecos.c |
| diffstat | 2 files changed, 10 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/packages/fs/jffs2/current/ChangeLog +++ b/packages/fs/jffs2/current/ChangeLog @@ -1,3 +1,7 @@ +2003-09-23 Thomas Koeller <thomas.koeller@baslerweb.com> + + * src/fs-ecos.c: Another umount() fix. + 2003-09-23 Andrew Lunn <andrew.lunn@ascom.ch> * src/fs-ecos.c: Added test to detect known broken ARM compiler
--- a/packages/fs/jffs2/current/src/fs-ecos.c +++ b/packages/fs/jffs2/current/src/fs-ecos.c @@ -607,15 +607,16 @@ static int jffs2_umount(cyg_mtab_entry * free(c->blocks); free(c->inocache_list); free(jffs2_sb); - // Clear root pointer + // Clear superblock & root pointer mte->root = CYG_DIR_NULL; + mte->data = 0; mte->fs->data = 0; // fstab entry, visible to all mounts. No current mount // That's all folks. D2(printf("jffs2_umount No current mounts\n")); - } - - jffs2_sb->s_mount_count--; - + } else { + jffs2_sb->s_mount_count--; + } + return ENOERR; }
