qemu-e2k/block
Ronnie Sahlberg 622695a458 ISCSI: force use of sg for SMC and SSC devices
If the device we open is a SMC or SSC device, then force the use of sg. We
dont have any medium changer or tape emulation so only passthrough via
real sg or scsi-generic via iscsi would work anyway.

Forcing sg also makes qemu skip trying to read from the device to guess
the image format by reading from the device (find_image_format()).
SMC devices do not implement READ6/10/12/16 so it is not possible to
read from them (SSC have different CDBs).

With this patch I can successfully manage a SMC device wiht iscsi in
passthrough mode.

Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
[Added TYPE_TAPE handling - Paolo]
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2012-07-02 10:18:41 +02:00
..
blkdebug.c
blkverify.c
bochs.c
cloop.c
cow.c
curl.c
dmg.c
iscsi.c ISCSI: force use of sg for SMC and SSC devices 2012-07-02 10:18:41 +02:00
Makefile.objs build: move block/ objects to nested Makefile.objs 2012-06-07 09:21:13 +02:00
nbd.c
parallels.c
qcow2-cache.c qcow2: always operate caches in writeback mode 2012-06-15 14:03:43 +02:00
qcow2-cluster.c qcow2: Fix avail_sectors in cluster allocation code 2012-06-15 14:03:43 +02:00
qcow2-refcount.c qcow2: always operate caches in writeback mode 2012-06-15 14:03:43 +02:00
qcow2-snapshot.c qcow2: fix the return value -ENOENT -> -EEXIST 2012-05-02 18:39:39 +02:00
qcow2.c qcow2: fix autoclear image header update 2012-06-15 14:03:43 +02:00
qcow2.h qcow2: always operate caches in writeback mode 2012-06-15 14:03:43 +02:00
qcow.c
qed-check.c qemu-img check: Print fixed clusters and recheck 2012-06-15 14:03:42 +02:00
qed-cluster.c
qed-gencb.c
qed-l2-cache.c
qed-table.c
qed.c qemu-img check -r for repairing images 2012-06-15 14:03:42 +02:00
qed.h
raw-posix-aio.h
raw-posix.c raw-posix: Fix build without is_allocated support 2012-06-24 01:04:45 +02:00
raw-win32.c
raw.c block: implement is_allocated for raw 2012-06-15 14:03:42 +02:00
rbd.c rbd: hook up cache options 2012-06-15 14:03:42 +02:00
sheepdog.c sheepdog: add coroutine_fn markers to coroutine functions 2012-06-15 14:03:42 +02:00
stream.c stream: move rate limiting to a separate header file 2012-06-15 14:03:42 +02:00
vdi.c qemu-img check -r for repairing images 2012-06-15 14:03:42 +02:00
vmdk.c
vpc.c
vvfat.c block: prevent snapshot mode $TMPDIR symlink attack 2012-05-30 10:18:20 +02:00