HomeFreeBSD

MFC r350676, r350677: Make `camcontrol modepage` support block descriptors.

Description

MFC r350676, r350677: Make camcontrol modepage support block descriptors.

It allows to read and write block descriptors alike to mode page parameters.
It allows to change block size or short-stroke HDDs or overprovision SSDs.
Depenting on -P parameter the change can be either persistent or till reset.
In case of block size change device may need reformat after the setting.
In case of SSD overprovisioning format or sanitize may be needed to really
free the flash.

During implementation appeared that csio_encode_visit() can not handle
integers of more then 4 bytes, that makes 8-byte LBA handling awkward.
I had to split it into two 4-byte halves now.

Relnotes: yes
Sponsored by: iXsystems, Inc.

Details

Committed
mavAug 27 2019, 3:55 AM
Parents
rS351529: MFC r350457: Make `camcontrol modepage` to use 10 byte commands.
Branches
Unknown
Tags
Unknown