diff options
author | Darrick J. Wong <darrick.wong@oracle.com> | 2015-10-17 22:16:04 +0200 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2015-10-17 22:16:04 +0200 |
commit | 6a797d2737838906f2ea0a31686e87c3151e21ca (patch) | |
tree | c13f506c771271660fb76d3e0ba86a9e107f0ed9 /fs/ext4/ext4.h | |
parent | ext4: store checksum seed in superblock (diff) | |
download | linux-6a797d2737838906f2ea0a31686e87c3151e21ca.tar.xz linux-6a797d2737838906f2ea0a31686e87c3151e21ca.zip |
ext4: call out CRC and corruption errors with specific error codes
Instead of overloading EIO for CRC errors and corrupt structures,
return the same error codes that XFS returns for the same issues.
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Diffstat (limited to 'fs/ext4/ext4.h')
-rw-r--r-- | fs/ext4/ext4.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/ext4/ext4.h b/fs/ext4/ext4.h index cd832b99f68c..6c0797346da1 100644 --- a/fs/ext4/ext4.h +++ b/fs/ext4/ext4.h @@ -3064,4 +3064,7 @@ extern void ext4_resize_end(struct super_block *sb); #endif /* __KERNEL__ */ +#define EFSBADCRC EBADMSG /* Bad CRC detected */ +#define EFSCORRUPTED EUCLEAN /* Filesystem is corrupted */ + #endif /* _EXT4_H */ |