]> git.baikalelectronics.ru Git - kernel.git/commit
target: Implement Block Device Characteristics VPD page
authorRoland Dreier <roland@purestorage.com>
Tue, 5 Jul 2011 20:34:52 +0000 (13:34 -0700)
committerNicholas Bellinger <nab@linux-iscsi.org>
Fri, 22 Jul 2011 09:37:47 +0000 (09:37 +0000)
commit4e5c347040b5c9dde6f7c4e74e6d0b9ab9df1a1b
treee0a04f974153136eafe13793ee59be58c37c5ffc
parent7875e64e9aa476bb5f6acddc58b56128ce965ed6
target: Implement Block Device Characteristics VPD page

Implement page B1h, Block Device Characteristics, so that we can report
a medium rotation rate of 1 (non-rotating / solid state) if the
is_nonrot device attribute is set; we update the iblock backend to set
this attribute if the underlying Linux block device has its nonrot
flag set.

Signed-off-by: Roland Dreier <roland@purestorage.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/target/target_core_cdb.c
drivers/target/target_core_configfs.c
drivers/target/target_core_device.c
drivers/target/target_core_iblock.c
include/target/target_core_base.h
include/target/target_core_device.h
include/target/target_core_transport.h