1999-08-28 00:22:10 +00:00
|
|
|
# $FreeBSD$
|
2001-08-29 07:56:44 +00:00
|
|
|
|
2005-01-06 11:12:43 +00:00
|
|
|
# The include file <bsd.libnames.mk> define library names.
|
|
|
|
# Other include files (e.g. bsd.prog.mk, bsd.lib.mk) include this
|
1997-01-12 16:12:40 +00:00
|
|
|
# file where necessary.
|
|
|
|
|
2002-04-17 13:49:29 +00:00
|
|
|
.if !target(__<bsd.init.mk>__)
|
|
|
|
.error bsd.libnames.mk cannot be included directly.
|
|
|
|
.endif
|
|
|
|
|
2014-08-06 22:17:26 +00:00
|
|
|
.sinclude <src.libnames.mk>
|
|
|
|
|
2015-11-25 19:49:55 +00:00
|
|
|
# Src directory locations are also defined in src.libnames.mk.
|
|
|
|
|
1998-05-31 11:32:38 +00:00
|
|
|
LIBCRT0?= ${DESTDIR}${LIBDIR}/crt0.o
|
1996-09-05 18:05:08 +00:00
|
|
|
|
2015-12-01 18:09:40 +00:00
|
|
|
LIB80211?= ${DESTDIR}${LIBDIR}/lib80211.a
|
1998-05-31 11:32:38 +00:00
|
|
|
LIBALIAS?= ${DESTDIR}${LIBDIR}/libalias.a
|
2004-02-13 01:14:38 +00:00
|
|
|
LIBARCHIVE?= ${DESTDIR}${LIBDIR}/libarchive.a
|
2004-01-31 02:51:41 +00:00
|
|
|
LIBASN1?= ${DESTDIR}${LIBDIR}/libasn1.a
|
1998-09-17 09:35:02 +00:00
|
|
|
LIBATM?= ${DESTDIR}${LIBDIR}/libatm.a
|
Merge OpenBSM alpha 4 from OpenBSM vendor branch to head, both
contrib/openbsm (svn merge) and src/sys/{bsm,security/audit} (manual
merge). Add libauditd build parts and add to auditd's linkage;
force libbsm to build before libauditd.
OpenBSM history for imported revisions below for reference.
MFC after: 1 month
Sponsored by: Apple Inc.
Obtained from: TrustedBSD Project
OpenBSM 1.1 alpha 4
- With the addition of BSM error number mapping, we also need to map the
local error number passed to audit_submit(3) to a BSM error number,
rather than have the caller perform that conversion.
- Reallocate user audit events to avoid collisions with Solaris; adopt a
more formal allocation scheme, and add some events allocated in Solaris
that will be of immediate use on other platforms.
- Add an event for Calife.
- Add au_strerror(3), which allows generating strings for BSM errors
directly, rather than requiring applications to map to the local error
space, which might not be able to entirely represent the BSM error
number space.
- Major auditd rewrite for launchd(8) support. Add libauditd library
that is shared between launchd and auditd.
- Add AUDIT_TRIGGER_INITIALIZE trigger (sent via 'audit -i') for
(re)starting auditing under launchd(8) on Mac OS X.
- Add 'current' symlink to active audit trail.
- Add crash recovery of previous audit trail file when detected on audit
startup that it has not been properly terminated.
- Add the event AUE_audit_recovery to indicated when an audit trail file
has been recovered from not being properly terminated. This event is
stored in the new audit trail file and includes the path of recovered
audit trail file.
- Mac OS X and FreeBSD dependent code in auditd.c is separated into
auditd_darwin.c and auditd_fbsd.c files.
- Add an event for the posix_spawn(2) and fsgetpath(2) Mac OS X system
calls.
- For Mac OS X, we use ASL(3) instead of syslog(3) for logging.
- Add support for NOTICE level logging.
OpenBSM 1.1 alpha 3
- Add two new functions, au_bsm_to_errno() and au_errno_to_bsm(), to map
between BSM error numbers (largely the Solaris definitions) and local
errno(2) values for 32-bit and 64-bit return tokens. This is required
as operating systems don't agree on some of the values of more recent
error numbers.
- Fix a bug how au_to_exec_args(3) and au_to_exec_env(3) calculates the
total size for the token. This buge.
- Deprecated Darwin constants, such as TRAILER_PAD_MAGIC, removed.
2008-12-31 11:12:24 +00:00
|
|
|
LIBAUDITD?= ${DESTDIR}${LIBDIR}/libauditd.a
|
2007-04-06 10:33:06 +00:00
|
|
|
LIBAVL?= ${DESTDIR}${LIBDIR}/libavl.a
|
2004-09-24 22:10:34 +00:00
|
|
|
LIBBEGEMOT?= ${DESTDIR}${LIBDIR}/libbegemot.a
|
2016-06-02 19:06:04 +00:00
|
|
|
LIBBLACKLIST?= ${DESTDIR}${LIBDIR}/libblacklist.a
|
2004-01-31 03:09:10 +00:00
|
|
|
LIBBLUETOOTH?= ${DESTDIR}${LIBDIR}/libbluetooth.a
|
2003-07-02 23:54:37 +00:00
|
|
|
LIBBSDXML?= ${DESTDIR}${LIBDIR}/libbsdxml.a
|
2006-02-02 10:04:32 +00:00
|
|
|
LIBBSM?= ${DESTDIR}${LIBDIR}/libbsm.a
|
2003-11-10 09:07:30 +00:00
|
|
|
LIBBSNMP?= ${DESTDIR}${LIBDIR}/libbsnmp.a
|
2001-07-09 22:00:32 +00:00
|
|
|
LIBBZ2?= ${DESTDIR}${LIBDIR}/libbz2.a
|
1998-05-31 11:32:38 +00:00
|
|
|
LIBC?= ${DESTDIR}${LIBDIR}/libc.a
|
|
|
|
LIBCALENDAR?= ${DESTDIR}${LIBDIR}/libcalendar.a
|
1998-09-15 10:27:20 +00:00
|
|
|
LIBCAM?= ${DESTDIR}${LIBDIR}/libcam.a
|
2016-03-03 06:22:51 +00:00
|
|
|
LIBCAP_DNS?= ${DESTDIR}${LIBDIR}/libcap_dns.a
|
|
|
|
LIBCAP_GRP?= ${DESTDIR}${LIBDIR}/libcap_grp.a
|
|
|
|
LIBCAP_PWD?= ${DESTDIR}${LIBDIR}/libcap_pwd.a
|
|
|
|
LIBCAP_RANDOM?= ${DESTDIR}${LIBDIR}/libcap_random.a
|
|
|
|
LIBCAP_SYSCTL?= ${DESTDIR}${LIBDIR}/libcap_sysctl.a
|
2013-12-02 08:21:28 +00:00
|
|
|
LIBCASPER?= ${DESTDIR}${LIBDIR}/libcasper.a
|
1998-05-31 11:32:38 +00:00
|
|
|
LIBCOMPAT?= ${DESTDIR}${LIBDIR}/libcompat.a
|
2014-01-18 14:47:34 +00:00
|
|
|
LIBCOMPILER_RT?=${DESTDIR}${LIBDIR}/libcompiler_rt.a
|
2015-12-10 00:07:05 +00:00
|
|
|
LIBCOM_ERR?= ${DESTDIR}${LIBDIR}/libcom_err.a
|
|
|
|
LIBCPLUSPLUS?= ${DESTDIR}${LIBDIR}/libc++.a
|
1998-05-31 11:32:38 +00:00
|
|
|
LIBCRYPT?= ${DESTDIR}${LIBDIR}/libcrypt.a
|
2004-01-31 02:51:41 +00:00
|
|
|
LIBCRYPTO?= ${DESTDIR}${LIBDIR}/libcrypto.a
|
2008-05-22 01:14:43 +00:00
|
|
|
LIBCTF?= ${DESTDIR}${LIBDIR}/libctf.a
|
1998-05-31 11:32:38 +00:00
|
|
|
LIBCURSES?= ${DESTDIR}${LIBDIR}/libcurses.a
|
2015-12-02 01:24:31 +00:00
|
|
|
LIBCUSE?= ${DESTDIR}${LIBDIR}/libcuse.a
|
2015-12-10 00:07:11 +00:00
|
|
|
LIBCXGB4?= ${DESTDIR}${LIBDIR}/libcxgb4.a
|
2015-12-10 00:07:05 +00:00
|
|
|
LIBCXXRT?= ${DESTDIR}${LIBDIR}/libcxxrt.a
|
|
|
|
LIBC_PIC?= ${DESTDIR}${LIBDIR}/libc_pic.a
|
2015-02-06 16:09:01 +00:00
|
|
|
LIBDEVCTL?= ${DESTDIR}${LIBDIR}/libdevctl.a
|
zfsd(8), the ZFS fault management daemon
Add zfsd, which deals with hard drive faults in ZFS pools. It manages
hotspares and replements in drive slots that publish physical paths.
cddl/usr.sbin/zfsd
Add zfsd(8) and its unit tests
cddl/usr.sbin/Makefile
Add zfsd to the build
lib/libdevdctl
A C++ library that helps devd clients process events
lib/Makefile
share/mk/bsd.libnames.mk
share/mk/src.libnames.mk
Add libdevdctl to the build. It's a private library, unusable by
out-of-tree software.
etc/defaults/rc.conf
By default, set zfsd_enable to NO
etc/mtree/BSD.include.dist
Add a directory for libdevdctl's include files
etc/mtree/BSD.tests.dist
Add a directory for zfsd's unit tests
etc/mtree/BSD.var.dist
Add /var/db/zfsd/cases, where zfsd stores case files while it's shut
down.
etc/rc.d/Makefile
etc/rc.d/zfsd
Add zfsd's rc script
sys/cddl/contrib/opensolaris/uts/common/fs/zfs/vdev.c
Fix the resource.fs.zfs.statechange message. It had a number of
problems:
It was only being emitted on a transition to the HEALTHY state.
That made it impossible for zfsd to take actions based on drives
getting sicker.
It compared the new state to vdev_prevstate, which is the state that
the vdev had the last time it was opened. That doesn't make sense,
because a vdev can change state multiple times without being
reopened.
vdev_set_state contains logic that will change the device's new
state based on various conditions. However, the statechange event
was being posted _before_ that logic took effect. Now it's being
posted after.
Submitted by: gibbs, asomers, mav, allanjude
Reviewed by: mav, delphij
Relnotes: yes
Sponsored by: Spectra Logic Corp, iX Systems
Differential Revision: https://reviews.freebsd.org/D6564
2016-05-28 17:43:40 +00:00
|
|
|
LIBDEVDCTL?= ${DESTDIR}${LIBDIR}/libdevdctl.a
|
Fixed some bitrot:
- the changes that renamed libf2c to libg2c had not reached here
- there were no definitions for LIBDEVINFO, LIBMENU, LIBPANEL, LIBTINFO,
LIBUSB or LIBVGL. LIBUSB was used without it being defined, and
LIBDEVINFO and LIBVGL should have been used.
- the definitions of LIBDESCRYPT, LIBGCC_PIC, LIBGPLUSPLUS, LIBKZHEAD,
LIBKZTAIL, LIBSCRYPT and LIBSCSI were garbage.
Fixed some old bugs:
- LIBC_PIC and LIBCOM_ERR were assigned to using "=" instead of "?=".
- the definition of LIBC_R was disordered.
- LIBFORM was misspelled LIBFORMS (but not actually used).
2001-05-12 14:21:14 +00:00
|
|
|
LIBDEVINFO?= ${DESTDIR}${LIBDIR}/libdevinfo.a
|
1998-09-15 10:27:20 +00:00
|
|
|
LIBDEVSTAT?= ${DESTDIR}${LIBDIR}/libdevstat.a
|
1998-05-31 11:32:38 +00:00
|
|
|
LIBDIALOG?= ${DESTDIR}${LIBDIR}/libdialog.a
|
2004-09-21 19:01:48 +00:00
|
|
|
LIBDNS?= ${DESTDIR}${LIBDIR}/libdns.a
|
2014-11-04 23:46:01 +00:00
|
|
|
LIBDPV?= ${DESTDIR}${LIBDIR}/libdpv.a
|
2008-05-22 01:14:43 +00:00
|
|
|
LIBDTRACE?= ${DESTDIR}${LIBDIR}/libdtrace.a
|
|
|
|
LIBDWARF?= ${DESTDIR}${LIBDIR}/libdwarf.a
|
1998-05-31 11:32:38 +00:00
|
|
|
LIBEDIT?= ${DESTDIR}${LIBDIR}/libedit.a
|
2016-10-11 22:30:41 +00:00
|
|
|
LIBEFIVAR?= ${DESTDIR}${LIBDIR}/libefivar.a
|
2008-02-21 16:29:31 +00:00
|
|
|
LIBELF?= ${DESTDIR}${LIBDIR}/libelf.a
|
2013-09-03 15:22:04 +00:00
|
|
|
LIBEXECINFO?= ${DESTDIR}${LIBDIR}/libexecinfo.a
|
2001-03-20 20:21:08 +00:00
|
|
|
LIBFETCH?= ${DESTDIR}${LIBDIR}/libfetch.a
|
2014-11-04 23:46:01 +00:00
|
|
|
LIBFIGPAR?= ${DESTDIR}${LIBDIR}/libfigpar.a
|
1996-09-05 18:05:08 +00:00
|
|
|
LIBFL?= "don't use LIBFL, use LIBL"
|
Fixed some bitrot:
- the changes that renamed libf2c to libg2c had not reached here
- there were no definitions for LIBDEVINFO, LIBMENU, LIBPANEL, LIBTINFO,
LIBUSB or LIBVGL. LIBUSB was used without it being defined, and
LIBDEVINFO and LIBVGL should have been used.
- the definitions of LIBDESCRYPT, LIBGCC_PIC, LIBGPLUSPLUS, LIBKZHEAD,
LIBKZTAIL, LIBSCRYPT and LIBSCSI were garbage.
Fixed some old bugs:
- LIBC_PIC and LIBCOM_ERR were assigned to using "=" instead of "?=".
- the definition of LIBC_R was disordered.
- LIBFORM was misspelled LIBFORMS (but not actually used).
2001-05-12 14:21:14 +00:00
|
|
|
LIBFORM?= ${DESTDIR}${LIBDIR}/libform.a
|
|
|
|
LIBG2C?= ${DESTDIR}${LIBDIR}/libg2c.a
|
2003-03-21 14:31:51 +00:00
|
|
|
LIBGEOM?= ${DESTDIR}${LIBDIR}/libgeom.a
|
1998-05-31 11:32:38 +00:00
|
|
|
LIBGNUREGEX?= ${DESTDIR}${LIBDIR}/libgnuregex.a
|
2015-12-10 00:07:05 +00:00
|
|
|
LIBGPIO?= ${DESTDIR}${LIBDIR}/libgpio.a
|
2004-01-31 02:51:41 +00:00
|
|
|
LIBGSSAPI?= ${DESTDIR}${LIBDIR}/libgssapi.a
|
2008-05-07 13:53:12 +00:00
|
|
|
LIBGSSAPI_KRB5?= ${DESTDIR}${LIBDIR}/libgssapi_krb5.a
|
2004-01-31 02:51:41 +00:00
|
|
|
LIBHDB?= ${DESTDIR}${LIBDIR}/libhdb.a
|
2012-03-22 08:48:42 +00:00
|
|
|
LIBHEIMBASE?= ${DESTDIR}${LIBDIR}/libheimbase.a
|
2008-05-07 13:53:12 +00:00
|
|
|
LIBHEIMNTLM?= ${DESTDIR}${LIBDIR}/libheimntlm.a
|
2012-03-22 08:48:42 +00:00
|
|
|
LIBHEIMSQLITE?= ${DESTDIR}${LIBDIR}/libheimsqlite.a
|
2008-05-07 13:53:12 +00:00
|
|
|
LIBHX509?= ${DESTDIR}${LIBDIR}/libhx509.a
|
2015-12-10 00:07:11 +00:00
|
|
|
LIBIBCM?= ${DESTDIR}${LIBDIR}/libibcm.a
|
|
|
|
LIBIBCOMMON?= ${DESTDIR}${LIBDIR}/libibcommon.a
|
|
|
|
LIBIBMAD?= ${DESTDIR}${LIBDIR}/libibmad.a
|
|
|
|
LIBIBSDP?= ${DESTDIR}${LIBDIR}/libibsdp.a
|
|
|
|
LIBIBUMAD?= ${DESTDIR}${LIBDIR}/libibumad.a
|
|
|
|
LIBIBVERBS?= ${DESTDIR}${LIBDIR}/libibverbs.a
|
2016-09-02 18:33:08 +00:00
|
|
|
LIBIFCONFIG?= ${DESTDIR}${LIBDIR}/libifconfig.a
|
2000-02-27 18:41:27 +00:00
|
|
|
LIBIPSEC?= ${DESTDIR}${LIBDIR}/libipsec.a
|
2009-06-24 18:18:35 +00:00
|
|
|
LIBJAIL?= ${DESTDIR}${LIBDIR}/libjail.a
|
2004-01-31 02:51:41 +00:00
|
|
|
LIBKADM5CLNT?= ${DESTDIR}${LIBDIR}/libkadm5clnt.a
|
|
|
|
LIBKADM5SRV?= ${DESTDIR}${LIBDIR}/libkadm5srv.a
|
|
|
|
LIBKAFS5?= ${DESTDIR}${LIBDIR}/libkafs5.a
|
2012-03-22 08:48:42 +00:00
|
|
|
LIBKDC?= ${DESTDIR}${LIBDIR}/libkdc.a
|
2002-10-04 16:25:08 +00:00
|
|
|
LIBKEYCAP?= ${DESTDIR}${LIBDIR}/libkeycap.a
|
2003-09-26 20:26:25 +00:00
|
|
|
LIBKICONV?= ${DESTDIR}${LIBDIR}/libkiconv.a
|
2004-01-31 02:51:41 +00:00
|
|
|
LIBKRB5?= ${DESTDIR}${LIBDIR}/libkrb5.a
|
1998-05-31 11:32:38 +00:00
|
|
|
LIBKVM?= ${DESTDIR}${LIBDIR}/libkvm.a
|
|
|
|
LIBL?= ${DESTDIR}${LIBDIR}/libl.a
|
2000-09-16 04:35:51 +00:00
|
|
|
LIBLN?= "don't use LIBLN, use LIBL"
|
2010-05-10 06:59:50 +00:00
|
|
|
LIBLZMA?= ${DESTDIR}${LIBDIR}/liblzma.a
|
1998-05-31 11:32:38 +00:00
|
|
|
LIBM?= ${DESTDIR}${LIBDIR}/libm.a
|
2004-08-09 08:48:28 +00:00
|
|
|
LIBMAGIC?= ${DESTDIR}${LIBDIR}/libmagic.a
|
1998-05-31 11:32:38 +00:00
|
|
|
LIBMD?= ${DESTDIR}${LIBDIR}/libmd.a
|
2005-07-17 18:38:40 +00:00
|
|
|
LIBMEMSTAT?= ${DESTDIR}${LIBDIR}/libmemstat.a
|
Fixed some bitrot:
- the changes that renamed libf2c to libg2c had not reached here
- there were no definitions for LIBDEVINFO, LIBMENU, LIBPANEL, LIBTINFO,
LIBUSB or LIBVGL. LIBUSB was used without it being defined, and
LIBDEVINFO and LIBVGL should have been used.
- the definitions of LIBDESCRYPT, LIBGCC_PIC, LIBGPLUSPLUS, LIBKZHEAD,
LIBKZTAIL, LIBSCRYPT and LIBSCSI were garbage.
Fixed some old bugs:
- LIBC_PIC and LIBCOM_ERR were assigned to using "=" instead of "?=".
- the definition of LIBC_R was disordered.
- LIBFORM was misspelled LIBFORMS (but not actually used).
2001-05-12 14:21:14 +00:00
|
|
|
LIBMENU?= ${DESTDIR}${LIBDIR}/libmenu.a
|
2002-02-17 22:01:40 +00:00
|
|
|
LIBMILTER?= ${DESTDIR}${LIBDIR}/libmilter.a
|
2015-12-10 00:07:11 +00:00
|
|
|
LIBMLX4?= ${DESTDIR}${LIBDIR}/libmlx4.a
|
1998-05-31 11:32:38 +00:00
|
|
|
LIBMP?= ${DESTDIR}${LIBDIR}/libmp.a
|
Significant upgrades to sa(4) and mt(1).
The primary focus of these changes is to modernize FreeBSD's
tape infrastructure so that we can take advantage of some of the
features of modern tape drives and allow support for LTFS.
Significant changes and new features include:
o sa(4) driver status and parameter information is now exported via an
XML structure. This will allow for changes and improvements later
on that will not break userland applications. The old MTIOCGET
status ioctl remains, so applications using the existing interface
will not break.
o 'mt status' now reports drive-reported tape position information
as well as the previously available calculated tape position
information. These numbers will be different at times, because
the drive-reported block numbers are relative to BOP (Beginning
of Partition), but the block numbers calculated previously via
sa(4) (and still provided) are relative to the last filemark.
Both numbers are now provided. 'mt status' now also shows the
drive INQUIRY information, serial number and any position flags
(BOP, EOT, etc.) provided with the tape position information.
'mt status -v' adds information on the maximum possible I/O size,
and the underlying values used to calculate it.
o The extra sa(4) /dev entries (/dev/saN.[0-3]) have been removed.
The extra devices were originally added as place holders for
density-specific device nodes. Some OSes (NetBSD, NetApp's OnTap
and Solaris) have had device nodes that, when you write to them,
will automatically select a given density for particular tape drives.
This is a convenient way of switching densities, but it was never
implemented in FreeBSD. Only the device nodes were there, and that
sometimes confused users.
For modern tape devices, the density is generally not selectable
(e.g. with LTO) or defaults to the highest availble density when
the tape is rewritten from BOT (e.g. TS11X0). So, for most users,
density selection won't be necessary. If they do need to select
the density, it is easy enough to use 'mt density' to change it.
o Protection information is now supported. This is either a
Reed-Solomon CRC or CRC32 that is included at the end of each block
read and written. On write, the tape drive verifies the CRC, and
on read, the tape drive provides a CRC for the userland application
to verify.
o New, extensible tape driver parameter get/set interface.
o Density reporting information. For drives that support it,
'mt getdensity' will show detailed information on what formats the
tape drive supports, and what formats the tape drive supports.
o Some mt(1) functionality moved into a new mt(3) library so that
external applications can reuse the code.
o The new mt(3) library includes helper routines to aid in parsing
the XML output of the sa(4) driver, and build a tree of driver
metadata.
o Support for the MTLOAD (load a tape in the drive) and MTWEOFI
(write filemark immediate) ioctls needed by IBM's LTFS
implementation.
o Improve device departure behavior for the sa(4) driver. The previous
implementation led to hangs when the device was open.
o This has been tested on the following types of drives:
IBM TS1150
IBM TS1140
IBM LTO-6
IBM LTO-5
HP LTO-2
Seagate DDS-4
Quantum DLT-4000
Exabyte 8505
Sony DDS-2
contrib/groff/tmac/doc-syms,
share/mk/bsd.libnames.mk,
lib/Makefile,
Add libmt.
lib/libmt/Makefile,
lib/libmt/mt.3,
lib/libmt/mtlib.c,
lib/libmt/mtlib.h,
New mt(3) library that contains functions moved from mt(1) and
new functions needed to interact with the updated sa(4) driver.
This includes XML parser helper functions that application writers
can use when writing code to query tape parameters.
rescue/rescue/Makefile:
Add -lmt to CRUNCH_LIBS.
src/share/man/man4/mtio.4
Clarify this man page a bit, and since it contains what is
essentially the mtio.h header file, add new ioctls and structure
definitions from mtio.h.
src/share/man/man4/sa.4
Update BUGS and maintainer section.
sys/cam/scsi/scsi_all.c,
sys/cam/scsi/scsi_all.h:
Add SCSI SECURITY PROTOCOL IN/OUT CDB definitions and CDB building
functions.
sys/cam/scsi/scsi_sa.c
sys/cam/scsi/scsi_sa.h
Many tape driver changes, largely outlined above.
Increase the sa(4) driver read/write timeout from 4 to 32
minutes. This is based on the recommended values for IBM LTO
5/6 drives. This may also avoid timeouts for other tape
hardware that can take a long time to do retries and error
recovery. Longer term, a better way to handle this is to ask
the drive for recommended timeout values using the REPORT
SUPPORTED OPCODES command. Modern IBM and Oracle tape drives
at least support that command, and it would allow for more
accurate timeout values.
Add XML status generation. This is done with a series of
macros to eliminate as much duplicate code as possible. The
new XML-based status values are reported through the new
MTIOCEXTGET ioctl.
Add XML driver parameter reporting, using the new MTIOCPARAMGET
ioctl.
Add a new driver parameter setting interface, using the new
MTIOCPARAMSET and MTIOCSETLIST ioctls.
Add a new MTIOCRBLIM ioctl to get block limits information.
Add CCB/CDB building routines scsi_locate_16, scsi_locate_10,
and scsi_read_position_10().
scsi_locate_10 implements the LOCATE command, as does the
existing scsi_set_position() command. It just supports
additional arguments and features. If/when we figure out a
good way to provide backward compatibility for older
applications using the old function API, we can just revamp
scsi_set_position(). The same goes for
scsi_read_position_10() and the existing scsi_read_position()
function.
Revamp sasetpos() to take the new mtlocate structure as an
argument. It now will use either scsi_locate_10() or
scsi_locate_16(), depending upon the arguments the user
supplies. As before, once we change position we don't have a
clear idea of what the current logical position of the tape
drive is.
For tape drives that support long form position data, we
read the current position and store that for later reporting
after changing the position. This should help applications
like Bacula speed tape access under FreeBSD once they are
modified to support the new ioctls.
Add a new quirk, SA_QUIRK_NO_LONG_POS, that is set for all
drives that report SCSI-2 or older, as well as drives that
report an Illegal Request type error for READ POSITION with
the long format. So we should automatically detect drives
that don't support the long form and stop asking for it after
an initial try.
Add a partition number to the sa(4) softc.
Improve device departure handling. The previous implementation
led to hangs when the device was open.
If an application had the sa(4) driver open, and attempted to
close it after it went away, the cam_periph_release() call in
saclose() would cause the periph to get destroyed because that
was the last reference to it. Because destroy_dev() was
called from the sa(4) driver's cleanup routine (sacleanup()),
and would block waiting for the close to happen, a deadlock
would result.
So instead of calling destroy_dev() from the cleanup routine,
call destroy_dev_sched_cb() from saoninvalidate() and wait for
the callback.
Acquire a reference for devfs in saregister(), and release it
in the new sadevgonecb() routine when all devfs devices for
the particular sa(4) driver instance are gone.
Add a new function, sasetupdev(), to centralize setting
per-instance devfs device parameters instead of repeating the
code in saregister().
Add an open count to the softc, so we know how many
peripheral driver references are a result of open
sessions.
Add the D_TRACKCLOSE flag to the cdevsw flags so
that we get a 1:1 mapping of open to close calls
instead of a N:1 mapping.
This should be a no-op for everything except the
control device, since we don't allow more than one
open on non-control devices.
However, since we do allow multiple opens on the
control device, the combination of the open count
and the D_TRACKCLOSE flag should result in an
accurate peripheral driver reference count, and an
accurate open count.
The accurate open count allows us to release all
peripheral driver references that are the result
of open contexts once we get the callback from devfs.
sys/sys/mtio.h:
Add a number of new mt(4) ioctls and the requisite data
structures. None of the existing interfaces been removed
or changed.
This includes definitions for the following new ioctls:
MTIOCRBLIM /* get block limits */
MTIOCEXTLOCATE /* seek to position */
MTIOCEXTGET /* get tape status */
MTIOCPARAMGET /* get tape params */
MTIOCPARAMSET /* set tape params */
MTIOCSETLIST /* set N params */
usr.bin/mt/Makefile:
mt(1) now depends on libmt, libsbuf and libbsdxml.
usr.bin/mt/mt.1:
Document new mt(1) features and subcommands.
usr.bin/mt/mt.c:
Implement support for mt(1) subcommands that need to
use getopt(3) for their arguments.
Implement a new 'mt status' command to replace the old
'mt status' command. The old status command has been
renamed 'ostatus'.
The new status function uses the MTIOCEXTGET ioctl, and
therefore parses the XML data to determine drive status.
The -x argument to 'mt status' allows the user to dump out
the raw XML reported by the kernel.
The new status display is mostly the same as the old status
display, except that it doesn't print the redundant density
mode information, and it does print the current partition
number and position flags.
Add a new command, 'mt locate', that will supersede the
old 'mt setspos' and 'mt sethpos' commands. 'mt locate'
implements all of the functionality of the MTIOCEXTLOCATE
ioctl, and allows the user to change the logical position
of the tape drive in a number of ways. (Partition,
block number, file number, set mark number, end of data.)
The immediate bit and the explicit address bits are
implemented, but not documented in the man page.
Add a new 'mt weofi' command to use the new MTWEOFI ioctl.
This allows the user to ask the drive to write a filemark
without waiting around for the operation to complete.
Add a new 'mt getdensity' command that gets the XML-based
tape drive density report from the sa(4) driver and displays
it. This uses the SCSI REPORT DENSITY SUPPORT command
to get comprehensive information from the tape drive about
what formats it is able to read and write.
Add a new 'mt protect' command that allows getting and setting
tape drive protection information. The protection information
is a CRC tacked on to the end of every read/write from and to
the tape drive.
Sponsored by: Spectra Logic
MFC after: 1 month
2015-02-23 21:59:30 +00:00
|
|
|
LIBMT?= ${DESTDIR}${LIBDIR}/libmt.a
|
2015-12-10 00:07:11 +00:00
|
|
|
LIBMTHCA?= ${DESTDIR}${LIBDIR}/libmthca.a
|
2015-12-02 05:23:12 +00:00
|
|
|
LIBNANDFS?= ${DESTDIR}${LIBDIR}/libnandfs.a
|
1998-05-31 11:32:38 +00:00
|
|
|
LIBNCURSES?= ${DESTDIR}${LIBDIR}/libncurses.a
|
2007-03-09 12:11:58 +00:00
|
|
|
LIBNCURSESW?= ${DESTDIR}${LIBDIR}/libncursesw.a
|
1999-10-21 09:06:11 +00:00
|
|
|
LIBNETGRAPH?= ${DESTDIR}${LIBDIR}/libnetgraph.a
|
2003-10-27 13:51:28 +00:00
|
|
|
LIBNGATM?= ${DESTDIR}${LIBDIR}/libngatm.a
|
2013-11-12 19:39:14 +00:00
|
|
|
LIBNV?= ${DESTDIR}${LIBDIR}/libnv.a
|
2007-04-06 01:45:23 +00:00
|
|
|
LIBNVPAIR?= ${DESTDIR}${LIBDIR}/libnvpair.a
|
2015-12-10 00:07:11 +00:00
|
|
|
LIBOPENSM?= ${DESTDIR}${LIBDIR}/libopensm.a
|
1998-05-31 11:32:38 +00:00
|
|
|
LIBOPIE?= ${DESTDIR}${LIBDIR}/libopie.a
|
2015-12-10 00:07:11 +00:00
|
|
|
LIBOSMCOMP?= ${DESTDIR}${LIBDIR}/libosmcomp.a
|
|
|
|
LIBOSMVENDOR?= ${DESTDIR}${LIBDIR}/libosmvendor.a
|
2000-04-30 01:33:37 +00:00
|
|
|
LIBPAM?= ${DESTDIR}${LIBDIR}/libpam.a
|
Fixed some bitrot:
- the changes that renamed libf2c to libg2c had not reached here
- there were no definitions for LIBDEVINFO, LIBMENU, LIBPANEL, LIBTINFO,
LIBUSB or LIBVGL. LIBUSB was used without it being defined, and
LIBDEVINFO and LIBVGL should have been used.
- the definitions of LIBDESCRYPT, LIBGCC_PIC, LIBGPLUSPLUS, LIBKZHEAD,
LIBKZTAIL, LIBSCRYPT and LIBSCSI were garbage.
Fixed some old bugs:
- LIBC_PIC and LIBCOM_ERR were assigned to using "=" instead of "?=".
- the definition of LIBC_R was disordered.
- LIBFORM was misspelled LIBFORMS (but not actually used).
2001-05-12 14:21:14 +00:00
|
|
|
LIBPANEL?= ${DESTDIR}${LIBDIR}/libpanel.a
|
2015-12-02 01:24:31 +00:00
|
|
|
LIBPANELW?= ${DESTDIR}${LIBDIR}/libpanelw.a
|
1998-05-31 11:32:38 +00:00
|
|
|
LIBPCAP?= ${DESTDIR}${LIBDIR}/libpcap.a
|
2013-12-01 09:41:06 +00:00
|
|
|
LIBPJDLOG?= ${DESTDIR}${LIBDIR}/libpjdlog.a
|
2005-04-19 04:01:25 +00:00
|
|
|
LIBPMC?= ${DESTDIR}${LIBDIR}/libpmc.a
|
2008-05-22 01:14:43 +00:00
|
|
|
LIBPROC?= ${DESTDIR}${LIBDIR}/libproc.a
|
2012-05-19 04:57:37 +00:00
|
|
|
LIBPROCSTAT?= ${DESTDIR}${LIBDIR}/libprocstat.a
|
2007-10-01 18:15:11 +00:00
|
|
|
LIBPTHREAD?= ${DESTDIR}${LIBDIR}/libpthread.a
|
1998-11-18 01:53:56 +00:00
|
|
|
LIBRADIUS?= ${DESTDIR}${LIBDIR}/libradius.a
|
2015-12-10 00:07:11 +00:00
|
|
|
LIBRDMACM?= ${DESTDIR}${LIBDIR}/librdmacm.a
|
2004-01-31 02:51:41 +00:00
|
|
|
LIBROKEN?= ${DESTDIR}${LIBDIR}/libroken.a
|
2010-02-25 14:42:26 +00:00
|
|
|
LIBRPCSEC_GSS?= ${DESTDIR}${LIBDIR}/librpcsec_gss.a
|
2015-12-10 00:07:05 +00:00
|
|
|
LIBRPCSVC?= ${DESTDIR}${LIBDIR}/librpcsvc.a
|
2010-02-25 14:42:26 +00:00
|
|
|
LIBRT?= ${DESTDIR}${LIBDIR}/librt.a
|
2010-07-31 14:32:54 +00:00
|
|
|
LIBRTLD_DB?= ${DESTDIR}${LIBDIR}/librtld_db.a
|
Rewrite of the CAM error recovery code.
Some of the major changes include:
- The SCSI error handling portion of cam_periph_error() has
been broken out into a number of subfunctions to better
modularize the code that handles the hierarchy of SCSI errors.
As a result, the code is now much easier to read.
- String handling and error printing has been significantly
revamped. We now use sbufs to do string formatting instead
of using printfs (for the kernel) and snprintf/strncat (for
userland) as before.
There is a new catchall error printing routine,
cam_error_print() and its string-based counterpart,
cam_error_string() that allow the kernel and userland
applications to pass in a CCB and have errors printed out
properly, whether or not they're SCSI errors. Among other
things, this helped eliminate a fair amount of duplicate code
in camcontrol.
We now print out more information than before, including
the CAM status and SCSI status and the error recovery action
taken to remedy the problem.
- sbufs are now available in userland, via libsbuf. This
change was necessary since most of the error printing code
is shared between libcam and the kernel.
- A new transfer settings interface is included in this checkin.
This code is #ifdef'ed out, and is primarily intended to aid
discussion with HBA driver authors on the final form the
interface should take. There is example code in the ahc(4)
driver that implements the HBA driver side of the new
interface. The new transfer settings code won't be enabled
until we're ready to switch all HBA drivers over to the new
interface.
src/Makefile.inc1,
lib/Makefile: Add libsbuf. It must be built before libcam,
since libcam uses sbuf routines.
libcam/Makefile: libcam now depends on libsbuf.
libsbuf/Makefile: Add a makefile for libsbuf. This pulls in the
sbuf sources from sys/kern.
bsd.libnames.mk: Add LIBSBUF.
camcontrol/Makefile: Add -lsbuf. Since camcontrol is statically
linked, we can't depend on the dynamic linker
to pull in libsbuf.
camcontrol.c: Use cam_error_print() instead of checking for
CAM_SCSI_STATUS_ERROR on every failed CCB.
sbuf.9: Change the prototypes for sbuf_cat() and
sbuf_cpy() so that the source string is now a
const char *. This is more in line wth the
standard system string functions, and helps
eliminate warnings when dealing with a const
source buffer.
Fix a typo.
cam.c: Add description strings for the various CAM
error status values, as well as routines to
look up those strings.
Add new cam_error_string() and
cam_error_print() routines for userland and
the kernel.
cam.h: Add a new CAM flag, CAM_RETRY_SELTO.
Add enumerated types for the various options
available with cam_error_print() and
cam_error_string().
cam_ccb.h: Add new transfer negotiation structures/types.
Change inq_len in the ccb_getdev structure to
be "reserved". This field has never been
filled in, and will be removed when we next
bump the CAM version.
cam_debug.h: Fix typo.
cam_periph.c: Modularize cam_periph_error(). The SCSI error
handling part of cam_periph_error() is now
in camperiphscsistatuserror() and
camperiphscsisenseerror().
In cam_periph_lock(), increase the reference
count on the periph while we wait for our lock
attempt to succeed so that the periph won't go
away while we're sleeping.
cam_xpt.c: Add new transfer negotiation code. (ifdefed
out)
Add a new function, xpt_path_string(). This
is a string/sbuf analog to xpt_print_path().
scsi_all.c: Revamp string handing and error printing code.
We now use sbufs for much of the string
formatting code. More of that code is shared
between userland the kernel.
scsi_all.h: Get rid of SS_TURSTART, it wasn't terribly
useful in the first place.
Add a new error action, SS_REQSENSE. (Send a
request sense and then retry the command.)
This is useful when the controller hasn't
performed autosense for some reason.
Change the default actions around a bit.
scsi_cd.c,
scsi_da.c,
scsi_pt.c,
scsi_ses.c: SF_RETRY_SELTO -> CAM_RETRY_SELTO. Selection
timeouts shouldn't be covered by a sense flag.
scsi_pass.[ch]: SF_RETRY_SELTO -> CAM_RETRY_SELTO.
Get rid of the last vestiges of a read/write
interface.
libkern/bsearch.c,
sys/libkern.h,
conf/files: Add bsearch.c, which is needed for some of the
new table lookup routines.
aic7xxx_freebsd.c: Define AHC_NEW_TRAN_SETTINGS if
CAM_NEW_TRAN_CODE is defined.
sbuf.h,
subr_sbuf.c: Add the appropriate #ifdefs so sbufs can
compile and run in userland.
Change sbuf_printf() to use vsnprintf()
instead of kvprintf(), which is only available
in the kernel.
Change the source string for sbuf_cpy() and
sbuf_cat() to be a const char *.
Add __BEGIN_DECLS and __END_DECLS around
function prototypes since they're now exported
to userland.
kdump/mkioctls: Include stdio.h before cam.h since cam.h now
includes a function with a FILE * argument.
Submitted by: gibbs (mostly)
Reviewed by: jdp, marcel (libsbuf makefile changes)
Reviewed by: des (sbuf changes)
Reviewed by: ken
2001-03-27 05:45:52 +00:00
|
|
|
LIBSBUF?= ${DESTDIR}${LIBDIR}/libsbuf.a
|
2004-01-31 03:09:10 +00:00
|
|
|
LIBSDP?= ${DESTDIR}${LIBDIR}/libsdp.a
|
2013-06-28 21:00:08 +00:00
|
|
|
LIBSMB?= ${DESTDIR}${LIBDIR}/libsmb.a
|
2004-01-31 02:51:41 +00:00
|
|
|
LIBSSL?= ${DESTDIR}${LIBDIR}/libssl.a
|
2014-08-25 06:10:03 +00:00
|
|
|
LIBSSP_NONSHARED?= ${DESTDIR}${LIBDIR}/libssp_nonshared.a
|
2004-02-06 21:58:32 +00:00
|
|
|
LIBSTAND?= ${DESTDIR}${LIBDIR}/libstand.a
|
1998-05-31 11:32:38 +00:00
|
|
|
LIBSTDCPLUSPLUS?= ${DESTDIR}${LIBDIR}/libstdc++.a
|
2015-12-02 01:24:31 +00:00
|
|
|
LIBSTDTHREADS?= ${DESTDIR}${LIBDIR}/libstdthreads.a
|
2015-12-15 00:05:07 +00:00
|
|
|
LIBSYSDECODE?= ${DESTDIR}${LIBDIR}/libsysdecode.a
|
1998-11-18 01:53:56 +00:00
|
|
|
LIBTACPLUS?= ${DESTDIR}${LIBDIR}/libtacplus.a
|
1998-05-31 11:32:38 +00:00
|
|
|
LIBTERMCAP?= ${DESTDIR}${LIBDIR}/libtermcap.a
|
2014-08-26 09:12:41 +00:00
|
|
|
LIBTERMCAPW?= ${DESTDIR}${LIBDIR}/libtermcapw.a
|
1996-09-05 18:05:08 +00:00
|
|
|
LIBTERMLIB?= "don't use LIBTERMLIB, use LIBTERMCAP"
|
Fixed some bitrot:
- the changes that renamed libf2c to libg2c had not reached here
- there were no definitions for LIBDEVINFO, LIBMENU, LIBPANEL, LIBTINFO,
LIBUSB or LIBVGL. LIBUSB was used without it being defined, and
LIBDEVINFO and LIBVGL should have been used.
- the definitions of LIBDESCRYPT, LIBGCC_PIC, LIBGPLUSPLUS, LIBKZHEAD,
LIBKZTAIL, LIBSCRYPT and LIBSCSI were garbage.
Fixed some old bugs:
- LIBC_PIC and LIBCOM_ERR were assigned to using "=" instead of "?=".
- the definition of LIBC_R was disordered.
- LIBFORM was misspelled LIBFORMS (but not actually used).
2001-05-12 14:21:14 +00:00
|
|
|
LIBTINFO?= "don't use LIBTINFO, use LIBNCURSES"
|
2003-01-23 08:15:05 +00:00
|
|
|
LIBUFS?= ${DESTDIR}${LIBDIR}/libufs.a
|
2002-08-02 13:37:57 +00:00
|
|
|
LIBUGIDFW?= ${DESTDIR}${LIBDIR}/libugidfw.a
|
2015-12-10 00:07:05 +00:00
|
|
|
LIBULOG?= ${DESTDIR}${LIBDIR}/libulog.a
|
2007-04-06 01:45:23 +00:00
|
|
|
LIBUMEM?= ${DESTDIR}${LIBDIR}/libumem.a
|
2010-01-09 18:55:29 +00:00
|
|
|
LIBUSB?= ${DESTDIR}${LIBDIR}/libusb.a
|
2015-12-10 00:07:05 +00:00
|
|
|
LIBUSBHID?= ${DESTDIR}${LIBDIR}/libusbhid.a
|
2002-10-04 16:25:08 +00:00
|
|
|
LIBUTIL?= ${DESTDIR}${LIBDIR}/libutil.a
|
2007-04-06 01:45:23 +00:00
|
|
|
LIBUUTIL?= ${DESTDIR}${LIBDIR}/libuutil.a
|
Fixed some bitrot:
- the changes that renamed libf2c to libg2c had not reached here
- there were no definitions for LIBDEVINFO, LIBMENU, LIBPANEL, LIBTINFO,
LIBUSB or LIBVGL. LIBUSB was used without it being defined, and
LIBDEVINFO and LIBVGL should have been used.
- the definitions of LIBDESCRYPT, LIBGCC_PIC, LIBGPLUSPLUS, LIBKZHEAD,
LIBKZTAIL, LIBSCRYPT and LIBSCSI were garbage.
Fixed some old bugs:
- LIBC_PIC and LIBCOM_ERR were assigned to using "=" instead of "?=".
- the definition of LIBC_R was disordered.
- LIBFORM was misspelled LIBFORMS (but not actually used).
2001-05-12 14:21:14 +00:00
|
|
|
LIBVGL?= ${DESTDIR}${LIBDIR}/libvgl.a
|
2011-05-13 04:54:01 +00:00
|
|
|
LIBVMMAPI?= ${DESTDIR}${LIBDIR}/libvmmapi.a
|
2012-03-22 08:48:42 +00:00
|
|
|
LIBWIND?= ${DESTDIR}${LIBDIR}/libwind.a
|
1999-03-14 20:45:05 +00:00
|
|
|
LIBWRAP?= ${DESTDIR}${LIBDIR}/libwrap.a
|
2015-02-18 17:28:55 +00:00
|
|
|
LIBXO?= ${DESTDIR}${LIBDIR}/libxo.a
|
2015-12-10 00:07:05 +00:00
|
|
|
LIBXPG4?= ${DESTDIR}${LIBDIR}/libxpg4.a
|
1998-05-31 11:32:38 +00:00
|
|
|
LIBY?= ${DESTDIR}${LIBDIR}/liby.a
|
2002-04-13 07:23:25 +00:00
|
|
|
LIBYPCLNT?= ${DESTDIR}${LIBDIR}/libypclnt.a
|
1998-05-31 11:32:38 +00:00
|
|
|
LIBZ?= ${DESTDIR}${LIBDIR}/libz.a
|
2007-04-06 01:45:23 +00:00
|
|
|
LIBZFS?= ${DESTDIR}${LIBDIR}/libzfs.a
|
2013-03-05 08:09:53 +00:00
|
|
|
LIBZFS_CORE?= ${DESTDIR}${LIBDIR}/libzfs_core.a
|
2007-04-06 01:45:23 +00:00
|
|
|
LIBZPOOL?= ${DESTDIR}${LIBDIR}/libzpool.a
|
2014-11-22 12:48:09 +00:00
|
|
|
|
|
|
|
# enforce the 2 -lpthread and -lc to always be the last in that exact order
|
|
|
|
.if defined(LDADD)
|
|
|
|
.if ${LDADD:M-lpthread}
|
|
|
|
LDADD:= ${LDADD:N-lpthread} -lpthread
|
|
|
|
.endif
|
|
|
|
.if ${LDADD:M-lc}
|
|
|
|
LDADD:= ${LDADD:N-lc} -lc
|
|
|
|
.endif
|
|
|
|
.endif
|
2015-12-01 22:19:17 +00:00
|
|
|
|
|
|
|
# Only do this for src builds.
|
|
|
|
.if defined(SRCTOP)
|
2015-12-02 01:24:31 +00:00
|
|
|
.if defined(_LIBRARIES) && defined(LIB) && \
|
|
|
|
${_LIBRARIES:M${LIB}} != ""
|
|
|
|
.if !defined(LIB${LIB:tu})
|
|
|
|
.error ${.CURDIR}: Missing value for LIB${LIB:tu} in ${_this:T}. Likely should be: LIB${LIB:tu}?= $${DESTDIR}$${LIBDIR}/lib${LIB}.a
|
|
|
|
.endif
|
|
|
|
.endif
|
|
|
|
|
2015-12-01 22:19:17 +00:00
|
|
|
# Derive LIB*SRCDIR from LIB*DIR
|
|
|
|
.for lib in ${_LIBRARIES}
|
|
|
|
LIB${lib:tu}SRCDIR?= ${SRCTOP}/${LIB${lib:tu}DIR:S,^${OBJTOP}/,,}
|
|
|
|
.endfor
|
|
|
|
.endif
|