fsck parallel check
Poul-Henning Kamp
phk at phk.freebsd.dk
Thu Apr 16 16:59:49 UTC 2020
--------
In message <571d8b81-f4f9-d371-6cf2-2e7aeb82a09b at grosbein.net>, Eugene Grosbein writes:
>Not necessary. Fsck tries to parse device name this way: /path/to/nameNUMBERrest
>so it skips all chars upto last /, then extracts "name" part not containing any digits,
>then extracts NUMBER part containing only digits, upto maximum lenght.
>Then is uses nameNUMBER for "disk name".
Yeah, that part sucks...
I think it would make sense to make the heuristic that if there are any
entries with pass > 2, then ignore the "disk name" and simply run all
entries for each pass number in parallel, trusting root to have it
figured out.
If the highest passnumber is 2, retain the "disk name" heuristic.
--
Poul-Henning Kamp | UNIX since Zilog Zeus 3.20
phk at FreeBSD.ORG | TCP/IP since RFC 956
FreeBSD committer | BSD since 4.3-tahoe
Never attribute to malice what can adequately be explained by incompetence.
More information about the freebsd-hackers
mailing list