summaryrefslogtreecommitdiffstats
tag namehealth-monitoring_2024-04-29 (884499fee7f2efc039cd9c41b07a0ae4ca599d0e)
tag date2024-04-29 19:50:08 -0700
tagged byDarrick J. Wong <djwong@kernel.org>
tagged objectcommit 3201b6328d...
downloadxfs-linux-health-monitoring_2024-04-29.tar.gz
xfs: live health monitoring of filesystems [RFC 52/54]
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+O1o2YRKO3ySh0YRpgUCZjBcYAAKCRBKO3ySh0YR pmG9AP409GiWQo4sGazLshg/3t+4iwB2DHXEelatek7NZpJyUAEA4vXy3CsF/U1f 98HBF5mJLTl9GKB8oNvTqe/z+CrxxwY= =ZKKI -----END PGP SIGNATURE-----