• Jeff Garzik's avatar
    [libata] SCSI: improve FORMAT UNIT; minor code cleanups · 00bd0202
    Jeff Garzik authored
    * SAT specifies that FORMAT UNIT should be translated into a series
      of READ and WRITE commands that zero the ATA device.  That is far too
      cumbersome to bother with.
    
      Since we don't actually format the device, the old behavior of
      always returning success was inaccurate.  Change FORMAT UNIT from
      returning success immediately (old behavior) to always returning
      an error (new behavior).
    
    * Add some comments around SYNCHRONIZE CACHE
    
    * Shuffle scsi command code around a bit, so that things are close
      to alphabetic order.
    Signed-off-by: default avatarJeff Garzik <jgarzik@redhat.com>
    00bd0202
libata-scsi.c 88.5 KB