HomeFreeBSD

makefs: avoid warning when creating FAT filesystem on existing file

Description

makefs: avoid warning when creating FAT filesystem on existing file

Previously the mkfs_msdos function (from newfs_msdos) emitted warnings
in the case that an image size is specified and the target is not a
file, or no size is specified and the target is not a character device.
The latter warning (not a character device) doesn't make sense when this
code is used in makefs, regardless of whether an image size is specified
or not.

Sponsored by: The FreeBSD Foundation

(cherry picked from commit d9aee13f6fdad3de080ac0f8b9847daf6b9d567b)

Details

Provenance
emasteAuthored on Nov 8 2019, 2:11 PM
jrtc27Committed on Dec 12 2024, 9:40 PM
Parents
rG0c9b413e1a73: mips/malta: Prefer _start over _locore for entry point symbol
Branches
Unknown
Tags
Unknown