]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit54f91943d075eca18ac5a10404210fed14ef9c25
tree342f55892f82d100f496c8ed73f3570c8d956842
parent529a6495166830075b2df7d47fba6448397598ac
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