diff options
author | h6w <tudor@tudorholton.com> | 2020-07-27 10:14:02 +1000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-27 10:14:02 +1000 |
commit | 4968ef7a93a5a3b1321232c5c98fc2aa837f88d4 (patch) | |
tree | 68852daaa6ce4fa889f252af5be37b518ab8a9ec /js | |
parent | d3676e92ee80c108dd54d6e193edbc0a74976145 (diff) | |
parent | 510435225acd8591012599564ea5faf3d41e273b (diff) | |
download | phpvirtualbox-4968ef7a93a5a3b1321232c5c98fc2aa837f88d4.zip phpvirtualbox-4968ef7a93a5a3b1321232c5c98fc2aa837f88d4.tar.gz phpvirtualbox-4968ef7a93a5a3b1321232c5c98fc2aa837f88d4.tar.bz2 |
Merge pull request #243 from stianvis/add_virtio_scsi_support
Add VirtIO SCSI support
Diffstat (limited to 'js')
-rw-r--r-- | js/phpvirtualbox.js | 26 |
1 files changed, 23 insertions, 3 deletions
diff --git a/js/phpvirtualbox.js b/js/phpvirtualbox.js index 63c8344..cf8c92a 100644 --- a/js/phpvirtualbox.js +++ b/js/phpvirtualbox.js @@ -4824,9 +4824,13 @@ var vboxStorage = { */ getBusIconName: function(bus) { if(vboxStorage[bus].displayInherit) bus = vboxStorage[bus].displayInherit - return bus.toLowerCase(); + if (vboxStorage[bus].iconName) { + return vboxStorage[bus].iconName; + } else { + return bus.toLowerCase(); + } }, - + IDE: { maxPortCount: 2, limitOneInstance: true, @@ -4882,6 +4886,7 @@ var vboxStorage = { return s; } }, + SAS: { maxPortCount: 8, maxDevicesPerPortCount: 1, @@ -4897,7 +4902,6 @@ var vboxStorage = { }, displayInherit: 'SATA' }, - Floppy: { maxPortCount: 1, @@ -4939,6 +4943,22 @@ var vboxStorage = { return s; }, displayInherit: 'IDE' + }, + + VirtioSCSI: { + iconName: 'virtio_scsi', + maxPortCount: 256, + maxDevicesPerPortCount: 1, + types: ['VirtioSCSI'], + driveTypes: ['disk'], + slotName: function(p,d) { return trans('virtio-scsi Port %1','VBoxGlobal', null, 'StorageSlot').replace('%1',p); }, + slots: function() { + var s = {}; + for(var i = 0; i < 8; i++) { + s[i+'-0'] = trans('virtio-scsi Port %1','VBoxGlobal', null, 'StorageSlot').replace('%1',i); + } + return s; + } } }; |