From owner-svn-src-projects@FreeBSD.ORG Wed Jan 5 00:04:14 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 D36A8106564A; Wed, 5 Jan 2011 00:04:14 +0000 (UTC) (envelope-from ivoras@gmail.com) Received: from mail-qy0-f182.google.com (mail-qy0-f182.google.com [209.85.216.182]) by mx1.freebsd.org (Postfix) with ESMTP id 6826A8FC12; Wed, 5 Jan 2011 00:04:14 +0000 (UTC) Received: by qyk36 with SMTP id 36so14398351qyk.13 for ; Tue, 04 Jan 2011 16:04:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:sender:received :in-reply-to:references:from:date:x-google-sender-auth:message-id :subject:to:cc:content-type:content-transfer-encoding; bh=aUpSGshPkImiuOvuYM0tRweeZeK5eQwVT5Z0UGNgq3E=; b=pbaaqOiVscG9Nk7tj9iJVMIEbnwudF36B0x2bGtlTpMH5Q4kmfF8udG8081MOVr25V 0oCFtUFmnnjTLNwWIkJ3wE22BCUrj0CvpI2S+8R2Xivelm3qavEt+ZPaw7khW8shff/T 5muXS3tj8dJnzNYrZp1CjbHi0TqYrOEPyAeyw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:cc:content-type :content-transfer-encoding; b=BKud12z7CBm2NrbXmFjEqHXC2C8iPQGOymE0iVuxCMrZBo2eXbD0vywycJ/JDrnpm1 DzV5mtxcpERSgVNp/yi+6J5fWmMASOsJo5KGgPRLPnXAu3AAt2GtIAmFSkjpgz2JsoLj r4RZSVaTr0uQ4vQo7M82mkkRGIgClPxTEnnNI= Received: by 10.229.43.195 with SMTP id x3mr19252300qce.291.1294184266822; Tue, 04 Jan 2011 15:37:46 -0800 (PST) MIME-Version: 1.0 Sender: ivoras@gmail.com Received: by 10.229.44.70 with HTTP; Tue, 4 Jan 2011 15:37:06 -0800 (PST) In-Reply-To: <201101042244.p04MiBf6057193@svn.freebsd.org> References: <201101042244.p04MiBf6057193@svn.freebsd.org> From: Ivan Voras Date: Wed, 5 Jan 2011 00:37:06 +0100 X-Google-Sender-Auth: L-dXhrHTtSRlwR1ETVrqnpQJtgo Message-ID: To: Warner Losh Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: svn-src-projects@freebsd.org, src-committers@freebsd.org 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 00:04:14 -0000 On 4 January 2011 23:44, Warner Losh wrote: > Author: imp > Date: Tue Jan =C2=A04 22:44:10 2011 > New Revision: 216978 > URL: http://svn.freebsd.org/changeset/base/216978 > > Log: > =C2=A0Implement three types of forced errors in the ada layer for the > =C2=A0purpose of testing uppper layers in the stack. > > =C2=A0kern.cam.ada.X.periodic_read_error specifies that every Nth read wi= ll > =C2=A0fail. > > =C2=A0kern.cam.ada.X.force_read_error specifies that the next N reads wil= l fail. > > =C2=A0kern.cam.ada.X.force_write_error specifies that the next N writes w= ill fail. > > =C2=A0These are enabled with 'options ADA_TEST_FAILURE'. =C2=A0Otherwise,= they > =C2=A0aren't added to the kernel. =C2=A0Also, the sysctl stuff is only us= ed for > =C2=A0this feature, so move it under this option ifdef. Maybe gnop would help you? (though on a different layer and nondeterministic failures)