From owner-svn-src-projects@FreeBSD.ORG Wed Jan 5 16:51:35 2011 Return-Path: Delivered-To: svn-src-projects@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CA944106566C; Wed, 5 Jan 2011 16:51:35 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from harmony.bsdimp.com (bsdimp.com [199.45.160.85]) by mx1.freebsd.org (Postfix) with ESMTP id 86A678FC14; Wed, 5 Jan 2011 16:51:35 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) by harmony.bsdimp.com (8.14.3/8.14.1) with ESMTP id p05Gk5Wg016760; Wed, 5 Jan 2011 09:46:05 -0700 (MST) (envelope-from imp@bsdimp.com) Message-ID: <4D24A04C.7070601@bsdimp.com> Date: Wed, 05 Jan 2011 09:46:04 -0700 From: Warner Losh User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.9.2.12) Gecko/20101029 Thunderbird/3.1.6 MIME-Version: 1.0 To: Ivan Voras References: <201101042244.p04MiBf6057193@svn.freebsd.org> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Cc: svn-src-projects@FreeBSD.org, src-committers@FreeBSD.org, Warner Losh Subject: Re: svn commit: r216978 - in projects/graid/head/sys: cam/ata conf X-BeenThere: svn-src-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the src " projects" tree" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 05 Jan 2011 16:51:35 -0000 On 01/04/2011 16:37, Ivan Voras wrote: > On 4 January 2011 23:44, Warner Losh wrote: >> Author: imp >> Date: Tue Jan 4 22:44:10 2011 >> New Revision: 216978 >> URL: http://svn.freebsd.org/changeset/base/216978 >> >> Log: >> Implement three types of forced errors in the ada layer for the >> purpose of testing uppper layers in the stack. >> >> kern.cam.ada.X.periodic_read_error specifies that every Nth read will >> fail. >> >> kern.cam.ada.X.force_read_error specifies that the next N reads will fail. >> >> kern.cam.ada.X.force_write_error specifies that the next N writes will fail. >> >> These are enabled with 'options ADA_TEST_FAILURE'. Otherwise, they >> aren't added to the kernel. Also, the sysctl stuff is only used for >> this feature, so move it under this option ifdef. > Maybe gnop would help you? (though on a different layer and > nondeterministic failures) Thanks for the suggestion. I wasn't aware of that, and will add it to my toolkit. These sysctls will help me force errors when I want them while testing graid behavior in a number of different scenarios. gnop will help me cope with testing how they work out all together on flaky hardware w/o needing the flaky hardware. Warner