From owner-freebsd-scsi@freebsd.org Mon Aug 15 17:58:51 2016 Return-Path: Delivered-To: freebsd-scsi@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 07B38BBB559 for ; Mon, 15 Aug 2016 17:58:51 +0000 (UTC) (envelope-from scott4long@yahoo.com) Received: from nm23-vm7.bullet.mail.gq1.yahoo.com (nm23-vm7.bullet.mail.gq1.yahoo.com [98.136.217.86]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id D133B1F25 for ; Mon, 15 Aug 2016 17:58:50 +0000 (UTC) (envelope-from scott4long@yahoo.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1471283808; bh=r0h9NydjhcsPr8+E93Zp03utkGY3eXndDy8xoiYdPes=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From:Subject; b=lDufFT21hHSB4HSt+LwOFef8GXfL2n9dQK7zUM5GQW/WGg6vOEQ+DjWKMHtSP059mfGxd2iU3RlnaqouVYtydo72vjoEJ297YpWzEaXhJA8Nv+ntAfpoN810at4/dSNHUzLjCaLtzQlgbmUECUos+5H9HzCdrUbyNqeT1flfzw8NuJHXcGuE4ox+bQbFYPfoJLZeyuNFDLGH9Fgn/NPAHgtiACokm9F2r9ZEW965gTTTchcF7EZSTy0hcT03yZMavM/fegqOdfBzgoC9dAvYgp5wuSDidl+I4vYwTrNOFtV0RXjpiZDf1xyMY29l6qof6RU1kn7M8nw30DqYL+mH2g== Received: from [216.39.60.181] by nm23.bullet.mail.gq1.yahoo.com with NNFMP; 15 Aug 2016 17:56:48 -0000 Received: from [98.136.164.68] by tm17.bullet.mail.gq1.yahoo.com with NNFMP; 15 Aug 2016 17:56:48 -0000 Received: from [127.0.0.1] by smtp230.mail.gq1.yahoo.com with NNFMP; 15 Aug 2016 17:56:48 -0000 X-Yahoo-Newman-Id: 480043.44254.bm@smtp230.mail.gq1.yahoo.com X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: FRILz.sVM1ki_BleAAsHjxHbvnNuVxgBivv4jUaSu9JMbc3 dSFTmci2amRtvaMnXk2T2qA_O2LYkOMLaXU2ro1N5G8mQHmQwKCOTDMb.c6B Y3LmJx2P.Sb8oPhxThYBeV2g3u9yLFIVSs5IjgSlZrVoZeeo8FQwE_PPOGPr Gl1GfrfKjmJsj5Wo3ZiwsRvUbS0m.n6r7k7UOMA8wuxdAa7rBOCzt.q04X7g QxqL.lY_Z8tCbVB7iE.c8az63x0Ts7GiKGbDYJiKQ_hlk5JSNkh4pR5vd0xr DCtPsrKmp5MM2D9vcj91NTqoAUclgPC2ICKNahuu4q52sTtkVYN66pQSSZVQ QRrBYKD.bfS3IyIdzy8A9xqgwWqs9BlgErZkUnPCmTx63qeDUsLJt3DbY56m Z6npM11sEfMwpnsMJ74.kK.syClqWiPx9l7Pg77O4.IghBW9tOMYx0E7sg_P e6JhiWyTVPox79nYilOP6reMHzRo5NVRA7tRpgHb7VPsfT8tC.7fhMAf1HnL 6QjSEB0KYRVRNQ9Sd5nEQ5ZKOzHxH36YvJCpcRqoMnPdDMyteyJ3yi_owtw- - X-Yahoo-SMTP: clhABp.swBB7fs.LwIJpv3jkWgo2NU8- Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\)) Subject: Re: How to handle Test Unit Ready command From: Scott Long In-Reply-To: Date: Mon, 15 Aug 2016 10:56:47 -0700 Cc: "freebsd-scsi@freebsd.org" Content-Transfer-Encoding: quoted-printable Message-Id: <33643A7B-F529-4B17-9BFC-CDF1A75C1D53@yahoo.com> References: To: Hongjiang Zhang X-Mailer: Apple Mail (2.3124) X-BeenThere: freebsd-scsi@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: SCSI subsystem List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Aug 2016 17:58:51 -0000 The right way to do it in CAM is to respond with CAM_SEL_TIMEOUT. If = you respond with something like CAM_DEV_NOT_THERE, I think it=E2=80=99ll = trigger error recovery, retries, and ugly console messages. Probably = should fix that if it hasn=E2=80=99t been done already. Scott > On Aug 15, 2016, at 3:01 AM, Hongjiang Zhang via freebsd-scsi = wrote: >=20 > Hi, >=20 > I'm developing the SCSI storage driver for FreeBSD on Hyper-V. When = the host side hot removed a scsi disk from LUN 0, there will a TUR = command issued from VM side. But what is the expected TUR response if = the specified LUN is invalid? >=20 > Thanks > Hongjiang Zhang > _______________________________________________ > freebsd-scsi@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-scsi > To unsubscribe, send any mail to = "freebsd-scsi-unsubscribe@freebsd.org"