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 mkfs nodiscard option to accelerate disk formatting phase #22

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

Conversation

mchtech
Copy link

@mchtech mchtech commented Dec 28, 2022

Some disk backends support discard feature to release unused blocks on underlying storage.
It will take a long time to discard blocks when using mkfs to format, if large "rawfile" is created on these storages.

This patch adds -E nodiscard / -K parameter to mkfs.xxx to accelerate "rawfile" formatting phase.

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