summaryrefslogtreecommitdiffstats
path: root/fs/xfs/xfs_error.h
diff options
context:
space:
mode:
authorDarrick J. Wong2017-06-21 02:54:47 +0200
committerDarrick J. Wong2017-06-28 03:23:20 +0200
commitc684010115221978b17968dbddc8e31a09da85e7 (patch)
treed54d400178c72c7014718a92b511bd6063ffe345 /fs/xfs/xfs_error.h
parentxfs: make errortag a per-mountpoint structure (diff)
downloadkernel-qcow2-linux-c684010115221978b17968dbddc8e31a09da85e7.tar.gz
kernel-qcow2-linux-c684010115221978b17968dbddc8e31a09da85e7.tar.xz
kernel-qcow2-linux-c684010115221978b17968dbddc8e31a09da85e7.zip
xfs: expose errortag knobs via sysfs
Creates a /sys/fs/xfs/$dev/errortag/ directory to control the errortag values directly. This enables us to control the randomness values, rather than having to accept the defaults. Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com> Reviewed-by: Brian Foster <bfoster@redhat.com> Reviewed-by: Carlos Maiolino <cmaiolino@redhat.com>
Diffstat (limited to 'fs/xfs/xfs_error.h')
-rw-r--r--fs/xfs/xfs_error.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/xfs/xfs_error.h b/fs/xfs/xfs_error.h
index b4316d39e1ca..8915bdeb6128 100644
--- a/fs/xfs/xfs_error.h
+++ b/fs/xfs/xfs_error.h
@@ -138,6 +138,7 @@ extern bool xfs_errortag_test(struct xfs_mount *mp, const char *expression,
#define XFS_TEST_ERROR(expr, mp, tag, rf) \
((expr) || xfs_errortag_test((mp), #expr, __FILE__, __LINE__, (tag)))
+extern int xfs_errortag_get(struct xfs_mount *mp, unsigned int error_tag);
extern int xfs_errortag_set(struct xfs_mount *mp, unsigned int error_tag,
unsigned int tag_value);
extern int xfs_errortag_add(struct xfs_mount *mp, unsigned int error_tag);