Skip to content

[cmds] Finish fsck-dos port to ELKS, add to distribution#1821

Merged
ghaerr merged 1 commit intomasterfrom
dos
Mar 5, 2024
Merged

[cmds] Finish fsck-dos port to ELKS, add to distribution#1821
ghaerr merged 1 commit intomasterfrom
dos

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
@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