]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC r317854:
authorken <ken@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Mon, 8 May 2017 18:30:56 +0000 (18:30 +0000)
committerken <ken@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Mon, 8 May 2017 18:30:56 +0000 (18:30 +0000)
commit7447a8e6ad2b088c9ab65406ea22f8a0d811387b
tree11a5a07f248b4eab0bdf043e89aca0f07888c2c2
parentf91b389c41758007893e9828137ab19f74e0234c
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

git-svn-id: svn://svn.freebsd.org/base/stable/10@317966 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
sbin/camcontrol/modeedit.c