]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Make `camcontrol modepage` to use 10 byte commands.
authormav <mav@FreeBSD.org>
Tue, 30 Jul 2019 20:58:56 +0000 (20:58 +0000)
committermav <mav@FreeBSD.org>
Tue, 30 Jul 2019 20:58:56 +0000 (20:58 +0000)
commit166d34c6ff989f3165f9e26bf5c9ce255ec7bc6d
tree36876ec575c9fd051cafef6da0980f77b73926d1
parentc71b8899d377a05ef7fc44b550039c027220c99a
Make `camcontrol modepage` to use 10 byte commands.

While old devices may not support 10 byte MODE SENSE/MODE SELECT commands,
new ones may not be able to report all mode pages with 6 byte commands.

This patch makes camcontrol by default start with 10 byte commands and
fall back to 6 byte on ILLEGAL REQUEST error, or 6 byte can be forced.

MFC after: 2 weeks
Sponsored by: iXsystems, Inc.
sbin/camcontrol/camcontrol.8
sbin/camcontrol/camcontrol.c
sbin/camcontrol/camcontrol.h
sbin/camcontrol/modeedit.c