ext2 Journal: Warn that we found an unrecognized block
Signed-off-by: Adrien Destugues <pulkomandy@pulkomandy.tk> Fixes #13400.
This commit is contained in:
parent
e633e9ef5a
commit
2ff144d005
@ -27,6 +27,7 @@
|
|||||||
# define TRACE(x...) ;
|
# define TRACE(x...) ;
|
||||||
#endif
|
#endif
|
||||||
#define ERROR(x...) dprintf("\33[34mext2:\33[0m " x)
|
#define ERROR(x...) dprintf("\33[34mext2:\33[0m " x)
|
||||||
|
#define WARN(x...) dprintf("\33[34mext2:\33[0m " x)
|
||||||
|
|
||||||
|
|
||||||
class LogEntry : public DoublyLinkedListLinkImpl<LogEntry> {
|
class LogEntry : public DoublyLinkedListLinkImpl<LogEntry> {
|
||||||
@ -933,7 +934,7 @@ Journal::_RecoverPassRevoke(uint32 lastCommitID)
|
|||||||
if (status != B_OK)
|
if (status != B_OK)
|
||||||
return status;
|
return status;
|
||||||
} else {
|
} else {
|
||||||
// TODO: Warn that we found an unrecognized block
|
WARN("Journal::_RecoverPassRevoke(): Found an unrecognized block\n");
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1045,7 +1046,7 @@ Journal::_RecoverPassReplay(uint32 lastCommitID)
|
|||||||
} else if (blockType == JOURNAL_COMMIT_BLOCK)
|
} else if (blockType == JOURNAL_COMMIT_BLOCK)
|
||||||
nextCommitID++;
|
nextCommitID++;
|
||||||
else if (blockType != JOURNAL_REVOKE_BLOCK) {
|
else if (blockType != JOURNAL_REVOKE_BLOCK) {
|
||||||
// TODO: Warn that we found an unrecognized block
|
WARN("Journal::_RecoverPassReplay(): Found an unrecognized block\n");
|
||||||
break;
|
break;
|
||||||
} // If blockType == JOURNAL_REVOKE_BLOCK we just skip it
|
} // If blockType == JOURNAL_REVOKE_BLOCK we just skip it
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user