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

Kuai's custom bitmap patches #133

Merged

Conversation

mtkaczyk
Copy link
Member

@mtkaczyk mtkaczyk commented Dec 2, 2024

@mtkaczyk mtkaczyk changed the title Kuai custom bitmap patches Kuai's custom bitmap patches Dec 2, 2024
@mtkaczyk mtkaczyk force-pushed the kuai_custom_bitmap_patches branch from 0e19e89 to 320ced1 Compare December 2, 2024 11:12
Prepare to remove the bitmap file support.

Signed-off-by: Yu Kuai <[email protected]>
Signed-off-by: Mariusz Tkaczyk <[email protected]>
Prepare to remove bitmap file support.

Signed-off-by: Yu Kuai <[email protected]>
Signed-off-by: Mariusz Tkaczyk <[email protected]>
For the build mode or external metadata, re-add is not supported,
because it will not trigger full disk recovery, user should add a new disk
to the array instead.

Also update test/05r1-re-add-nosuper to reflect this.

Signed-off-by: Yu Kuai <[email protected]>
Signed-off-by: Mariusz Tkaczyk <[email protected]>
Instead of auto-forcing bitmap only for large arrays, it is more
reasonable to let user do the chooice if bimtap is not set.

Signed-off-by: Yu Kuai <[email protected]>
Signed-off-by: Mariusz Tkaczyk <[email protected]>
Because it's marked deprecated for a long time now, and it's not worthy
to support it for new bitmap.

Now that we don't need to store filename for bitmap, also declare a new
enum type bitmap_type to simplify code.

Signed-off-by: Yu Kuai <[email protected]>
Signed-off-by: Mariusz Tkaczyk <[email protected]>
@mtkaczyk mtkaczyk merged commit 581ba13 into md-raid-utilities:main Dec 3, 2024
7 of 9 checks passed
@@ -1535,6 +1535,14 @@ int main(int argc, char *argv[])
break;
}

if (!s.bitmap_file) {
if (c.runstop != 1 && s.level >= 1 &&
ask("To optimalize recovery speed, it is recommended to enable write-indent bitmap, do you want to enable it now?"))
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's a "write-intent" bitmap, not a "write indent bimtap".

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.

3 participants