Thanks to visit codestin.com
Credit goes to github.com

Skip to content

New API: Replace btrfs-fsck with btrfs-scrub-full #199

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

rwmjones
Copy link
Member

The old btrfs-fsck API used btrfs check which appears to be broken or deprecated. The real tool you should use is btrfs scrub. We have already implemented that API, but it is very awkward to use from libguestfs. In particular there's no existing way to run the scrub and wait for it to finish.

Fix this by deprecating btrfs-fsck. Implement a new API btrfs-scrub-full which runs btrfs scrub in the foreground, waits for it to finish, and handles errors. It's much more like fsck tools in other filesystems.

Thanks: Eric Sandeen
Fixes: https://issues.redhat.com/browse/RHEL-91936

@crobinso @sandeen

The old btrfs-fsck API used "btrfs check" which appears to be broken
or deprecated.  The real tool you should use is "btrfs scrub".  We
have already implemented that API, but it is very awkward to use from
libguestfs.  In particular there's no existing way to run the scrub
and wait for it to finish.

Fix this by deprecating btrfs-fsck.  Implement a new API
btrfs-scrub-full which runs btrfs scrub in the foreground, waits for
it to finish, and handles errors.  It's much more like fsck tools in
other filesystems.

Thanks: Eric Sandeen
Fixes: https://issues.redhat.com/browse/RHEL-91936
@rwmjones rwmjones force-pushed the 2025-btrfs-scrub-full branch from 1b34755 to 8631389 Compare May 16, 2025 07:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant