Skip to contentSkip to conversation

scsi: Minor cleanups around scsi-disk

PATCH In review Markus Armbruster 2 participants 7 messages May 9, 2017 – May 23, 2017

lore
Share & tools
lore
#0 lore raw

cover scsi: Minor cleanups around scsi-disk

Markus Armbruster (2):
block: Clarify documentation of BlockInfo member io-status
virtio-scsi-test: Use scsi-hd instead of legacy scsi-disk

 qapi/block-core.json     | 3 ++-
 tests/virtio-scsi-test.c | 2 +-
 2 files changed, 3 insertions(+), 2 deletions(-)
Signature · 1 line
2.7.4
#1 lore raw

PATCH 1/2 block: Clarify documentation of BlockInfo member io-status

Say "SCSI except scsi-generic" instead of "scsi-disk", because scsi-disk could mean either scsi-disk.c (which is correct) or device model scsi-disk (which would be incorrect).

---
 qapi/block-core.json | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
qapi/block-core.json +2 -1
index 87fb747..b1dc848 100644
@@ -449,7 +449,8 @@
 #
 # @io-status: @BlockDeviceIoStatus. Only present if the device
 #             supports it and the VM is configured to stop on errors
-#             (supported device models: virtio-blk, ide, scsi-disk)
+#             (supported device models: virtio-blk, IDE, SCSI except
+#             scsi-generic)
 #
 # @inserted: @BlockDeviceInfo describing the device if media is
 #            present
Signature · 1 line
2.7.4
#2 lore raw

PATCH 2/2 virtio-scsi-test: Use scsi-hd instead of legacy scsi-disk

In reply to Markus Armbruster
---
 tests/virtio-scsi-test.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tests/virtio-scsi-test.c +1 -1
index 0eabd56..27ef7c0 100644
@@ -149,7 +149,7 @@ static QVirtIOSCSI *qvirtio_scsi_pci_init(int slot)
 
     vs->qs = qvirtio_scsi_start("-drive file=blkdebug::null-co://,"
                                 "if=none,id=dr1,format=raw,file.align=4k "
-                                "-device scsi-disk,drive=dr1,lun=0,scsi-id=1");
+                                "-device scsi-hd,drive=dr1,lun=0,scsi-id=1");
     dev = qvirtio_pci_device_find(vs->qs->pcibus, VIRTIO_ID_SCSI);
     vs->dev = (QVirtioDevice *)dev;
     g_assert(dev != NULL);
Signature · 1 line
2.7.4
Acked-by on the v1 series
#3 lore raw
In reply to Markus Armbruster
Quoted 8 lines · Markus Armbruster

Markus Armbruster (2):
block: Clarify documentation of BlockInfo member io-status
virtio-scsi-test: Use scsi-hd instead of legacy scsi-disk

 qapi/block-core.json     | 3 ++-
 tests/virtio-scsi-test.c | 2 +-
 2 files changed, 3 insertions(+), 2 deletions(-)
#4 lore raw
Quoted 11 lines · Paolo Bonzini
Quoted 8 lines · Markus Armbruster

Markus Armbruster (2):
block: Clarify documentation of BlockInfo member io-status
virtio-scsi-test: Use scsi-hd instead of legacy scsi-disk

 qapi/block-core.json     | 3 ++-
 tests/virtio-scsi-test.c | 2 +-
 2 files changed, 3 insertions(+), 2 deletions(-)

Thanks!

The canonical path is through your tree, but I could stick it into a miscellaneous pull request if you like.

#5 lore raw
Quoted 12 lines · Markus Armbruster
Quoted 10 lines · Paolo Bonzini
Quoted 8 lines · Markus Armbruster

Markus Armbruster (2):
block: Clarify documentation of BlockInfo member io-status
virtio-scsi-test: Use scsi-hd instead of legacy scsi-disk

 qapi/block-core.json     | 3 ++-
 tests/virtio-scsi-test.c | 2 +-
 2 files changed, 3 insertions(+), 2 deletions(-)
Quoted 6 lines
Quoted 1 line

Thanks!

The canonical path is through your tree, but I could stick it into a miscellaneous pull request if you like.

I saw you posted these two together so I wasn't sure who would do that. :) These are not files that my pull requests touch a lot.

Paolo

#6 lore raw
Quoted 15 lines · Paolo Bonzini
Quoted 14 lines · Markus Armbruster
Quoted 11 lines · Paolo Bonzini
Quoted 8 lines · Markus Armbruster

Markus Armbruster (2):
block: Clarify documentation of BlockInfo member io-status
virtio-scsi-test: Use scsi-hd instead of legacy scsi-disk

 qapi/block-core.json     | 3 ++-
 tests/virtio-scsi-test.c | 2 +-
 2 files changed, 3 insertions(+), 2 deletions(-)
Quoted 7 lines
Quoted 4 lines

Thanks!

The canonical path is through your tree, but I could stick it into a miscellaneous pull request if you like.

I saw you posted these two together so I wasn't sure who would do that. :) These are not files that my pull requests touch a lot.

I assume that means I should post the pull request myself. Holler if I'm wrong.