On 8/7/24 7:17 PM, Yihang Li wrote:
If formatting a suspended disk (such as formatting with different DIF type), the SYNC CACHE command will fail because the disk is in the formatting process, which will cause the runtime_status of the disk to error and it is difficult for user to recover it. To solve the issue, retry the command until format command is finished.
How is the format command submitted to the SCSI disk? Is that command perhaps submitted as a SCSI pass-through command (SG_IO ioctl)? Should the sd driver perhaps be unbound while the format command is in progress? Thanks, Bart.