]> git.hungrycats.org Git - linux/commit
[PATCH] ReiserFS: Add I/O error handling to journal operations
authorJeff Mahoney <jeffm@novell.com>
Mon, 18 Oct 2004 16:07:45 +0000 (09:07 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Mon, 18 Oct 2004 16:07:45 +0000 (09:07 -0700)
commit6f2fb1255b052f8d797479a11d8bd474b35b0384
treec6e4469a6427646235705685f68aadeedc0f5b7a
parent5b7b40f5b6b0a3407b0d6e6d70d3d20d58731255
[PATCH] ReiserFS: Add I/O error handling to journal operations

This patch allows ReiserFS to handle I/O errors in the journal (or journal
flush) where it would have previously panicked.  The new behavior is to
mark the filesystem read-only, disallow new transactions to be started, and
to allow existing transactions to complete (though not to commit).  The
resultant filesystem can be safely umounted, and checked via normal
mechanisms.  As it is a journaling filesystem, the filesystem itself will
be in a similar state to the power being cut to the machine, once umounted.

Signed-off-by: Jeff Mahoney <jeffm@novell.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
14 files changed:
fs/reiserfs/bitmap.c
fs/reiserfs/dir.c
fs/reiserfs/file.c
fs/reiserfs/inode.c
fs/reiserfs/journal.c
fs/reiserfs/namei.c
fs/reiserfs/objectid.c
fs/reiserfs/prints.c
fs/reiserfs/resize.c
fs/reiserfs/stree.c
fs/reiserfs/super.c
fs/reiserfs/tail_conversion.c
include/linux/reiserfs_fs.h
include/linux/reiserfs_fs_sb.h