diff options
author | ken <ken@FreeBSD.org> | 2012-04-06 22:23:13 +0000 |
---|---|---|
committer | ken <ken@FreeBSD.org> | 2012-04-06 22:23:13 +0000 |
commit | f5030474fb1fea82b4ba545206f119d4905496a9 (patch) | |
tree | a57c93d4adac2e4fff43f5eff99bc22ae107e9c2 /sys/cam/ctl/ctl_error.c | |
parent | ea2a8fbda52185e0617e71fb627826dfe9a850d8 (diff) | |
download | FreeBSD-src-f5030474fb1fea82b4ba545206f119d4905496a9.zip FreeBSD-src-f5030474fb1fea82b4ba545206f119d4905496a9.tar.gz |
Change the SCSI INQUIRY peripheral qualifier that CTL reports for LUNs
that don't exist.
Anecdotal evidence indicates that it is better to return 011b (bad LUN)
than 001b (LUN offline). However, this change also gives the user a
sysctl/tunable, kern.cam.ctl.inquiry_pq_no_lun, to override the change
and return to the previous behavior. (The previous behavior was to
return 001b, or LUN offline.)
ctl.c: Change the default inquiry peripheral qualifier to 011b,
and add a sysctl and tunable to allow the user to change
it back to 001b if needed.
Don't insert a Copan copyright statement in the inquiry
data. The copyright statements on the files are
sufficient.
ctl_private.h: Add sysctl variable context to the CTL softc.
ctl_cmd_table.c,
ctl_frontend_internal.c,
ctl_frontend.c,
ctl_backend.c,
ctl_error.c: Include sys/sysctl.h.
MFC after: 3 days
Diffstat (limited to 'sys/cam/ctl/ctl_error.c')
-rw-r--r-- | sys/cam/ctl/ctl_error.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/cam/ctl/ctl_error.c b/sys/cam/ctl/ctl_error.c index bd9321f..4425b2d 100644 --- a/sys/cam/ctl/ctl_error.c +++ b/sys/cam/ctl/ctl_error.c @@ -49,6 +49,7 @@ __FBSDID("$FreeBSD$"); #include <sys/condvar.h> #include <sys/stddef.h> #include <sys/ctype.h> +#include <sys/sysctl.h> #include <machine/stdarg.h> #include <cam/scsi/scsi_all.h> |