]> git.hungrycats.org Git - linux/commit
JFS: Improved error handing
authorDave Kleikamp <shaggy@shaggy.austin.ibm.com>
Wed, 8 Oct 2003 06:07:50 +0000 (01:07 -0500)
committerDave Kleikamp <shaggy@shaggy.austin.ibm.com>
Wed, 8 Oct 2003 06:07:50 +0000 (01:07 -0500)
commit6349fc5a17092c0fa53e93f940d4757e9ebe9770
tree0e12ef6e8c2a95a003fc0cb37e739802df9ff393
parent902df8e1b99ad505b9127a92fc9f39223a6f67b7
JFS: Improved error handing

This patch replaces many assert statements, which caused a BUG(), with
improved code to mark the superblock dirty and then proceed as specified by
the errors= mount flag (as ext2 and ext3 do).  JFS's default for the errors
option is "remount-ro" in order to prevent addition data corruption when a
problem is found.

These asserts are usually triggered by on-disk data corruption.  By marking
the superblock dirty, fsck will perform a complete check on the file system
and correct the problems, rather than simply replaying the journal, inviting
later trouble.

Submitted by Karl Rister & Dave Kleikamp
14 files changed:
Documentation/filesystems/jfs.txt
fs/jfs/jfs_dmap.c
fs/jfs/jfs_dtree.c
fs/jfs/jfs_extent.c
fs/jfs/jfs_filsys.h
fs/jfs/jfs_imap.c
fs/jfs/jfs_metapage.c
fs/jfs/jfs_superblock.h
fs/jfs/jfs_txnmgr.c
fs/jfs/jfs_xtree.c
fs/jfs/namei.c
fs/jfs/resize.c
fs/jfs/super.c
fs/jfs/xattr.c