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

File 0002-FileSystem-ext2-Journal-TODO-Warn-that-we-found-an-u.patch, 1.2 KB (added by wangxindsb, 7 years ago)

Ext2 journal, TODO GSoC 2017

  • src/add-ons/kernel/file_systems/ext2/Journal.cpp

    From a0593926a4883ead749da57d8385cdbd284da3a3 Mon Sep 17 00:00:00 2001
    From: wangxindsb <wangxindsb.gmail.com>
    Date: Mon, 27 Mar 2017 02:21:24 -0700
    Subject: [PATCH 2/2] FileSystem: ext2 Journal, TODO:Warn that we found an
     unrecognized block
    
    ---
     src/add-ons/kernel/file_systems/ext2/Journal.cpp | 4 ++--
     1 file changed, 2 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 d0a5db7..ded23e4 100644
    a b Journal::_RecoverPassRevoke(uint32 lastCommitID)  
    933933            if (status != B_OK)
    934934                return status;
    935935        } else {
    936             TRACE("Journal::_RecoverPassRevoke(): Unrecognized block\n");
     936            ERROR("Journal::_RecoverPassRevoke(): Unrecognized block\n");
    937937            break;
    938938        }
    939939
    Journal::_RecoverPassReplay(uint32 lastCommitID)  
    10451045        } else if (blockType == JOURNAL_COMMIT_BLOCK)
    10461046            nextCommitID++;
    10471047        else if (blockType != JOURNAL_REVOKE_BLOCK) {
    1048                 // TODO: Warn that we found an unrecognized block
     1048            ERROR("Journal::_RecoverPassRevoke(): Unrecognized block\n");
    10491049            break;
    10501050        } // If blockType == JOURNAL_REVOKE_BLOCK we just skip it
    10511051