Ticket #13400: 0001-FileSystem-ext2-Journal-TODO-Warn-that-we-found-an-u.3.patch

File 0001-FileSystem-ext2-Journal-TODO-Warn-that-we-found-an-u.3.patch, 1.5 KB (added by wangxindsb, 7 years ago)
  • src/add-ons/kernel/file_systems/ext2/Journal.cpp

    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  
    2727#   define TRACE(x...) ;
    2828#endif
    2929#define ERROR(x...) dprintf("\33[34mext2:\33[0m " x)
     30#define WARN(x...) dprintf("\33[34mext2:\33[0m " x)
    3031
    3132
    3233class LogEntry : public DoublyLinkedListLinkImpl<LogEntry> {
    Journal::_RecoverPassRevoke(uint32 lastCommitID)  
    933934            if (status != B_OK)
    934935                return status;
    935936        } else {
    936                 // TODO: Warn that we found an unrecognized block
     937            WARN("Journal::_RecoverPassRevoke(): Found an unrecognized block\n");
    937938            break;
    938939        }
    939940
    Journal::_RecoverPassReplay(uint32 lastCommitID)  
    10451046        } else if (blockType == JOURNAL_COMMIT_BLOCK)
    10461047            nextCommitID++;
    10471048        else if (blockType != JOURNAL_REVOKE_BLOCK) {
    1048                 // TODO: Warn that we found an unrecognized block
     1049            WARN("Journal::_RecoverPassReplay(): Found an unrecognized block\n");
    10491050            break;
    10501051        } // If blockType == JOURNAL_REVOKE_BLOCK we just skip it
    10511052