summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@linux.dev>2023-12-04 13:45:33 -0500
committerKent Overstreet <kent.overstreet@linux.dev>2024-01-01 11:47:40 -0500
commit267b801fda10b70eca4001a819fcac07f023df6b (patch)
tree41d9bfd3452ecd85ab133d82e753c4e3f4c0a43e /tools
parent8408fa570ef9b8c35720369bad6b13828ae6b001 (diff)
bcachefs: BCH_IOCTL_FSCK_ONLINE
This adds a new ioctl for running fsck on a mounted, in use filesystem. This reuses the fsck_thread code from the previous patch for running fsck on an offline, unmounted filesystem, so that log messages for the fsck thread are redirected to userspace. Only one running fsck instance is allowed at a time; a new semaphore (since the lock will be taken by one thread and released by another) is added for this. Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'tools')
0 files changed, 0 insertions, 0 deletions