1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-29 12:03:03 +00:00
freebsd/sbin
Kenneth D. Merry 5672fac935 Add support for reading MAM attributes to camcontrol(8) and libcam(3).
MAM is Medium Auxiliary Memory and is most commonly found as flash
chips on tapes.

This includes support for reading attributes and decoding most
known attributes, but does not yet include support for writing
attributes or reporting attributes in XML format.

libsbuf/Makefile:
	Add subr_prf.c for the new sbuf_hexdump() function.  This
	function is essentially the same function.

libsbuf/Symbol.map:
	Add a new shared library minor version, and include the
	sbuf_hexdump() function.

libsbuf/Version.def:
	Add version 1.4 of the libsbuf library.

libutil/hexdump.3:
	Document sbuf_hexdump() alongside hexdump(3), since it is
	essentially the same function.

camcontrol/Makefile:
	Add attrib.c.

camcontrol/attrib.c:
	Implementation of READ ATTRIBUTE support for camcontrol(8).

camcontrol/camcontrol.8:
	Document the new 'camcontrol attrib' subcommand.

camcontrol/camcontrol.c:
	Add the new 'camcontrol attrib' subcommand.

camcontrol/camcontrol.h:
	Add a function prototype for scsiattrib().

share/man/man9/sbuf.9:
	Document the existence of sbuf_hexdump() and point users to
	the hexdump(3) man page for more details.

sys/cam/scsi/scsi_all.c:
	Add a table of known attributes, text descriptions and
	handler functions.

	Add a new scsi_attrib_sbuf() function along with a number
	of other related functions that help decode attributes.

	scsi_attrib_ascii_sbuf() decodes ASCII format attributes.

	scsi_attrib_int_sbuf() decodes binary format attributes, and
	will pass them off to scsi_attrib_hexdump_sbuf() if they're
	bigger than 8 bytes.

	scsi_attrib_vendser_sbuf() decodes the vendor and drive
	serial number attribute.

	scsi_attrib_volcoh_sbuf() decodes the Volume Coherency
	Information attribute that LTFS writes out.

sys/cam/scsi/scsi_all.h:
	Add a number of attribute-related structure definitions and
	other defines.

	Add function prototypes for all of the functions added in
	scsi_all.c.

sys/kern/subr_prf.c:
	Add a new function, sbuf_hexdump().  This is the same as
	the existing hexdump(9) function, except that it puts the
	result in an sbuf.

	This also changes subr_prf.c so that it can be compiled in
	userland for includsion in libsbuf.

	We should work to change this so that the kernel hexdump
	implementation is a wrapper around sbuf_hexdump() with a
	statically allocated sbuf with a drain.  That will require
	a drain function that goes to the kernel printf() buffer
	that can take a non-NUL terminated string as input.
	That is because an sbuf isn't NUL-terminated until it is
	finished, and we don't want to finish it while we're still
	using it.

	We should also work to consolidate the userland hexdump and
	kernel hexdump implemenatations, which are currently
	separate.  This would also mean making applications that
	currently link in libutil link in libsbuf.

sys/sys/sbuf.h:
	Add the prototype for sbuf_hexdump(), and add another copy
	of the hexdump flag values if they aren't already defined.

	Ideally the flags should be defined in one place but the
	implemenation makes it difficult to do properly.  (See
	above.)

