]> git.baikalelectronics.ru Git - kernel.git/commit
[libata] SCSI: improve FORMAT UNIT; minor code cleanups
authorJeff Garzik <jeff@garzik.org>
Fri, 21 Sep 2007 11:26:08 +0000 (07:26 -0400)
committerJeff Garzik <jeff@garzik.org>
Fri, 12 Oct 2007 18:55:40 +0000 (14:55 -0400)
commit0387ec34a1e5350c8deb42e7bc91800429288d40
treee5e2a72a467577a5a65be5886f96039c2f62a8af
parentbc164994e20b0eef808cf52ced9f9b0bf4174d7e
[libata] SCSI: improve FORMAT UNIT; minor code cleanups

* 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: Jeff Garzik <jgarzik@redhat.com>
drivers/ata/libata-scsi.c