aboutsummaryrefslogtreecommitdiff
path: root/sys/cam/ctl/ctl_backend.h
diff options
context:
space:
mode:
authorAlexander Motin <mav@FreeBSD.org>2014-04-06 10:13:14 +0000
committerAlexander Motin <mav@FreeBSD.org>2014-04-06 10:13:14 +0000
commitf601272298e9c46d42a344883a803fcc876beb4d (patch)
tree60593292e82d81059196947d8348761f54ae2172 /sys/cam/ctl/ctl_backend.h
parent34c7b21956d4a69fd2eff7d624dfecffa9b6af2a (diff)
downloadsrc-f601272298e9c46d42a344883a803fcc876beb4d.tar.gz
src-f601272298e9c46d42a344883a803fcc876beb4d.zip
Report stripe size and offset of the backing device in READ CAPACITY (16)
as physical sector size and offset. MFC after: 2 weeks
Notes
Notes: svn path=/head/; revision=264191
Diffstat (limited to 'sys/cam/ctl/ctl_backend.h')
-rw-r--r--sys/cam/ctl/ctl_backend.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/sys/cam/ctl/ctl_backend.h b/sys/cam/ctl/ctl_backend.h
index 56fb8a59482b..c64492d52094 100644
--- a/sys/cam/ctl/ctl_backend.h
+++ b/sys/cam/ctl/ctl_backend.h
@@ -137,6 +137,10 @@ typedef void (*be_lun_config_t)(void *be_lun,
* this should be 512. In theory CTL should be able to handle other block
* sizes. Host application software may not deal with it very well, though.
*
+ * pblockexp is the log2() of number of LBAs on the LUN per physical sector.
+ *
+ * pblockoff is the lowest LBA on the LUN aligned ot physical sector.
+ *
* req_lun_id is the requested LUN ID. CTL only pays attention to this
* field if the CTL_LUN_FLAG_ID_REQ flag is set. If the requested LUN ID is
* not available, the LUN addition will fail. If a particular LUN ID isn't
@@ -185,6 +189,8 @@ struct ctl_be_lun {
void *be_lun; /* passed to CTL */
uint64_t maxlba; /* passed to CTL */
uint32_t blocksize; /* passed to CTL */
+ uint16_t pblockexp; /* passed to CTL */
+ uint16_t pblockoff; /* passed to CTL */
uint32_t req_lun_id; /* passed to CTL */
uint32_t lun_id; /* returned from CTL */
uint8_t serial_num[CTL_SN_LEN]; /* passed to CTL */