]> git.hungrycats.org Git - linux/commit
[PATCH] ext3 journal commit I/O error fix
authorAndrew Morton <akpm@digeo.com>
Thu, 3 Apr 2003 00:29:43 +0000 (16:29 -0800)
committerLinus Torvalds <torvalds@home.transmeta.com>
Thu, 3 Apr 2003 00:29:43 +0000 (16:29 -0800)
commit68569684adae20b6bf227ec1512b9a0bb83fbf5b
tree68351467b4dc71dce90d1410de6d477d9d6742c7
parentc20fb5f15e9097986aab97812bf55679dc24c4d9
[PATCH] ext3 journal commit I/O error fix

From: Hua Zhong <hzhong@cisco.com>

The current ext3 totally ignores I/O errors that happened during a
journal_force_commit time, causing user space to falsely believe it has
succeeded, which actually did not.

This patch  checks IO error during  journal_commit_transaction. and aborts
the journal when there is I/O error.

Originally I thought about reporting the error without doing aborting the
journal, but it probably needs a new flag. Aborting the journal seems to be
the easy way to  signal "hey sth is wrong..".
fs/ext3/fsync.c
fs/jbd/commit.c
fs/jbd/journal.c
fs/jbd/transaction.c
include/linux/jbd.h