From owner-freebsd-scsi@FreeBSD.ORG Tue Apr 5 14:20:38 2011 Return-Path: Delivered-To: freebsd-scsi@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CFF2A106564A for ; Tue, 5 Apr 2011 14:20:38 +0000 (UTC) (envelope-from avg@FreeBSD.org) Received: from citadel.icyb.net.ua (citadel.icyb.net.ua [212.40.38.140]) by mx1.freebsd.org (Postfix) with ESMTP id 222048FC15 for ; Tue, 5 Apr 2011 14:20:37 +0000 (UTC) Received: from odyssey.starpoint.kiev.ua (alpha-e.starpoint.kiev.ua [212.40.38.101]) by citadel.icyb.net.ua (8.8.8p3/ICyb-2.3exp) with ESMTP id RAA05434; Tue, 05 Apr 2011 17:20:34 +0300 (EEST) (envelope-from avg@FreeBSD.org) Message-ID: <4D9B2531.4070202@FreeBSD.org> Date: Tue, 05 Apr 2011 17:20:33 +0300 From: Andriy Gapon User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.9.2.15) Gecko/20110309 Lightning/1.0b2 Thunderbird/3.1.9 MIME-Version: 1.0 To: Borja Marcos References: <4D9AF9B7.9030107@FreeBSD.org> <4D9B0DF7.8020104@FreeBSD.org> <4D0D7E78-2491-4D45-9DDE-58E360C6BA06@sarenet.es> <4D9B1A9E.4040007@FreeBSD.org> In-Reply-To: X-Enigmail-Version: 1.1.2 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: freebsd-scsi@FreeBSD.org Subject: Re: propose: change some sense codes handling X-BeenThere: freebsd-scsi@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SCSI subsystem List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 Apr 2011 14:20:38 -0000 on 05/04/2011 16:41 Borja Marcos said the following: > > On Apr 5, 2011, at 3:35 PM, Andriy Gapon wrote: > >> on 05/04/2011 16:24 Borja Marcos said the following: >>> I forgot. Of course it's not harmelss at all. That's the problem of being multi-tasking ;) >>> >>> Reset or power on could indicate that any configuration written to the device (mode pages) have gone back to the default values as well. So, even with no outstanding operations, I would treat it with caution. >>> >>> And again, if you power cycle a device from which you have filesystems attached I find it safer to treat it as an I/O error, unmounting the filesystems, checking, etc, etc. >> >> Sure. So, still why "Power on occurred" or "Device internal reset" should be >> SS_RDEF while "Power on, reset, or bus device reset occurred" should be SS_FATAL? > > Seems to be safer to treat it as fatal, don't you think? Seems to be safe to treat everything as fatal, but less convenient perhaps? So let me clarify. Do you suggest that all "reset" and "power" statuses be treated as SS_FATAL? Or do you single-out "Power on, reset, or bus device reset occurred"? -- Andriy Gapon