summaryrefslogtreecommitdiffstats
path: root/release
diff options
context:
space:
mode:
authorken <ken@FreeBSD.org>2017-05-08 18:30:56 +0000
committerken <ken@FreeBSD.org>2017-05-08 18:30:56 +0000
commitd32ca9b85fe565ef1046959d6adc4c3864507267 (patch)
tree11a5a07f248b4eab0bdf043e89aca0f07888c2c2 /release
parent465c56ff57540e744cc77e5c3c596fe6c1d5fcb6 (diff)
downloadFreeBSD-src-d32ca9b85fe565ef1046959d6adc4c3864507267.zip
FreeBSD-src-d32ca9b85fe565ef1046959d6adc4c3864507267.tar.gz
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
Diffstat (limited to 'release')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud