[Debian-ha-commits] [ocfs2-tools] 28/58: fsck.ocfs2: return error if o2fsck_check_journals fails

Valentin Vidic vvidic-guest at moszumanska.debian.org
Tue Jun 20 13:40:42 UTC 2017


This is an automated email from the git hooks/post-receive script.

vvidic-guest pushed a commit to branch upstream
in repository ocfs2-tools.

commit 183852e172c501ec77bf4d1bb40d0aae635474ba
Author: Joseph Qi <joseph.qi at huawei.com>
Date:   Wed Sep 28 16:24:01 2016 +0800

    fsck.ocfs2: return error if o2fsck_check_journals fails
    
    If fsck sees unrecoverable errors in journal, return error.
    
    Signed-off-by: Joseph Qi <joseph.qi at huawei.com>
    Reviewed-by: Jun Piao <piaojun at huawei.com>
---
 fsck.ocfs2/fsck.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/fsck.ocfs2/fsck.c b/fsck.ocfs2/fsck.c
index 1de624e..70d855b 100644
--- a/fsck.ocfs2/fsck.c
+++ b/fsck.ocfs2/fsck.c
@@ -1001,6 +1001,7 @@ int main(int argc, char **argv)
 		if (ret) {
 			printf("fsck saw unrecoverable errors in the journal "
 				"files and will not continue.\n");
+			fsck_mask |= FSCK_ERROR;
 			goto unlock;
 		}
 	}

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-ha/ocfs2-tools.git



More information about the Debian-HA-Commits mailing list