[Tinyos-beta-commits] CVS: tinyos-1.x/beta/AT45DB StorageManagerM.nc, 1.4, 1.5

David Gay idgay at users.sourceforge.net
Wed Jun 8 16:37:16 PDT 2005


Update of /cvsroot/tinyos/tinyos-1.x/beta/AT45DB
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19788

Modified Files:
	StorageManagerM.nc 
Log Message:
clear volume id on failed mount


Index: StorageManagerM.nc
===================================================================
RCS file: /cvsroot/tinyos/tinyos-1.x/beta/AT45DB/StorageManagerM.nc,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** StorageManagerM.nc	8 Jun 2005 23:27:29 -0000	1.4
--- StorageManagerM.nc	8 Jun 2005 23:37:14 -0000	1.5
***************
*** 62,66 ****
    void checkNextVolume() {
      if (f.invalid || nextVolume == header.nvolumes)
!       mountComplete(STORAGE_FAIL);
      else
        check(call HALAT45DB.read(VOLUME_TABLE_PAGE, sizeof(struct volume_definition_header_t) +
--- 62,69 ----
    void checkNextVolume() {
      if (f.invalid || nextVolume == header.nvolumes)
!       {
! 	volumes[client].id = INVALID_VOLUME_ID;
! 	mountComplete(STORAGE_FAIL);
!       }
      else
        check(call HALAT45DB.read(VOLUME_TABLE_PAGE, sizeof(struct volume_definition_header_t) +



More information about the Tinyos-beta-commits mailing list