diff options
| author | 2006-11-20 11:15:47 +0900 | |
|---|---|---|
| committer | 2006-12-03 17:56:23 +0900 | |
| commit | 6a36261e63770ab61422550b774fe949ccca5fa9 (patch) | |
| tree | 2bbd8271e01f933c6395fb1b836269ab939fca34 /include | |
| parent | [PATCH] libata: implement ATA_FLAG_SETXFER_POLLING and use it in pata_via, take #2 (diff) | |
[PATCH] libata: fix READ CAPACITY simulation
* READ CAPACITY (16) implementation fixed. Result was shifted by two
bytes. Carlos Pardo spotted this problem and submitted preliminary
patch. Capacity => 2TB is handled correctly now. (verifid w/ fake
capacity)
* Use dev->n_sectors instead of re-reading directly from ID data.
* Define and use ATA_SCSI_RBUF_SET() which considers rbuf length.
This should be done for all simulation functions. Userland can
issue any simulated command with arbitrary buffer length.
Signed-off-by: Tejun Heo <htejun@gmail.com>
Cc: Carlos Pardo <Carlos.Pardo@siliconimage.com>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions
