HomeFreeBSD

MFC r320555, r320576 (by allanjude):

Description

MFC r320555, r320576 (by allanjude):
Add -s (serial) and -p (physpath) to diskinfo

Return the bare requested information, intended for scripting.

The serial number of a SAS/SCSI device can be returned with
'camcontrol inquiry disk -S', but there is no similar switch for SATA.

This provides a way to get this information from both SAS and SATA disks

the -s and -p flags are mutually exclusive, and cannot be used with any
other flags.

Details

Provenance
mavAuthored on
Parents
rS321926: Fix LinuxKPI regression after r321920. The mda_unit and si_drv0 fields are not
Branches
Unknown
Tags
Unknown