target/sbc: Add LBPRZ attribute + control CDB emulation
authorJamie Pocas <jamie.pocas@emc.com>
Sun, 29 Nov 2015 22:44:57 +0000 (14:44 -0800)
committerNicholas Bellinger <nab@linux-iscsi.org>
Wed, 6 Jan 2016 21:39:55 +0000 (13:39 -0800)
commite6f41633cb79b55ead84b023c02035322c7827e7
tree342f55892f82d100f496c8ed73f3570c8d956842
parentef8f46b549c2e425513ed568f18c827a37c08727
target/sbc: Add LBPRZ attribute + control CDB emulation

This change sets the LBPRZ flag in EVPD page b2h and READ CAPACITY (16)
based on a new unmap_zeroes_data device attribute. This flag is set
automatically for iblock based on underlying block device queue's
discard_zeroes_data flag.

Signed-off-by: Jamie Pocas <jamie.pocas@emc.com>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/target/target_core_configfs.c
drivers/target/target_core_device.c
drivers/target/target_core_iblock.c
drivers/target/target_core_sbc.c
drivers/target/target_core_spc.c
include/target/target_core_base.h