diff options
-rw-r--r-- | Documentation/filesystems/xfs.txt | 3 | ||||
-rw-r--r-- | fs/xfs/xfs_error.c | 3 | ||||
-rw-r--r-- | fs/xfs/xfs_error.h | 1 | ||||
-rw-r--r-- | fs/xfs/xfs_globals.c | 2 |
4 files changed, 6 insertions, 3 deletions
diff --git a/Documentation/filesystems/xfs.txt b/Documentation/filesystems/xfs.txt index 9ccfd1bc6201..a5cbb5e0e3db 100644 --- a/Documentation/filesystems/xfs.txt +++ b/Documentation/filesystems/xfs.txt | |||
@@ -272,7 +272,7 @@ The following sysctls are available for the XFS filesystem: | |||
272 | XFS_ERRLEVEL_LOW: 1 | 272 | XFS_ERRLEVEL_LOW: 1 |
273 | XFS_ERRLEVEL_HIGH: 5 | 273 | XFS_ERRLEVEL_HIGH: 5 |
274 | 274 | ||
275 | fs.xfs.panic_mask (Min: 0 Default: 0 Max: 255) | 275 | fs.xfs.panic_mask (Min: 0 Default: 0 Max: 256) |
276 | Causes certain error conditions to call BUG(). Value is a bitmask; | 276 | Causes certain error conditions to call BUG(). Value is a bitmask; |
277 | OR together the tags which represent errors which should cause panics: | 277 | OR together the tags which represent errors which should cause panics: |
278 | 278 | ||
@@ -285,6 +285,7 @@ The following sysctls are available for the XFS filesystem: | |||
285 | XFS_PTAG_SHUTDOWN_IOERROR 0x00000020 | 285 | XFS_PTAG_SHUTDOWN_IOERROR 0x00000020 |
286 | XFS_PTAG_SHUTDOWN_LOGERROR 0x00000040 | 286 | XFS_PTAG_SHUTDOWN_LOGERROR 0x00000040 |
287 | XFS_PTAG_FSBLOCK_ZERO 0x00000080 | 287 | XFS_PTAG_FSBLOCK_ZERO 0x00000080 |
288 | XFS_PTAG_VERIFIER_ERROR 0x00000100 | ||
288 | 289 | ||
289 | This option is intended for debugging only. | 290 | This option is intended for debugging only. |
290 | 291 | ||
diff --git a/fs/xfs/xfs_error.c b/fs/xfs/xfs_error.c index 9866f542e77b..57a85410a8c6 100644 --- a/fs/xfs/xfs_error.c +++ b/fs/xfs/xfs_error.c | |||
@@ -357,7 +357,8 @@ xfs_buf_verifier_error( | |||
357 | fa = failaddr ? failaddr : __return_address; | 357 | fa = failaddr ? failaddr : __return_address; |
358 | __xfs_buf_ioerror(bp, error, fa); | 358 | __xfs_buf_ioerror(bp, error, fa); |
359 | 359 | ||
360 | xfs_alert(mp, "Metadata %s detected at %pS, %s block 0x%llx %s", | 360 | xfs_alert_tag(mp, XFS_PTAG_VERIFIER_ERROR, |
361 | "Metadata %s detected at %pS, %s block 0x%llx %s", | ||
361 | bp->b_error == -EFSBADCRC ? "CRC error" : "corruption", | 362 | bp->b_error == -EFSBADCRC ? "CRC error" : "corruption", |
362 | fa, bp->b_ops->name, bp->b_bn, name); | 363 | fa, bp->b_ops->name, bp->b_bn, name); |
363 | 364 | ||
diff --git a/fs/xfs/xfs_error.h b/fs/xfs/xfs_error.h index 246d3e989c6c..602aa7d62b66 100644 --- a/fs/xfs/xfs_error.h +++ b/fs/xfs/xfs_error.h | |||
@@ -98,5 +98,6 @@ extern int xfs_errortag_clearall(struct xfs_mount *mp); | |||
98 | #define XFS_PTAG_SHUTDOWN_IOERROR 0x00000020 | 98 | #define XFS_PTAG_SHUTDOWN_IOERROR 0x00000020 |
99 | #define XFS_PTAG_SHUTDOWN_LOGERROR 0x00000040 | 99 | #define XFS_PTAG_SHUTDOWN_LOGERROR 0x00000040 |
100 | #define XFS_PTAG_FSBLOCK_ZERO 0x00000080 | 100 | #define XFS_PTAG_FSBLOCK_ZERO 0x00000080 |
101 | #define XFS_PTAG_VERIFIER_ERROR 0x00000100 | ||
101 | 102 | ||
102 | #endif /* __XFS_ERROR_H__ */ | 103 | #endif /* __XFS_ERROR_H__ */ |
diff --git a/fs/xfs/xfs_globals.c b/fs/xfs/xfs_globals.c index 5169e84ae382..d0d377384120 100644 --- a/fs/xfs/xfs_globals.c +++ b/fs/xfs/xfs_globals.c | |||
@@ -16,7 +16,7 @@ xfs_param_t xfs_params = { | |||
16 | /* MIN DFLT MAX */ | 16 | /* MIN DFLT MAX */ |
17 | .sgid_inherit = { 0, 0, 1 }, | 17 | .sgid_inherit = { 0, 0, 1 }, |
18 | .symlink_mode = { 0, 0, 1 }, | 18 | .symlink_mode = { 0, 0, 1 }, |
19 | .panic_mask = { 0, 0, 255 }, | 19 | .panic_mask = { 0, 0, 256 }, |
20 | .error_level = { 0, 3, 11 }, | 20 | .error_level = { 0, 3, 11 }, |
21 | .syncd_timer = { 1*100, 30*100, 7200*100}, | 21 | .syncd_timer = { 1*100, 30*100, 7200*100}, |
22 | .stats_clear = { 0, 0, 1 }, | 22 | .stats_clear = { 0, 0, 1 }, |