freebsd-src/sbin/camcontrol
Kenneth D. Merry 3e87990d41 MFC r317854:
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.

Sponsored by:	Spectra Logic
2017-05-08 18:30:56 +00:00
..
attrib.c MFC r313893 2017-02-24 20:51:39 +00:00
camcontrol.8 MFC r317774, r317776 2017-05-08 17:02:03 +00:00
camcontrol.c MFC r317774, r317776 2017-05-08 17:02:03 +00:00
camcontrol.h MFC r313893 2017-02-24 20:51:39 +00:00
fwdownload.c MFC r313893 2017-02-24 20:51:39 +00:00
Makefile MFC, r284192: 2015-06-16 02:31:11 +00:00
modeedit.c MFC r317854: 2017-05-08 18:30:56 +00:00
persist.c MFC r313893 2017-02-24 20:51:39 +00:00
progress.c MFC, r286965: 2015-08-27 13:17:05 +00:00
progress.h Add progress.c and progress.h, missed in the previous commit to camcontrol. 2012-06-20 04:11:34 +00:00
util.c Fix build. 2011-11-25 07:11:02 +00:00