]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC r320555, r320576 (by allanjude):
authormav <mav@FreeBSD.org>
Wed, 2 Aug 2017 14:43:12 +0000 (14:43 +0000)
committermav <mav@FreeBSD.org>
Wed, 2 Aug 2017 14:43:12 +0000 (14:43 +0000)
commit7770a98bafa4cc1311521197fd6267eba751c3a3
tree4989c0ccb5b1e0dc5ca27eef7f040d7d071580c9
parentcb043642c2bc0bdbf5116d3592b0e8d83d30ffd1
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.
usr.sbin/diskinfo/diskinfo.8
usr.sbin/diskinfo/diskinfo.c