diff options
author | Andy Grover <agrover@redhat.com> | 2015-05-19 17:44:39 -0400 |
---|---|---|
committer | Nicholas Bellinger <nab@linux-iscsi.org> | 2015-05-30 22:57:48 -0400 |
commit | 9c1cd1b68cd15c81d12a0cf2402129475882b620 (patch) | |
tree | 83f3008fd0b47e62b6792926f2bc8eec1b9082d2 /Documentation | |
parent | cf87edc6022d1fe7efa6b8ce1a99f2ef6a1b27f9 (diff) |
target/user: Only support full command pass-through
After much discussion, give up on only passing a subset of SCSI commands
to userspace and pass them all. Based on what pscsi is doing, make sure
to set SCF_SCSI_DATA_CDB for I/O ops, and define attributes identical to
pscsi.
Make hw_block_size configurable via dev param.
Remove mention of command filtering from tcmu-design.txt.
Signed-off-by: Andy Grover <agrover@redhat.com>
Reviewed-by: Ilias Tsitsimpis <iliastsi@arrikto.com>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Diffstat (limited to 'Documentation')
-rw-r--r-- | Documentation/target/tcmu-design.txt | 21 |
1 files changed, 1 insertions, 20 deletions
diff --git a/Documentation/target/tcmu-design.txt b/Documentation/target/tcmu-design.txt index b495108c433c..263b907517ac 100644 --- a/Documentation/target/tcmu-design.txt +++ b/Documentation/target/tcmu-design.txt | |||
@@ -15,8 +15,7 @@ Contents: | |||
15 | a) Discovering and configuring TCMU uio devices | 15 | a) Discovering and configuring TCMU uio devices |
16 | b) Waiting for events on the device(s) | 16 | b) Waiting for events on the device(s) |
17 | c) Managing the command ring | 17 | c) Managing the command ring |
18 | 3) Command filtering | 18 | 3) A final note |
19 | 4) A final note | ||
20 | 19 | ||
21 | 20 | ||
22 | TCM Userspace Design | 21 | TCM Userspace Design |
@@ -364,24 +363,6 @@ int handle_device_events(int fd, void *map) | |||
364 | } | 363 | } |
365 | 364 | ||
366 | 365 | ||
367 | Command filtering | ||
368 | ----------------- | ||
369 | |||
370 | Initial TCMU support is for a filtered commandset. Only IO-related | ||
371 | commands are presented to userspace, and the rest are handled by LIO's | ||
372 | in-kernel command emulation. The commands presented are all versions | ||
373 | of: | ||
374 | |||
375 | READ | ||
376 | WRITE | ||
377 | WRITE_VERIFY | ||
378 | XDWRITEREAD | ||
379 | WRITE_SAME | ||
380 | COMPARE_AND_WRITE | ||
381 | SYNCHRONIZE_CACHE | ||
382 | UNMAP | ||
383 | |||
384 | |||
385 | A final note | 366 | A final note |
386 | ------------ | 367 | ------------ |
387 | 368 | ||