freebsd-dev/sbin/camcontrol
Kenneth D. Merry 1e773aeb99 When editing a mode page on a tape drive, do not clear the device
specific parameter.

Tape drives include write protect (WP), Buffered Mode and Speed
settings in the device-specific parameter.  Clearing this
parameter on a mode select can have the effect of turning off
write protect or buffered mode, or changing the speed setting of
the tape drive.

Disks report DPO/FUA support via the device specific parameter
for MODE SENSE, but the bit is reserved for MODE SELECT.  So we
clear this for disks (and other non-tape devices) to avoid
potential errors from the target device.

sbin/camcontrol/modeedit.c:
	Clear the device-specific parameter in the mode page
	header if we're not operating on a tape drive.

MFC after:	3 days
Sponsored by:	Spectra Logic
2017-05-05 21:29:28 +00:00
..
attrib.c Add task attribute support to camcontrol(8). 2017-02-17 20:04:22 +00:00
camcontrol.8 Bump the camcontrol(8) man page date. 2017-05-03 21:04:32 +00:00
camcontrol.c Add the ability to rescan or reset devices specified by peripheral 2017-05-03 20:57:52 +00:00
camcontrol.h Add task attribute support to camcontrol(8). 2017-02-17 20:04:22 +00:00
epc.c Misc Coverity fixes in camcontrol(8) 2017-01-20 21:21:41 +00:00
fwdownload.c Fix memory leaks in camcontrol 2017-05-03 19:56:55 +00:00
Makefile Add SCSI REPORT TIMESTAMP and SET TIMESTAMP support. 2016-12-01 22:20:27 +00:00
Makefile.depend
modeedit.c When editing a mode page on a tape drive, do not clear the device 2017-05-05 21:29:28 +00:00
persist.c Add task attribute support to camcontrol(8). 2017-02-17 20:04:22 +00:00
progress.c
progress.h
timestamp.c Fix camcontrol timestamp setting and update the man page. 2017-05-01 18:53:47 +00:00
util.c
zone.c Add task attribute support to camcontrol(8). 2017-02-17 20:04:22 +00:00