target: Remove hack to make READ CAPACITY(10) lie if thin provisioning is enabled
authorRoland Dreier <roland@purestorage.com>
Wed, 14 Mar 2012 17:12:03 +0000 (10:12 -0700)
committerNicholas Bellinger <nab@linux-iscsi.org>
Fri, 16 Mar 2012 02:14:48 +0000 (19:14 -0700)
commit1f6fa8f8179dd66345d59f067f2a48a86095c499
tree9ab51aafe013436934b5683d911c846cc655ffdf
parent9765b1f327951e643a97f43924d1fbeb4e90ffba
target: Remove hack to make READ CAPACITY(10) lie if thin provisioning is enabled

Remove the hack that has READ CAPACITY(10) return 0xFFFFFFFF as the
number of sectors when thin provisioning is enabled.  This is supposed
to trigger the initiator to use READ CAPACITY(16) in this case so that
it finds out about thin provisioning.  But an initiator that cares about
thin provisioning is going to ask anyway, and an initiator that doesn't
know about READ CAPACITY(16) is going to get the wrong capacity.  So
just have READ CAPACITY(10) return the size it's supposed to.

Signed-off-by: Roland Dreier <roland@purestorage.com>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/target/target_core_cdb.c