Sponsored by:	Spectra Logic Corporation
MFC after:	1 week
2015-06-09 21:39:38 +00:00
..
adjkerntz
atm Fix 2 rendering issue with mandoc 2015-04-26 10:18:44 +00:00
badsect Remove useless WARNS 2015-06-06 13:49:54 +00:00
bsdlabel mdoc: remove EOL whitespace. 2014-12-29 13:50:59 +00:00
camcontrol Add support for reading MAM attributes to camcontrol(8) and libcam(3). 2015-06-09 21:39:38 +00:00
casperd Approved, oprócz użycie RESTORE_ERRNO() do ustawiania errno. 2015-05-02 17:45:52 +00:00
ccdconfig Convert sbin/ to LIBADD 2014-11-25 11:23:12 +00:00
clri
comcontrol
conscontrol Add references to vt(4) to further man-pages. 2014-09-01 16:25:08 +00:00
ddb Convert sbin/ to LIBADD 2014-11-25 11:23:12 +00:00
devd Document RCTL events in devd.conf(5). 2015-05-13 12:02:51 +00:00
devfs
dhclient Add CAP_FCNTL to the lease file capsicum rights, and limit to 2015-05-28 05:38:07 +00:00
dmesg dmesg: accommodate message buffer growth between the sysctl calls 2015-04-20 20:07:39 +00:00
dump Fix a bug which could break extended attributes in a dump output. 2014-09-10 22:37:20 +00:00
dumpfs Print leading zeroes of UFS2 fs_id like we do for UFS1. 2015-05-26 18:27:38 +00:00
dumpon Revert r156046. We support setting dumpdev via loader tunable again. 2014-10-08 12:19:48 +00:00
etherswitchcfg
fdisk Convert sbin/ to LIBADD 2014-11-25 11:23:12 +00:00
fdisk_pc98 Convert sbin/ to LIBADD 2014-11-25 11:23:12 +00:00
ffsinfo Adjust printf format specifiers for dev_t and ino_t in user space. 2014-12-17 07:10:48 +00:00
fsck Recommit r274750. 2014-11-21 01:43:55 +00:00
fsck_ffs Remove old ioctl use and support, once and for all. 2015-01-06 05:28:37 +00:00
fsck_msdosfs Make UEFI booting of 4Kn disks work: 2014-10-30 15:52:01 +00:00
fsdb Convert sbin/ to LIBADD 2014-11-25 11:23:12 +00:00
fsirand Remove old ioctl use and support, once and for all. 2015-01-06 05:28:37 +00:00
gbde Convert sbin/ to LIBADD 2014-11-25 11:23:12 +00:00
geom Fix error in gmountver(8) man page 2015-05-18 19:37:55 +00:00
ggate - ggatel.8 currently doesn't mention the 'rescue' command and 2015-04-09 20:58:38 +00:00
growfs Fix growfs(8) build with debug enabled (make -DGFSDBG). 2015-04-24 12:48:48 +00:00
gvinum Convert sbin/ to LIBADD 2014-11-25 11:23:12 +00:00
hastctl Convert sbin/ to LIBADD 2014-11-25 11:23:12 +00:00
hastd mdoc: paragraph improvements. 2015-01-04 12:49:24 +00:00
ifconfig * Update SFF-8024 Identifier constants. 2015-05-16 13:11:35 +00:00
init Convert sbin/ to LIBADD 2014-11-25 11:23:12 +00:00
ipf Convert sbin/ to LIBADD 2014-11-25 11:23:12 +00:00
ipfw Bring back support for checking tables via "ipfw -n". 2015-05-19 18:29:13 +00:00
iscontrol mdoc: remove EOL whitespace. 2014-12-29 13:50:59 +00:00
kldconfig
kldload
kldstat
kldunload
ldconfig
md5 Constify. 2015-03-31 19:12:13 +00:00
mdconfig Convert sbin/mdconfig/tests from prove format tests to ATF format tests 2014-11-27 06:04:00 +00:00
mdmfs
mknod
mksnap_ffs Change file permissions for some setuid executables so they are "o+r". 2014-08-21 19:04:15 +00:00
mount Remove some oldnfs remnants. 2015-04-18 16:08:06 +00:00
mount_cd9660 Convert sbin/ to LIBADD 2014-11-25 11:23:12 +00:00
mount_fusefs Make the "automounted" flag work for FUSE filesystems. 2015-03-01 18:26:26 +00:00
mount_msdosfs Convert sbin/ to LIBADD 2014-11-25 11:23:12 +00:00
mount_nfs Remove some oldnfs remnants. 2015-04-18 16:08:06 +00:00
mount_nullfs
mount_udf Convert sbin/ to LIBADD 2014-11-25 11:23:12 +00:00
mount_unionfs
nandfs Convert sbin/ to LIBADD 2014-11-25 11:23:12 +00:00
natd Convert sbin/ to LIBADD 2014-11-25 11:23:12 +00:00
newfs Remove old ioctl use and support, once and for all. 2015-01-06 05:28:37 +00:00
newfs_msdos Update documented OEM string in newfs_msdos(8). 2015-04-09 19:07:01 +00:00
newfs_nandfs Convert sbin/ to LIBADD 2014-11-25 11:23:12 +00:00
nfsiod
nos-tun
nvmecontrol
pfctl Move ALTQ from contrib to net/altq. The ALTQ code is for many years 2015-04-16 20:22:40 +00:00
pflogd Convert sbin/ to LIBADD 2014-11-25 11:23:12 +00:00
ping Remove "capability mode sandbox enabled" messages. 2015-05-04 21:44:51 +00:00
ping6 Add ability to not specify a zone identifier twice, when both source and 2014-12-16 14:59:20 +00:00
quotacheck Convert sbin/ to LIBADD 2014-11-25 11:23:12 +00:00
rcorder - Revert r277670 (#include order is required for fparseln) 2015-01-25 03:02:29 +00:00
reboot Document that nextboot(8) doesn't work as expected with ZFS 2015-03-17 20:15:49 +00:00
recoverdisk
resolvconf MFV r225523, r282431: 2015-05-04 21:07:20 +00:00
restore restore: Preserve timestamps to the nanosecond. 2015-03-14 13:45:43 +00:00
route Eliminate incorrect IPv6 mask guessing: 2015-01-16 11:17:30 +00:00
routed Belatedly commit the patch for SA-14:21 to head. It was not committed to 2015-01-03 01:52:06 +00:00
rtsol
savecore Convert savecore to libxo. The 'verbose' paths still use printf since they're 2015-03-22 17:29:14 +00:00
sconfig
setkey Convert sbin/ to LIBADD 2014-11-25 11:23:12 +00:00
shutdown sbin/shutdown: Support time units as in 'shutdown -r +5sec' 2014-12-16 08:29:02 +00:00
spppcontrol
sunlabel Convert sbin/ to LIBADD 2014-11-25 11:23:12 +00:00
swapon Convert sbin/ to LIBADD 2014-11-25 11:23:12 +00:00
sysctl add support for specifying an initial buffer size when fetching a 2015-02-13 01:20:37 +00:00
tests
tunefs Convert sbin/ to LIBADD 2014-11-25 11:23:12 +00:00
umount Cross-reference autounmountd(8) from umount(8). 2014-11-22 16:46:00 +00:00
Makefile Remove duplicate MK_ISCSI block and sort the conditional blocks so this error 2015-02-02 10:31:35 +00:00
Makefile.amd64
Makefile.arm
Makefile.i386
Makefile.inc
Makefile.mips
Makefile.pc98
Makefile.sparc64