Page MenuHomeFreeBSD

mount: improve error message for invalid filesystem names
ClosedPublic

Authored by pstef on Aug 14 2021, 9:51 PM.

Details

Summary

For an invalid filesystem name like this:
# mount -t asdfs /dev/ada1p5 /usr/obj
emit an error message like this
mount: /dev/ada1p5: Invalid fstype: Invalid argument
instead of
mount: /dev/ada1p5: Operation not supported by device

Diff Detail

Repository
R10 FreeBSD src repository
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

pstef requested review of this revision.Aug 14 2021, 9:51 PM
pstef created this revision.
This revision was not accepted when it landed; it landed in state Needs Review.Sep 15 2021, 2:33 PM
This revision was automatically updated to reflect the committed changes.