Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 21 Oct 2014 19:36:20 +0000 (UTC)
From:      Glen Barber <gjb@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r273402 - head/sys/dev/hyperv/storvsc
Message-ID:  <201410211936.s9LJaKjq047638@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: gjb
Date: Tue Oct 21 19:36:20 2014
New Revision: 273402
URL: https://svnweb.freebsd.org/changeset/base/273402

Log:
  Fix an issue where a FreeBSD virtual machine provisioned in
  the Microsoft Azure service does not recognize the second
  attached disk on the system.
  
  Submitted by:	kyliel@Microsoft
  Patched by:	weh@Microsoft
  PR:		194376
  MFC after:	3 days
  X-MFC-10.1:	yes, ASAP
  Sponsored by:	The FreeBSD Foundation

Modified:
  head/sys/dev/hyperv/storvsc/hv_storvsc_drv_freebsd.c

Modified: head/sys/dev/hyperv/storvsc/hv_storvsc_drv_freebsd.c
==============================================================================
--- head/sys/dev/hyperv/storvsc/hv_storvsc_drv_freebsd.c	Tue Oct 21 19:05:44 2014	(r273401)
+++ head/sys/dev/hyperv/storvsc/hv_storvsc_drv_freebsd.c	Tue Oct 21 19:36:20 2014	(r273402)
@@ -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 storvs
 
 	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 */



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201410211936.s9LJaKjq047638>