Page MenuHomeFreeBSD

mount: improve error message for invalid filesystem names
ClosedPublic

Authored by pstef on Aug 14 2021, 9:51 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Dec 6, 1:38 PM
Unknown Object (File)
Oct 11 2024, 4:09 PM
Unknown Object (File)
Oct 2 2024, 12:04 PM
Unknown Object (File)
Sep 30 2024, 8:12 PM
Unknown Object (File)
Sep 30 2024, 7:47 PM
Unknown Object (File)
Sep 29 2024, 9:08 PM
Unknown Object (File)
Sep 5 2024, 12:48 AM
Unknown Object (File)
Sep 1 2024, 11:43 AM
Subscribers

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
rG FreeBSD src repository
Lint
Lint Not Applicable
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.