freebsd-src/sbin
John Baldwin 326e20fc12 nvmecontrol: Refactor devlist implementation
Split out helper functions for scan_namespace and scan_controller.
While here, replace sprintf() calls with snprintf() and avoid
leaking the contoller fd if read_controller_data() fails.

Reviewed by:	chuck, imp
Sponsored by:	Chelsio Communications
Differential Revision:	https://reviews.freebsd.org/D47354
2024-11-04 20:28:26 -05:00
..
adjkerntz adjkerntz.8: minor cleanup (markup, spdx, reflow) 2024-07-29 14:06:06 -06:00
bectl Update Makefile.depend files 2024-10-14 10:26:17 -07:00
bsdlabel Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
camcontrol camcontrol: Bump timeout to get size of drive 2024-10-28 16:43:25 -06:00
ccdconfig Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
clri Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
comcontrol manuals: Fix "unusual .Xr" warnings with a script 2024-10-15 17:18:14 -03:00
conscontrol Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
ddb Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
decryptcore Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
devd Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
devfs Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
devmatch devmatch: Catch truncated linker hints files 2024-10-23 22:12:45 +00:00
dhclient dhclient: Ignore vendor-identifying DHCP options defined in RFC 3925 2024-09-28 10:49:02 +02:00
dmesg Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
dump Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
dumpfs Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
dumpon Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
etherswitchcfg Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
fdisk fdisk: emit deprecation notice when run 2024-10-13 13:52:14 -04:00
ffsinfo Remove copyright strings ifdef'd out 2023-11-26 22:23:58 -07:00
fsck sbin: Automated cleanup of cdefs and other formatting 2023-11-26 22:23:59 -07:00
fsck_ffs Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
fsck_msdosfs fsck_msdosfs: do not call checksize() if the cluster is bad 2024-01-21 01:20:24 +02:00
fsdb sbin: Remove ancient SCCS tags. 2023-11-26 22:23:29 -07:00
fsirand
geom Update Makefile.depend files 2024-10-14 10:26:17 -07:00
ggate manuals: Fix "skipping end of block" .Ed errors 2024-10-03 14:49:23 -03:00
growfs growfs.8: align and alphabetize options 2024-09-06 12:34:32 -06:00
gvinum gvinum: Postpone removal to FreeBSD 15 2024-11-03 16:28:16 -05:00
hastctl Remove "All Rights Reserved" from FreeBSD Foundation copyrights 2024-07-30 12:16:36 -04:00
hastd Remove "All Rights Reserved" from FreeBSD Foundation copyrights 2024-07-30 12:16:36 -04:00
ifconfig ifconfig: Fix wrong indentation for the status of pfsync(4) 2024-10-20 22:06:33 +08:00
init manuals: Fix "missing end of block" errors 2024-10-07 15:40:58 -03:00
ipf manuals: Misc syntax fixes 2024-10-28 12:26:03 -03:00
ipfw Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
kldconfig sbin: Automated cleanup of cdefs and other formatting 2023-11-26 22:23:59 -07:00
kldload Add kenv .Xr in kldload(8) and loader.conf(5) 2023-12-20 21:17:38 -07:00
kldstat sbin: Automated cleanup of cdefs and other formatting 2023-11-26 22:23:59 -07:00
kldunload sbin: Automated cleanup of cdefs and other formatting 2023-11-26 22:23:59 -07:00
ldconfig Canonicalize the name of the FreeBSD Foundation 2024-10-24 05:03:07 +08:00
md5 Update Makefile.depend files 2024-10-14 10:26:17 -07:00
mdconfig Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
mdmfs Ensure that soft updates are not enabled by default when using mdmfs(8) 2024-10-03 08:06:28 -07:00
mknod Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
mksnap_ffs Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
mount manuals: Remove trailing spaces 2024-11-04 11:26:14 -04:00
mount_cd9660 Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
mount_fusefs Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
mount_msdosfs man filesystems: fix xrefs after move to section 4 2024-05-16 10:25:29 -06:00
mount_nfs Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
mount_nullfs Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
mount_udf Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
mount_unionfs Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
natd Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
newfs manuals: Fix "unusual .Xr" warnings with a script 2024-10-15 17:18:14 -03:00
newfs_msdos Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
nfsiod Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
nos-tun sbin/nos-tun: correct SIOCDIFADDR calls to use ifreq 2024-07-22 09:58:37 +00:00
nvmecontrol nvmecontrol: Refactor devlist implementation 2024-11-04 20:28:26 -05:00
pfctl pf: convert DIOCGETSRCNODES to netlink 2024-10-15 16:29:11 +02:00
pfilctl Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
pflogd Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
pflowctl Update Makefile.depend files 2024-10-14 10:26:17 -07:00
ping Revert "Reapply "sbin/ping: allow normal users to specify larger packets"" 2024-10-20 15:52:28 +00:00
quotacheck Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
rcorder rcorder(8): Fix grammar 2024-02-13 16:36:05 +08:00
reboot Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
recoverdisk recoverdisk: Consistently use item count as the first argument to calloc 2024-07-19 13:06:25 -04:00
resolvconf Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
restore Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
route Update Makefile.depend files 2024-10-14 10:26:17 -07:00
routed Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
rtsol
savecore Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
setkey setkey(8): document -hwif extension 2024-08-25 17:46:09 +03:00
shutdown shutdown: fix option sorting 2024-08-09 11:21:00 -05:00
swapon Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
sysctl sysctl: Add flags to filter jail prison and vnet variables 2024-10-29 19:26:11 +08:00
tests Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
tunefs Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
umount manuals: Fix "unusual .Xr" warnings with a script 2024-10-15 17:18:14 -03:00
veriexec Add examples to veriexec(8) 2024-08-01 14:59:52 -07:00
zfsbootcfg zfsbootcfg(8), zpool_influxdb(8): move to the zfs package 2024-04-22 23:04:03 -06:00
Makefile Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
Makefile.amd64 Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
Makefile.arm Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
Makefile.i386 Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
Makefile.inc Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
Makefile.powerpc64 Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00