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

[cmds] Have fdisk check for MBR-capable block device for safety #2069

Merged
merged 3 commits into from
Oct 7, 2024
Merged

Conversation

ghaerr
Copy link
Owner

@ghaerr ghaerr commented Oct 7, 2024

Inspired by @Mellvik's Mellvik/TLVC#89. This version checks the minor device number and requires specification of an MBR-capable block device.

Make executable smaller using updated tiny_printf.c.
Rewrites some error message to properly show errno number.
Reformats source code for readability.

@ghaerr ghaerr merged commit 421c2a5 into master Oct 7, 2024
2 checks passed
@ghaerr ghaerr deleted the fdisk branch October 7, 2024 16:24
@toncho11
Copy link
Contributor

I propose this commit code and build for version 8.1.

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.

2 participants