Commit 267b801f authored by Kent Overstreet's avatar Kent Overstreet
Browse files

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: default avatarKent Overstreet <kent.overstreet@linux.dev>
parent 8408fa57
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment