summaryrefslogtreecommitdiffstats
tag namehealth-monitoring_2024-04-23 (8f60b4513b4d46e1919bf90315050ff28297e110)
tag date2024-04-23 20:45:32 -0700
tagged byDarrick J. Wong <djwong@kernel.org>
tagged objectcommit 5ca2c66ec6...
downloadxfstests-dev-health-monitoring_2024-04-23.tar.gz
xfs: live health monitoring of filesystems [27/29]
This patchset builds off of Kent Overstreet's thread_with_file code to deliver live information about filesystem health events to userspace. This is done by creating a twf file and hooking internal operations so that the event information can be queued to the twf without stalling the kernel if the twf client program is nonresponsive. This is a private ioctl, so events are expressed using simple json objects so that we can enrich the output later on without having to rev a ton of C structs. In userspace, we create a new daemon program that will read the json event objects and initiate repairs automatically. This daemon is managed entirely by systemd and will not block unmounting of the filesystem unless repairs are ongoing. It is autostarted via some horrible udev rules. This has been running on the djcloud for months with no problems. Enjoy! Signed-off-by: Darrick J. Wong <djwong@kernel.org> -----BEGIN PGP SIGNATURE----- iHUEABYKAB0WIQQ2qTKExjcn+O1o2YRKO3ySh0YRpgUCZiiAXAAKCRBKO3ySh0YR puKpAP9PYJWBhIWgZMK1kgTzCHFaFRrHvcXaKglDPK24NRlHZQD9HDzFnFqBwxlZ t2H+f7C9OMYyIxdA8UcORKn5zFHvXw0= =3VkW -----END PGP SIGNATURE-----