freebsd-dev/usr.sbin
Allan Jude 278a04f5c8 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.

Reviewed by:	rpokala, wblock
MFC after:	1 month
Sponsored by:	ScaleEngine Inc.
Differential Revision:	https://reviews.freebsd.org/D7828
2017-07-01 21:34:57 +00:00
..
ac
accton Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
acpi Merge ACPICA 20170531. 2017-06-01 00:01:19 +00:00
adduser
amd DIRDEPS_BUILD: Update dependencies. 2017-05-09 01:48:23 +00:00
ancontrol usr.sbin: normalize paths using SRCTOP-relative paths or :H when possible 2017-03-04 11:38:03 +00:00
apm
apmd
arp DIRDEPS_BUILD: Update dependencies. 2017-05-09 01:48:23 +00:00
asf
audit usr.sbin: normalize paths using SRCTOP-relative paths or :H when possible 2017-03-04 11:38:03 +00:00
auditd usr.sbin: normalize paths using SRCTOP-relative paths or :H when possible 2017-03-04 11:38:03 +00:00
auditdistd usr.sbin: normalize paths using SRCTOP-relative paths or :H when possible 2017-03-04 11:38:03 +00:00
auditreduce usr.sbin: normalize paths using SRCTOP-relative paths or :H when possible 2017-03-04 11:38:03 +00:00
authpf usr.sbin: normalize paths using SRCTOP-relative paths or :H when possible 2017-03-04 11:38:03 +00:00
autofs Revert r317804; apparently I forgot the auto_master syntax. 2017-05-04 19:55:32 +00:00
bhyve Check if pthread_create(3) successfully created the thread prior to call 2017-06-16 01:26:01 +00:00
bhyvectl usr.sbin: normalize paths using SRCTOP-relative paths or :H when possible 2017-03-04 11:38:03 +00:00
bhyveload bhyveload: correctly query size of disks 2017-06-21 18:19:27 +00:00
binmiscctl
blacklistctl
blacklistd
bluetooth When the input parameter node is NULL, memory is allocated to it. 2017-06-06 22:17:55 +00:00
boot0cfg Use nitems() from sys/param.h 2017-03-11 04:00:27 +00:00
bootparamd Utilize SYSROOT from r320119 in places where DESTDIR may be wanting WORLDTMP. 2017-06-19 20:47:24 +00:00
bsdconfig Fix long standing issue in bsdconfig's keymap selection 2017-05-25 18:16:17 +00:00
bsdinstall Add hardening menu item for security.bsd.see_jail_proc 2017-06-29 16:39:55 +00:00
bsnmpd DIRDEPS_BUILD: Update dependencies. 2017-05-09 01:48:23 +00:00
btxld
camdd Use nitems() from sys/param.h. 2017-03-10 04:24:21 +00:00
cdcontrol Remove last remnants of acd(4), mcd(4), and scd(4) drivers. 2016-08-25 19:36:58 +00:00
chkgrp
chown Add more simple positive tests for chown(1) 2017-06-11 19:31:42 +00:00
chroot Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
ckdist usr.sbin: normalize paths using SRCTOP-relative paths or :H when possible 2017-03-04 11:38:03 +00:00
clear_locks
config Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
cpucontrol Add support for microcode update on newer AMD CPUs (10h+) 2016-11-02 16:15:49 +00:00
crashinfo crashinfo: add "batch" mode and use it during boot 2017-06-01 21:23:04 +00:00
cron usr.sbin: normalize paths using SRCTOP-relative paths or :H when possible 2017-03-04 11:38:03 +00:00
crunch Teach crunchide about EM_S390 to make bootstrapping from future 2017-01-10 14:40:30 +00:00
ctladm Split iscsi(4) ctl frontend off of ctl(4) as cfiscsi(4) 2017-03-30 04:56:27 +00:00
ctld Make ctld(8) mention cfiscsi(4). 2017-05-28 16:41:42 +00:00
ctm ctm: Fix some trivial argv buffer overruns 2017-04-13 22:59:17 +00:00
cxgbetool Fix some trivial manlint warnings 2017-03-06 19:33:15 +00:00
daemon DIRDEPS_BUILD: Update dependencies. 2016-11-13 00:11:30 +00:00
dconschat usr.sbin: normalize paths using SRCTOP-relative paths or :H when possible 2017-03-04 11:38:03 +00:00
devctl o Missed flag restored. 2017-05-19 20:02:32 +00:00
devinfo
digictl
diskinfo Add -s (serial) and -p (physpath) to diskinfo 2017-07-01 21:34:57 +00:00
dumpcis
editmap usr.sbin: normalize paths using SRCTOP-relative paths or :H when possible 2017-03-04 11:38:03 +00:00
edquota Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
eeprom usr.sbin: normalize paths using SRCTOP-relative paths or :H when possible 2017-03-04 11:38:03 +00:00
efidp Update the "first appeared in" version in several manual pages. 2017-05-24 17:47:49 +00:00
efivar Correct the "first appeared in" version for efivar(8). 2017-05-22 13:55:59 +00:00
etcupdate etcupdate: preserve the metadata of the destination file 2016-09-08 15:53:49 +00:00
extattr Don't assume NAME_MAX is 255 2017-04-04 21:36:13 +00:00
extattrctl
fdcontrol Remove the last vestiges of FDC_DEBUG & FD_DEBUG 2017-04-07 16:14:25 +00:00
fdformat usr.sbin: normalize paths using SRCTOP-relative paths or :H when possible 2017-03-04 11:38:03 +00:00
fdread Free the memory allocated to trackbuf before exiting, it might fix a potential 2017-05-03 13:57:31 +00:00
fdwrite
fifolog Use :H to manipulate .CURDIR-relative paths instead of ../ 2017-03-01 05:21:21 +00:00
flowctl
fmtree usr.sbin: normalize paths using SRCTOP-relative paths or :H when possible 2017-03-04 11:38:03 +00:00
freebsd-update Modernize FreeBSD version numbers in freebsd-update(8). 2017-06-14 18:34:22 +00:00
fstyp fstyp: move sys/ include path after zfs include paths 2017-06-20 16:45:48 +00:00
ftp-proxy usr.sbin: normalize paths using SRCTOP-relative paths or :H when possible 2017-03-04 11:38:03 +00:00
fwcontrol usr.sbin: normalize paths using SRCTOP-relative paths or :H when possible 2017-03-04 11:38:03 +00:00
getfmac
getpmac
gpioctl usr.sbin: normalize paths using SRCTOP-relative paths or :H when possible 2017-03-04 11:38:03 +00:00
gssd usr.sbin: normalize paths using SRCTOP-relative paths or :H when possible 2017-03-04 11:38:03 +00:00
gstat Add flag -B which does the same like batch mode but without exiting after 2016-11-09 07:31:39 +00:00
hyperv usr.sbin: normalize paths using SRCTOP-relative paths or :H when possible 2017-03-04 11:38:03 +00:00
i2c More typos in strings. 2016-12-02 11:30:21 +00:00
ifmcstat Use nitems() from sys/param.h. 2017-06-15 06:48:36 +00:00
inetd Simplify a pipe for signal handling. 2017-03-20 17:57:24 +00:00
iostat Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
iovctl usr.sbin: normalize paths using SRCTOP-relative paths or :H when possible 2017-03-04 11:38:03 +00:00
ip6addrctl Use nitems() from sys/param.h. 2017-06-15 06:46:40 +00:00
ipfwpcap usr.sbin: normalize paths using SRCTOP-relative paths or :H when possible 2017-03-04 11:38:03 +00:00
iscsid Minor tweaks to iscsi(4) and iscsid(8). 2017-05-28 17:02:29 +00:00
jail Jails: Optionally prevent jailed root from binding to privileged ports 2017-06-06 02:15:00 +00:00
jexec
jls Improve IP address list representation in libxo output. 2016-12-24 23:51:27 +00:00
kbdcontrol
kbdmap
keyserv Utilize SYSROOT from r320119 in places where DESTDIR may be wanting WORLDTMP. 2017-06-19 20:47:24 +00:00
kgmon Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
kgzip Remove pc98 support completely. 2017-01-28 02:22:15 +00:00
kldxref kldxref: bump MAXSEGS to 3 2017-02-10 19:17:10 +00:00
lastlogin
lmcconfig
lpr Quiesce clang warning while building lpc. 2017-06-16 20:00:39 +00:00
lptcontrol
mailstats usr.sbin: normalize paths using SRCTOP-relative paths or :H when possible 2017-03-04 11:38:03 +00:00
mailwrapper Convert absolute links to relative links. 2017-03-07 05:10:38 +00:00
makefs makefs: add copies of NetBSD makefs msdos source files 2017-06-23 18:58:28 +00:00
makemap usr.sbin: normalize paths using SRCTOP-relative paths or :H when possible 2017-03-04 11:38:03 +00:00
manctl
memcontrol
mergemaster mergemaster: fix description of -p 2017-03-07 04:13:22 +00:00
mfiutil Avoid taking the address of a packed struct member in mfiutil 2017-01-09 19:39:35 +00:00
mixer mixer(8): Prevent possible sscanf() overflow. 2017-04-29 19:12:44 +00:00
mld6query
mlxcontrol usr.sbin: normalize paths using SRCTOP-relative paths or :H when possible 2017-03-04 11:38:03 +00:00
mount_smbfs usr.sbin: normalize paths using SRCTOP-relative paths or :H when possible 2017-03-04 11:38:03 +00:00
mountd Update the exports.5 man page to reflect the change in default uid/gid 2017-05-20 23:25:07 +00:00
moused Add Elantech trackpad to the list of known models 2016-09-26 22:07:45 +00:00
mpsutil Show more fields in the IOCFact message 2017-05-05 17:01:54 +00:00
mptable
mptutil "Buses" is the preferred plural of "bus" 2017-01-15 17:54:01 +00:00
mtest
nandsim
nandtool
ndiscvt usr.sbin: normalize paths using SRCTOP-relative paths or :H when possible 2017-03-04 11:38:03 +00:00
ndp Fix userland tools that don't check the format of routing socket 2017-04-16 19:17:10 +00:00
newsyslog Remove TODO for sub testcases added for bug 212160 2017-06-03 18:20:23 +00:00
nfscbd
nfsd Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
nfsdumpstate
nfsrevoke
nfsuserd Fix the default uid/gid values in nfsuserd.c 2017-04-23 23:09:02 +00:00
ngctl
nghook
nmtree usr.sbin: normalize paths using SRCTOP-relative paths or :H when possible 2017-03-04 11:38:03 +00:00
nologin Convert absolute links to relative links. 2017-03-07 05:10:38 +00:00
nscd Fix up two assertions following malloc(). vangyzen@ notified me of 2017-05-20 18:16:26 +00:00
ntp Utilize SYSROOT from r320119 in places where DESTDIR may be wanting WORLDTMP. 2017-06-19 20:47:24 +00:00
nvram
ofwdump
pc-sysinstall Remove pc98 support completely. 2017-01-28 02:22:15 +00:00
pciconf Add constants and descriptions for some new PCI class definitions 2017-03-13 07:45:15 +00:00
periodic periodic(8): delete trailing whitespace 2017-06-20 06:20:09 +00:00
pkg Flush stdout before yes/no confirmations, to force question 2017-05-03 20:41:26 +00:00
pmcannotate
pmccontrol
pmcstat pmcstat(8); unsign some allocation variables and use reallocarray(3). 2017-04-22 16:02:40 +00:00
pmcstudy Don't end up manpage titles with a full stop. 2017-05-24 21:02:53 +00:00
pnpinfo usr.sbin: normalize paths using SRCTOP-relative paths or :H when possible 2017-03-04 11:38:03 +00:00
portsnap Avoid division by zero in the rare case that portsnap needs to fetch 2016-12-16 22:37:16 +00:00
powerd
ppp Before returning because of an memory allocation error, free the memory 2017-06-06 21:51:04 +00:00
pppctl
praliases usr.sbin: normalize paths using SRCTOP-relative paths or :H when possible 2017-03-04 11:38:03 +00:00
praudit Merge OpenBSM 1.2-alpha5 from vendor branch to FreeBSD -CURRENT: 2017-03-26 21:14:49 +00:00
procctl
prometheus_sysctl_exporter DIRDEPS_BUILD: Connect new directories. 2017-05-09 01:48:14 +00:00
pstat Commit the 64-bit inode project. 2017-05-23 09:29:05 +00:00
pw pw: add some basic testcases for groupshow and usershow 2017-05-28 02:15:57 +00:00
pwd_mkdb usr.sbin: normalize paths using SRCTOP-relative paths or :H when possible 2017-03-04 11:38:03 +00:00
quot prefix UFS symbols with UFS_ to reduce namespace pollution 2017-02-15 19:50:26 +00:00
quotaon Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
rarpd Fix userland tools that don't check the format of routing socket 2017-04-16 19:17:10 +00:00
repquota Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
rip6query usr.sbin: normalize paths using SRCTOP-relative paths or :H when possible 2017-03-04 11:38:03 +00:00
rmt Change /etc/rmt symlink from absolute to relative path, 2017-03-05 04:09:18 +00:00
route6d Fix userland tools that don't check the format of routing socket 2017-04-16 19:17:10 +00:00
rpc.lockd Reduce code duplication in rpc.lockd. 2017-06-21 06:34:06 +00:00
rpc.statd Utilize SYSROOT from r320119 in places where DESTDIR may be wanting WORLDTMP. 2017-06-19 20:47:24 +00:00
rpc.umntall
rpc.yppasswdd Use SRCTOP-relative paths to other directories instead of .CURDIR-relative ones 2017-03-01 04:14:41 +00:00
rpc.ypupdated Utilize SYSROOT from r320119 in places where DESTDIR may be wanting WORLDTMP. 2017-06-19 20:47:24 +00:00
rpc.ypxfrd Use SRCTOP-relative paths to other directories instead of .CURDIR-relative ones 2017-03-01 04:22:23 +00:00
rpcbind * limit size of buffers to RPC_MAXDATASIZE 2017-06-01 06:12:25 +00:00
rrenumd rrenumd(8): Fix a trivial Coverity warning 2017-03-29 21:04:39 +00:00
rtadvctl usr.sbin: normalize paths using SRCTOP-relative paths or :H when possible 2017-03-04 11:38:03 +00:00
rtadvd Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
rtprio
rtsold Garbage collect IFT_IEEE80211 (but leave the define for possible reuse) 2017-01-28 17:08:40 +00:00
rwhod Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
sa Commit the 64-bit inode project. 2017-05-23 09:29:05 +00:00
sendmail usr.sbin: normalize paths using SRCTOP-relative paths or :H when possible 2017-03-04 11:38:03 +00:00
service
services_mkdb Remove usage of _WITH_GETLINE from usr.sbin 2016-07-30 01:10:05 +00:00
sesutil Add libxo(3) support to sesutil(8) 2017-06-29 18:52:36 +00:00
setfib Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
setfmac
setpmac
smbmsg smbmsg: use a more convenient way of accessing data read from a slave 2016-11-11 15:00:13 +00:00
snapinfo
spkrtest
spray
syslogd Fix another logic bug that came out of recent syslogd refactoring and exposed by 2017-04-15 18:20:11 +00:00
sysrc
tcpdchk Use SRCTOP-relative paths to other directories instead of .CURDIR-relative ones 2017-03-01 04:17:18 +00:00
tcpdmatch Use SRCTOP-relative paths to other directories instead of .CURDIR-relative ones 2017-03-01 04:17:18 +00:00
tcpdrop o Clean the whole array of IPv4 addresses not just a local part. 2017-04-28 09:17:16 +00:00
tcpdump Utilize SYSROOT from r320119 in places where DESTDIR may be wanting WORLDTMP. 2017-06-19 20:47:24 +00:00
tests
timed usr.sbin: normalize paths using SRCTOP-relative paths or :H when possible 2017-03-04 11:38:03 +00:00
traceroute DIRDEPS_BUILD: Update dependencies. 2017-05-09 01:48:23 +00:00
traceroute6 Use SRCTOP-relative paths to other directories instead of .CURDIR-relative ones 2017-03-01 04:17:59 +00:00
trpt Hide struct inpcb, struct tcpcb from the userland. 2017-03-21 06:39:49 +00:00
tzsetup Use SRCTOP-relative paths to other directories instead of .CURDIR-relative ones 2017-03-01 04:23:53 +00:00
uathload Use SRCTOP-relative paths to other directories instead of .CURDIR-relative ones 2017-03-01 03:59:18 +00:00
uefisign uefisign: Remove backwards-compatibility sys/capability.h support 2016-09-19 16:07:32 +00:00
ugidfw
uhsoctl
unbound Use SRCTOP-relative paths to other directories instead of .CURDIR-relative ones 2017-03-01 04:41:59 +00:00
usbconfig
usbdump
utx
vidcontrol Fix a missing const in my previous commit which broke the build at 2017-04-03 15:11:28 +00:00
vigr
vipw Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
wake
watch
watchdogd Chase malloc() change by removing lg_chunk malloc_conf settings. 2017-06-28 04:19:54 +00:00
wlandebug
wpa Use SRCTOP-relative paths to other directories instead of .CURDIR-relative ones 2017-03-02 05:04:45 +00:00
yp_mkdb Use SRCTOP-relative paths to other directories instead of .CURDIR-relative ones 2017-03-01 04:02:36 +00:00
ypbind ypbind(8): let calloc(3) do the multiplying. 2017-03-13 20:51:00 +00:00
ypldap Simplify parseval() by allocating a buffer the size of the input string, 2017-05-26 03:27:06 +00:00
yppoll
yppush Use SRCTOP-relative paths to other directories instead of .CURDIR-relative ones 2017-03-01 04:24:24 +00:00
ypserv Use SRCTOP-relative paths to other directories instead of .CURDIR-relative ones 2017-03-01 04:24:56 +00:00
ypset
zic Use SRCTOP-relative paths to other directories instead of .CURDIR-relative ones 2017-03-01 04:35:21 +00:00
zonectl Use SRCTOP-relative paths to other directories instead of .CURDIR-relative ones 2017-03-01 04:19:04 +00:00
zzz
Makefile efidp manipulates UEFI Device Paths in various ways. At the moment, it 2017-03-09 00:33:38 +00:00
Makefile.amd64 Remove the si(4) driver and sicontrol(8) for Specialix serial cards. 2016-08-19 21:14:27 +00:00
Makefile.arm
Makefile.arm64
Makefile.i386 Remove pc98 support completely. 2017-01-28 02:22:15 +00:00
Makefile.inc
Makefile.mips
Makefile.powerpc Create a new MACHINE_ARCH for Freescale PowerPC e500v2 2016-10-22 01:57:15 +00:00
Makefile.sparc64