Logical Block Protection
- Query Logical Block Protection
This ioctl queries whether the drive can support this feature, what lbp method is used, and where the protection information is included.
The lbp_capable field indicates that the drive has the logical block protection (LBP) capability or not. The lbp_method field is shown if LBP is enabled and what the protection method is. The LBP information length is shown in the lbp_info_length field. The fields of lbp_w, lbp_r, and rbdp present that the protection information is included in write, read, or recover buffer data. The rbdp field is not supported for the LTO drive.
- Set Logical Block Protection
This ioctl enables or disables Logical Block Protection, sets up what method is used, and where the protection information is included.
The lbp_capable field is ignored in this ioctl by the tape driver. If the lbp_method field is 0 (
LBP_DISABLE
), all other fields are ignored and not used. When the lbp_method field is set to a valid non-zero method, all other fields are used to specify the setup for LBP.