aboutsummaryrefslogtreecommitdiffstats
path: root/include/target/target_core_transport.h
diff options
context:
space:
mode:
authorRoland Dreier <roland@purestorage.com>2011-07-05 13:34:52 -0700
committerNicholas Bellinger <nab@linux-iscsi.org>2011-07-22 09:37:47 +0000
commite22a7f075226c51f3f71b922e9eeb4f99fac1475 (patch)
treee0a04f974153136eafe13793ee59be58c37c5ffc /include/target/target_core_transport.h
parenttarget: Fix reporting of supported VPD pages (diff)
downloadlinux-dev-e22a7f075226c51f3f71b922e9eeb4f99fac1475.tar.xz
linux-dev-e22a7f075226c51f3f71b922e9eeb4f99fac1475.zip
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>
Diffstat (limited to '')
-rw-r--r--include/target/target_core_transport.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/target/target_core_transport.h b/include/target/target_core_transport.h
index 2aae76412377..b27ce1af698b 100644
--- a/include/target/target_core_transport.h
+++ b/include/target/target_core_transport.h
@@ -101,6 +101,8 @@
#define DA_ENFORCE_PR_ISIDS 1
#define DA_STATUS_MAX_SECTORS_MIN 16
#define DA_STATUS_MAX_SECTORS_MAX 8192
+/* By default don't report non-rotating (solid state) medium */
+#define DA_IS_NONROT 0
#define SE_MODE_PAGE_BUF 512