HomeFreeBSD

mount: improve error message for invalid filesystem names

Description

mount: improve error message for invalid filesystem names

For an invalid filesystem name used 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

Differential Revision: https://reviews.freebsd.org/D31540

(cherry picked from commit 6e8272f317b899438165108a72fa04a4995611bd)

Details

Provenance
pstefAuthored on Aug 14 2021, 8:06 PM
Differential Revision
D31540: mount: improve error message for invalid filesystem names
Parents
rGa4bd2216fb52: ps: fix `ps -aa`
Branches
Unknown
Tags
Unknown