Skip to content
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

Add zhack scrub sub command for offline scrubs in userland #14037

Closed
wants to merge 1 commit into from

Conversation

mcmilk
Copy link
Contributor

@mcmilk mcmilk commented Oct 16, 2022

This PR adds a new zhack scrub sub command for zfs pool scrubbing within userspace.

Motivation and Context

#13618 (comment)

Description

This PR adds a "zhack scrub" subcommand which, in user-land, finds and
scrubs a pool. This has proven useful for experimenting with the scan
logic (especially the in-order-scrub patches) without having to reload
the kernel module and seems like it may be useful to others.

Like the original PR #6209 - at this point, it is not yet ready to
merge. There are no tests, no docs and so on... it's currently just a
rebased PR #6209

But like @nwf - I am curious for anyone's commentary and/or suggestions.

How Has This Been Tested?

Currently no testing at all ... just rebased for correct compiling.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Performance enhancement (non-breaking change which improves efficiency)
  • Code cleanup (non-breaking change which makes code smaller or more readable)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Library ABI change (libzfs, libzfs_core, libnvpair, libuutil and libzfsbootenv)
  • Documentation (a change to man pages or other documentation)

Checklist:

@mcmilk mcmilk marked this pull request as draft October 16, 2022 16:26
@mcmilk mcmilk force-pushed the zhack-scrub branch 2 times, most recently from 92fbc7c to 720fbcd Compare October 16, 2022 17:16
@behlendorf behlendorf added the Status: Design Review Needed Architecture or design is under discussion label Oct 18, 2022
@mcmilk mcmilk force-pushed the zhack-scrub branch 2 times, most recently from e2b7a96 to b46aa69 Compare February 27, 2023 18:08
+ Allow physmem to be specified before kernel_init()

This PR adds a "zhack scrub" subcommand which, in user-land, finds and
scrubs a pool. This has proven useful for experimenting with the scan
logic (especially the in-order-scrub patches) without having to reload
the kernel module and seems like it may be useful to others.

Like the original PR openzfs#6209 - at this point, it is not yet ready to
merge. There are no tests, no docs and so on... it's currently just a
rebased  PR openzfs#6209

But like @nwf - I am curious for anyone's commentary and/or suggestions.

Signed-off-by: Tino Reichardt <[email protected]>
Signed-off-by: Nathaniel Wesley Filardo <[email protected]>
@mcmilk
Copy link
Contributor Author

mcmilk commented Jun 3, 2024

Lack of time.

@mcmilk mcmilk closed this Jun 3, 2024
@mcmilk mcmilk deleted the zhack-scrub branch August 24, 2024 13:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Design Review Needed Architecture or design is under discussion
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants