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

FIS delete fix


It seems that fis_delete does not mark the file slot as reusable


Index: redboot//current/ChangeLog
===================================================================
RCS file: /cvs/ecos/ecos/packages/redboot/current/ChangeLog,v
retrieving revision 1.67
diff -u -r1.67 ChangeLog
--- redboot//current/ChangeLog  8 Aug 2002 10:59:29 -0000       1.67
+++ redboot//current/ChangeLog  8 Aug 2002 14:53:38 -0000
@@ -1,3 +1,8 @@
+2002-08-08  Jani Monoses  <jani@iv.ro>
+
+       * src/flash.c: fis delete should mark the slot as reusable
+       not just delete the area of flash used by the file.
+
 2002-08-08  Gary Thomas  <gthomas@ecoscentric.com>
 2002-08-08  Motoya Kurotsu <kurotsu@allied-telesis.co.jp>

cvs server: Diffing redboot//current/cdl
cvs server: Diffing redboot//current/doc
cvs server: Diffing redboot//current/include
cvs server: Diffing redboot//current/include/fs
cvs server: Diffing redboot//current/include/net
cvs server: Diffing redboot//current/misc
cvs server: Diffing redboot//current/src
Index: redboot//current/src/flash.c
===================================================================
RCS file: /cvs/ecos/ecos/packages/redboot/current/src/flash.c,v
retrieving revision 1.37
diff -u -r1.37 flash.c
--- redboot//current/src/flash.c        23 May 2002 23:08:30 -0000      1.37
+++ redboot//current/src/flash.c        8 Aug 2002 14:53:48 -0000
@@ -836,6 +836,7 @@
     if ((stat = flash_erase((void *)img->flash_base, img->size, (void **)&err_addr)) != 0) {
         diag_printf("Error erasing at %p: %s\n", err_addr, flash_errmsg(stat));
     } else {
+        img->name[0] = (unsigned char)0xFF;
         fis_update_directory();
     }
 }


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