Improve the format/unformat time of mkltfs on the LTO9 (or later) drive
Description
Currently, mkltfs uses FORMAT_MEDIUM command with format_type = 2h (format as default and then format to specified partition setting). But this setting triggers the media optimization procedure on the LTO9 (or later) drives.
Basically the media optimization procedure is done at the first mount of a tape. So the media optimization procedure would trigger twice if user tries to format a brand new medium.
In this PR, the code is changed to use format_type = 1h for format/unformat.
In addition to this, I introduce a new option --destructive. This option enforce to use format_type = 2h in format and format_type = 0h for unformat, origibal behavior.
Type of change
New feature (non-breaking change which adds functionality)
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
Improve the format/unformat time of
mkltfs
on the LTO9 (or later) driveDescription
Currently,
mkltfs
uses FORMAT_MEDIUM command with format_type = 2h (format as default and then format to specified partition setting). But this setting triggers the media optimization procedure on the LTO9 (or later) drives.Basically the media optimization procedure is done at the first mount of a tape. So the media optimization procedure would trigger twice if user tries to format a brand new medium.
In this PR, the code is changed to use format_type = 1h for format/unformat.
In addition to this, I introduce a new option
--destructive
. This option enforce to use format_type = 2h in format and format_type = 0h for unformat, origibal behavior.Type of change
Checklist: