aboutsummaryrefslogtreecommitdiff
path: root/blockdev.h
diff options
context:
space:
mode:
authorHannes Reinecke <hare@suse.de>2010-11-24 12:15:56 +0100
committerKevin Wolf <kwolf@redhat.com>2010-11-25 11:57:32 +0100
commit622b520fb4ca50b5028485f1d225317ece0a42b9 (patch)
tree400a49cd64d71ef0ed550ea9838341d308e312c0 /blockdev.h
parent80465c5016f23d8b39efb36db2ca77a35f67eaef (diff)
downloadqemu-622b520fb4ca50b5028485f1d225317ece0a42b9.zip
qemu-622b520fb4ca50b5028485f1d225317ece0a42b9.tar.gz
qemu-622b520fb4ca50b5028485f1d225317ece0a42b9.tar.bz2
scsi: Increase the number of possible devices
The SCSI parallel interface has a limit of 8 devices, but not the SCSI stack in general. So we should be removing the hard-coded limit and use MAX_SCSI_DEVS instead. And we only need to scan those devices which are allocated by the bus. Signed-off-by: Hannes Reinecke <hare@suse.de> Acked-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'blockdev.h')
-rw-r--r--blockdev.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/blockdev.h b/blockdev.h
index 2a0559e..4cb8ca9 100644
--- a/blockdev.h
+++ b/blockdev.h
@@ -32,7 +32,7 @@ struct DriveInfo {
};
#define MAX_IDE_DEVS 2
-#define MAX_SCSI_DEVS 7
+#define MAX_SCSI_DEVS 255
DriveInfo *drive_get(BlockInterfaceType type, int bus, int unit);
int drive_get_max_bus(BlockInterfaceType type);