summaryrefslogtreecommitdiffstats
path: root/fs/xfs/xfs_ioctl.c
diff options
context:
space:
mode:
authorDarrick J. Wong <darrick.wong@oracle.com>2019-04-12 07:41:17 -0700
committerDarrick J. Wong <darrick.wong@oracle.com>2019-04-14 18:15:57 -0700
commitc23232d409355091502a362e99ed06f800765961 (patch)
treed4b539e0b04a2089afe27f8e89c07f4b7c096261 /fs/xfs/xfs_ioctl.c
parent7cd5006bdb6f6d9d9d7e68aa1d96b6e4a8b68bc5 (diff)
downloadlinux-c23232d409355091502a362e99ed06f800765961.tar.gz
linux-c23232d409355091502a362e99ed06f800765961.tar.bz2
linux-c23232d409355091502a362e99ed06f800765961.zip
xfs: report fs and rt health via geometry structure
Use our newly expanded geometry structure to report the overall fs and realtime health status. Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com> Reviewed-by: Brian Foster <bfoster@redhat.com>
Diffstat (limited to 'fs/xfs/xfs_ioctl.c')
-rw-r--r--fs/xfs/xfs_ioctl.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/fs/xfs/xfs_ioctl.c b/fs/xfs/xfs_ioctl.c
index b36abd453709..ae615a79b266 100644
--- a/fs/xfs/xfs_ioctl.c
+++ b/fs/xfs/xfs_ioctl.c
@@ -34,6 +34,7 @@
#include "scrub/xfs_scrub.h"
#include "xfs_sb.h"
#include "xfs_ag.h"
+#include "xfs_health.h"
#include <linux/capability.h>
#include <linux/cred.h>
@@ -797,8 +798,10 @@ xfs_ioc_fsgeometry(
len = sizeof(struct xfs_fsop_geom_v1);
else if (struct_version == 4)
len = sizeof(struct xfs_fsop_geom_v4);
- else
+ else {
+ xfs_fsop_geom_health(mp, &fsgeo);
len = sizeof(fsgeo);
+ }
if (copy_to_user(arg, &fsgeo, len))
return -EFAULT;