From owner-freebsd-hackers@freebsd.org Fri Jul 31 05:57:16 2015 Return-Path: Delivered-To: freebsd-hackers@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 E08AE9ADE78 for ; Fri, 31 Jul 2015 05:57:16 +0000 (UTC) (envelope-from julian@freebsd.org) Received: from vps1.elischer.org (vps1.elischer.org [204.109.63.16]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "vps1.elischer.org", Issuer "CA Cert Signing Authority" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id A4AC21434 for ; Fri, 31 Jul 2015 05:57:15 +0000 (UTC) (envelope-from julian@freebsd.org) Received: from Julian-MBP3.local (ppp121-45-239-102.lns20.per1.internode.on.net [121.45.239.102]) (authenticated bits=0) by vps1.elischer.org (8.14.9/8.14.9) with ESMTP id t6V5v2Lb068430 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO); Thu, 30 Jul 2015 22:57:05 -0700 (PDT) (envelope-from julian@freebsd.org) Subject: Re: getting a disk structure given a device name To: "Pokala, Ravi" , "freebsd-hackers@freebsd.org" References: From: Julian Elischer Message-ID: <55BB0E29.3060408@freebsd.org> Date: Fri, 31 Jul 2015 13:56:57 +0800 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:38.0) Gecko/20100101 Thunderbird/38.1.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 31 Jul 2015 05:57:17 -0000 On 7/30/15 11:22 PM, Pokala, Ravi wrote: >> Date: Wed, 29 Jul 2015 23:31:03 +0000 >> From: Raviprakash Darbha >> To: "freebsd-hackers@freebsd.org" >> Cc: Steve Kiernan , Simon Gerraty >> >> Subject: getting a disk structure given a device name >> Message-ID: >> Content-Type: text/plain; charset="us-ascii" >> >> Hello All >> >> I am trying to write a filter driver for the ata block on freebsd 6.2 to >> simulate failed reads and writes. 6.2!!!?? I thought I was in trouble being stuck on 8.0! > We originally did something like that at Panasas, but by hacking ata(4) > and ad(4) directly. :-P Later on, we created a GEOM class to do error > injection. Currently, I prefer using the WRITE_UNCORRECTABLE48 command, to > tell the drive to actually return errors on subsequent reads. That has the > benefit of being indistinguishable from an actual read failure - the drive > spends the time to do error recovery, and sends the actual error code back. > > -Ravi > > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org" >