]> CyberLeo.Net >> Repos - FreeBSD/stable/8.git/commit
MFC: r226179
authormarius <marius@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Fri, 30 Mar 2012 23:48:15 +0000 (23:48 +0000)
committermarius <marius@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Fri, 30 Mar 2012 23:48:15 +0000 (23:48 +0000)
commiteee077c3cb148f4d4792c951dc9bb38fd0508ebb
treebea13a8474f44b68185ae7f8ca4fa41867f64e00
parentdfa871b5c04a4e317641dcb3cca5dcb38846e39e
MFC: r226179

Add a "kern.features.ata_cam" sysctl in the kernel when the ATA_CAM kernel
option is defined.  This sysctl can be queried by feature_present(3).

Query for this feature in /sbin/atacontrol and /usr/sbin/burncd.
If these utilities detect that ATA_CAM is enabled, then these utilities
will error out.  These utilities are compatible with the old ATA
driver, but are incomptible with the new ATA_CAM driver.  By erroring out,
we give end-users an idea as to what remedies to use, and reduce the need for them
to file PR's.  For atacontrol, camcontrol must be used instead,
and for burncd, alternative utilties from the ports collection must be used
such as sysutils/cdrtools.

In future, maybe someone can re-write burncd to work with ATA_CAM,
but at least for now, we give a somewhat useful error message to end users.

PR: 160979
Reviewed by: jh, Arnaud Lacombe <lacombar at gmail dot com>
Reported by: Joe Barbish <fbsd8 at a1poweruser dot com>

git-svn-id: svn://svn.freebsd.org/base/stable/8@233714 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
sbin/atacontrol/atacontrol.8
sbin/atacontrol/atacontrol.c
sys/dev/ata/ata-all.c
usr.sbin/burncd/burncd.8
usr.sbin/burncd/burncd.c