From 346fc4560d8ebb1cc8312a022599cb470f3dc991 Mon Sep 17 00:00:00 2001
From: wangxindsb <wangxindsb.gmail.com>
Date: Tue, 28 Mar 2017 08:26:30 -0700
Subject: [PATCH] FileSystem: ext2 Journal, TODO:Warn that we found an
unrecognized block
---
src/add-ons/kernel/file_systems/ext2/Journal.cpp | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/src/add-ons/kernel/file_systems/ext2/Journal.cpp b/src/add-ons/kernel/file_systems/ext2/Journal.cpp
index 7efea26..26030ba 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)
|
933 | 934 | if (status != B_OK) |
934 | 935 | return status; |
935 | 936 | } else { |
936 | | // TODO: Warn that we found an unrecognized block |
| 937 | WARN("Journal::_RecoverPassRevoke(): Found an unrecognized block\n"); |
937 | 938 | break; |
938 | 939 | } |
939 | 940 | |
… |
… |
Journal::_RecoverPassReplay(uint32 lastCommitID)
|
1045 | 1046 | } else if (blockType == JOURNAL_COMMIT_BLOCK) |
1046 | 1047 | nextCommitID++; |
1047 | 1048 | else if (blockType != JOURNAL_REVOKE_BLOCK) { |
1048 | | // TODO: Warn that we found an unrecognized block |
| 1049 | WARN("Journal::_RecoverPassReplay(): Found an unrecognized block\n"); |
1049 | 1050 | break; |
1050 | 1051 | } // If blockType == JOURNAL_REVOKE_BLOCK we just skip it |
1051 | 1052 | |