Go to the previous, next section.

Error Handling

This chapter describes how a standard ext2 file system must handle errors. The superblock contains two parameters controlling the way errors are handled. See section Superblock

The first of these is the s_mount_opt member of the superblock structure in memory. Its value is computed from the options specified when the fs is mounted. Its error handling related values are:

EXT2_MOUNT_ERRORS_CONT
continue even if an error occurs.

EXT2_MOUNT_ERRORS_RO
remount the file system read only.

EXT2_MOUNT_ERRORS_PANIC
the kernel panics on error.

The second of these is the s_errors member of the superblock structure on disk. It may take one of the following values:

EXT2_ERRORS_CONTINUE
continue even if an error occurs.

EXT2_ERRORS_RO
remount the file system read only.

EXT2_ERRORS_PANIC
in which case the kernel simply panics.

EXT2_ERRORS_DEFAULT
use the default behavior (as of 0.5a EXT2_ERRORS_CONTINUE).

s_mount_opt has precedence on s_errors.

Go to the previous, next section.