1
linux/fs/ext3
Stephen Tweedie 301216244b [PATCH] Avoid console spam with ext3 aborted journal.
Avoid console spam with ext3 aborted journal.

ext3 usually reports error conditions that it detects in its environment.
But when its journal gets aborted due to such errors, it can sometimes
continue to report that condition forever, spamming the console to such
an extent that the initial first cause of the journal abort can be lost.

When the journal aborts, we put the filesystem into readonly mode.  Most
subsequent filesystem operations will get rejected immediately by checks
for MS_RDONLY either in the filesystem or in the VFS.  But some paths do
not have such checks --- for example, if we continue to write to a file
handle that was opened before the fs went readonly.  (We only check for
the ROFS condition when the file is first opened.)  In these cases, we
can continue to generate log errors similar to

EXT3-fs error (device $DEV) in start_transaction: Journal has aborted

for each subsequent write.

There is really no point in generating these errors after the initial
error has been fully reported.  Specifically, if we're starting a
completely new filesystem operation, and the filesystem is *already*
readonly (ie. the ext3 layer has already detected and handled the
underlying jbd abort), and we see an EROFS error, then there is simply
no point in reporting it again.

Signed-off-by: Stephen Tweedie <sct@redhat.com>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2005-05-18 09:10:02 -07:00
..
acl.c [PATCH] Fix acl Oops 2005-04-16 15:24:00 -07:00
acl.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
balloc.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
bitmap.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
dir.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
file.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
fsync.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
hash.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
ialloc.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
inode.c [PATCH] revert ext3-writepages-support-for-writeback-mode 2005-05-05 16:36:44 -07:00
ioctl.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
Makefile Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
namei.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
resize.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
super.c [PATCH] Avoid console spam with ext3 aborted journal. 2005-05-18 09:10:02 -07:00
symlink.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
xattr_security.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
xattr_trusted.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
xattr_user.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
xattr.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
xattr.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00