Commits

Arnaud Taffanel  committed 54fa51c

log: create_block returns EEXIST if a log block already exists

  • Participants
  • Parent commits 75dd0dc
  • Branches 2014.01
  • Tags 2014.01.0

Comments (0)

Files changed (1)

File modules/src/log.c

   int i;
   
   for (i=0; i<LOG_MAX_BLOCKS; i++)
+    if (id == logBlocks[i].id) return EEXIST;
+  
+  for (i=0; i<LOG_MAX_BLOCKS; i++)
     if (logBlocks[i].id == BLOCK_ID_FREE) break;
   
   if (i == LOG_MAX_BLOCKS)