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] Finish fsck-dos port to ELKS, add to distribution #1821

Merged
merged 1 commit into from
Mar 5, 2024
Merged

Conversation

ghaerr
Copy link
Owner

@ghaerr ghaerr commented Mar 5, 2024

As discussed in #1819 (comment), the excessive memory usage in fsck-dos was identified, where each directory entry found was allocating 256 bytes for a filename. Since ELKS only handles 26 characters max for FAT, this was shortened, and fsck-dos is no longer running out of memory on 1440k floppy disks.

This PR adds fsck-dos to the 1440k distribution, for testing:

$ fsck-dos -pf /dev/fd1    # run in "preen" mode to quickly force fix small errors
$ fsck-dos -yf /dev/fd1    # force check and answer yes to all errors
$ fsck-dos -nf /dev/fd1    # force check and answer no to all errors

I'll look for a man page for ELKS, but this one from OpenBSD seems to describe its use fairly accurately.

CURRENTLY USE AT YOUR OWN RISK - NOT TESTED THOROUGHLY!

@ghaerr ghaerr merged commit a794526 into master Mar 5, 2024
2 checks passed
@ghaerr ghaerr deleted the dos branch March 28, 2024 16:46
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