From: Tejun Heo Date: Mon, 20 Nov 2006 02:15:47 +0000 (+0900) Subject: [PATCH] libata: fix READ CAPACITY simulation X-Git-Tag: v2.6.20-rc1~34^2~40^2~9^2~14 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6a36261e63770ab61422550b774fe949ccca5fa9;p=pandora-kernel.git [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 Cc: Carlos Pardo --- Reading git-diff-tree failed