I recently ran newfs on a zvol and got this message:
# newfs /dev/zvol/rdsk/tee8/zv1
/dev/zvol/rdsk/tee8/zv1: Unable to find Media type. Proceeding with system determined parameters.
This message gets generated when a newly added
DKIOCGREMOVABLE ioctl fails.
There are a couple of problems with this. First,
for EFI labeled disks, the geometry is always faked
up, so we shouldn't need to issue the ioctl.
Also, whether the media is removable or not seems
orthogonal to whether the geometry values are acceptable.
I'd think the data returned by the DKIOCGGEOM ioctl could
be inspected and the values adjusted as needed, without
issuing an ioctl to determine whether the device is
removable.
If that's not possible, then the message needs some work.
"media type" is misleading since it implies that newfs is
trying to look at something like a dki_media_type field,
but it isn't. The message also doesn't indicate what an
administrator is supposed to do, or what the impact of
"system determined parameters" are.
This message also gets generated when using lofi, and
probably happens on ldoms too.