summaryrefslogtreecommitdiffstats
path: root/sys/dev
diff options
context:
space:
mode:
authorgjb <gjb@FreeBSD.org>2014-10-21 23:07:30 +0000
committergjb <gjb@FreeBSD.org>2014-10-21 23:07:30 +0000
commitee0595fc2e7a5c4f5add68e70555a4d1ab61c9d0 (patch)
treed180891a0427ddbffc3409ebd6018ee965de7665 /sys/dev
parent6bf117ac6752015daec1383ac1246a0e99bb57d2 (diff)
downloadFreeBSD-src-ee0595fc2e7a5c4f5add68e70555a4d1ab61c9d0.zip
FreeBSD-src-ee0595fc2e7a5c4f5add68e70555a4d1ab61c9d0.tar.gz
MFstable10 r273429:
MFC r273402: Fix an issue where a FreeBSD virtual machine provisioned in the Microsoft Azure service does not recognize the second attached disk on the system. PR: 194376 Approved by: re (delphij) Sponsored by: The FreeBSD Foundation
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/hyperv/storvsc/hv_storvsc_drv_freebsd.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/dev/hyperv/storvsc/hv_storvsc_drv_freebsd.c b/sys/dev/hyperv/storvsc/hv_storvsc_drv_freebsd.c
index e847678..2a8043d 100644
--- a/sys/dev/hyperv/storvsc/hv_storvsc_drv_freebsd.c
+++ b/sys/dev/hyperv/storvsc/hv_storvsc_drv_freebsd.c
@@ -75,7 +75,7 @@ __FBSDID("$FreeBSD$");
#define STORVSC_MAX_IO_REQUESTS (STORVSC_MAX_LUNS_PER_TARGET * 2)
#define BLKVSC_MAX_IDE_DISKS_PER_TARGET (1)
#define BLKVSC_MAX_IO_REQUESTS STORVSC_MAX_IO_REQUESTS
-#define STORVSC_MAX_TARGETS (1)
+#define STORVSC_MAX_TARGETS (2)
struct storvsc_softc;
@@ -584,7 +584,6 @@ hv_storvsc_on_iocompletion(struct storvsc_softc *sc,
vm_srb = &vstor_packet->u.vm_srb;
- request->sense_info_len = 0;
if (((vm_srb->scsi_status & 0xFF) == SCSI_STATUS_CHECK_COND) &&
(vm_srb->srb_status & SRB_STATUS_AUTOSENSE_VALID)) {
/* Autosense data available */
OpenPOWER on IntegriCloud