This change checks generation of LTO drive and use CRC32C if the drive
is LTO-7 or LTO-8. The x86_64 CPU has H/W accelerator for CRC32C. So
faster process and lower CPU power can be expected.
Fix of issue #194
Description
Currently LTFS uses Reed-Solomon for logical block protection on LTO
drive. But there is no H/W accelerator for Reed-Solomon. So more CPU
power is needed than CRC32C when -o scsi_lbprotect=on on LTO drive.
Fixes #194
Type of change
Bug fix (non-breaking change which fixes an issue)
Checklist:
[X] My code follows the style guidelines of this project
[X] I have performed a self-review of my own code
[X] I have commented my code, particularly in hard-to-understand areas
[X] I have made corresponding changes to the documentation
[X] My changes generate no new warnings
[X] I have confirmed my fix is effective or that my feature works
Summary of changes
This change checks generation of LTO drive and use CRC32C if the drive is LTO-7 or LTO-8. The x86_64 CPU has H/W accelerator for CRC32C. So faster process and lower CPU power can be expected.
Description
Currently LTFS uses Reed-Solomon for logical block protection on LTO drive. But there is no H/W accelerator for Reed-Solomon. So more CPU power is needed than CRC32C when
-o scsi_lbprotect=on
on LTO drive.Fixes #194
Type of change
Checklist: