aboutsummaryrefslogtreecommitdiff
path: root/sys/cam/ctl/ctl_backend.h
diff options
context:
space:
mode:
authorAlexander Motin <mav@FreeBSD.org>2014-12-17 17:30:54 +0000
committerAlexander Motin <mav@FreeBSD.org>2014-12-17 17:30:54 +0000
commit34961f407de5e59e219961c25c33db6bc0f39847 (patch)
tree286b0e7072ddf02598bdd7c81484177feb10040f /sys/cam/ctl/ctl_backend.h
parent2124e3b07fe7bc1648596b971d9e58180b6fcbad (diff)
downloadsrc-34961f407de5e59e219961c25c33db6bc0f39847.tar.gz
src-34961f407de5e59e219961c25c33db6bc0f39847.zip
Add configuration options to override physical and UNMAP blocks geometry.
While in most cases CTL should correctly fetch those values from backing storages, there are some initiators (like MS SQL), that may not like large physical block sizes, even if they are true. For such cases allow override fetched values with supported ones (like 4K). MFC after: 1 week
Notes
Notes: svn path=/head/; revision=275865
Diffstat (limited to 'sys/cam/ctl/ctl_backend.h')
-rw-r--r--sys/cam/ctl/ctl_backend.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/cam/ctl/ctl_backend.h b/sys/cam/ctl/ctl_backend.h
index 77975f9ffea0..5e0af5cc302e 100644
--- a/sys/cam/ctl/ctl_backend.h
+++ b/sys/cam/ctl/ctl_backend.h
@@ -194,6 +194,8 @@ struct ctl_be_lun {
uint32_t blocksize; /* passed to CTL */
uint16_t pblockexp; /* passed to CTL */
uint16_t pblockoff; /* passed to CTL */
+ uint16_t ublockexp; /* passed to CTL */
+ uint16_t ublockoff; /* passed to CTL */
uint32_t atomicblock; /* passed to CTL */
uint32_t req_lun_id; /* passed to CTL */
uint32_t lun_id; /* returned from CTL */