From: Roland Dreier <roland@xxxxxxxxxxxxxxx> Hi Nic, Here is a series of fixes for INQUIRY handling. The main things are using a temp buffer to avoid all the buggy checking of cmd->data_length in the INQUIRY emulation, and adding a separate fabric_max_sectors attribute to fix up the maximum transfer length returned in our block limits VPD page. The other two patches are pretty minor fixlets. These patches are against Linus's latest tree, let me know if you want me to merge them up to lio-core-2.6.git. Roland Dreier (4): target: Fix up handling of short INQUIRY buffers target: Set peripheral device type consistently in IQUIRY response target: Don't set WBUS16 or SYNC bits in INQUIRY response target: Untangle front-end and back-end meanings of max_sectors attribute drivers/target/target_core_cdb.c | 172 +++++++++----------------------- drivers/target/target_core_configfs.c | 4 + drivers/target/target_core_device.c | 65 +++++++++++- drivers/target/target_core_internal.h | 1 + drivers/target/target_core_transport.c | 8 ++ include/target/target_core_base.h | 5 +- 6 files changed, 123 insertions(+), 132 deletions(-) -- 1.7.9 -- To unsubscribe from this list: send the line "unsubscribe target-devel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html