From ceb7dc5a5e4cf65c3925c4b102c091e8b1797fce Mon Sep 17 00:00:00 2001
From: wangxindsb <wangxindsb.gmail.com>
Date: Tue, 28 Mar 2017 03:08:25 -0700
Subject: [PATCH] FileSystem: ext2 Journal, TODO:Warn that we found an
unrecognized block
---
src/add-ons/kernel/file_systems/ext2/Journal.cpp | 3 +++
1 file changed, 3 insertions(+)
diff --git a/src/add-ons/kernel/file_systems/ext2/Journal.cpp b/src/add-ons/kernel/file_systems/ext2/Journal.cpp
index 7efea26..6cfc171 100644
a
|
b
|
|
27 | 27 | # define TRACE(x...) ; |
28 | 28 | #endif |
29 | 29 | #define ERROR(x...) dprintf("\33[34mext2:\33[0m " x) |
| 30 | #define WARN(x...) dprintf("\33[34mext2:\33[0m " x) |
30 | 31 | |
31 | 32 | |
32 | 33 | class LogEntry : public DoublyLinkedListLinkImpl<LogEntry> { |
… |
… |
Journal::_RecoverPassRevoke(uint32 lastCommitID)
|
934 | 935 | return status; |
935 | 936 | } else { |
936 | 937 | // TODO: Warn that we found an unrecognized block |
| 938 | WARN("Journal::_RecoverPassRevoke(): Found an unrecognized block\n"); |
937 | 939 | break; |
938 | 940 | } |
939 | 941 | |
… |
… |
Journal::_RecoverPassReplay(uint32 lastCommitID)
|
1046 | 1048 | nextCommitID++; |
1047 | 1049 | else if (blockType != JOURNAL_REVOKE_BLOCK) { |
1048 | 1050 | // TODO: Warn that we found an unrecognized block |
| 1051 | WARN("Journal::_RecoverPassReplay(): Found an unrecognized block\n"); |
1049 | 1052 | break; |
1050 | 1053 | } // If blockType == JOURNAL_REVOKE_BLOCK we just skip it |
1051 | 1054 | |