summaryrefslogtreecommitdiffstats
tag namehealth-monitoring_2024-04-23 (e73becd1576a2248edd43c59452cf084c175af01)
tag date2024-04-23 20:49:25 -0700
tagged byDarrick J. Wong <djwong@kernel.org>
tagged objectcommit 02aeb9832e...
downloadxfsprogs-dev-health-monitoring_2024-04-23.tar.gz
xfsprogs: live health monitoring of filesystems [RFC 61/62]
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+O1o2YRKO3ySh0YRpgUCZiiBRQAKCRBKO3ySh0YR ppHAAP46TJYi7YuxpccuHRL3hA/P0fP/yipB1AT0u7qLjvHNzgEA4wS9qy/BgIBW 59P1IH4mPAtLCJRTJwD3F2YyEQSf6AQ= =OO+6 -----END PGP SIGNATURE-----