From owner-freebsd-hackers Sun Oct 20 11:50:32 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1D90237B401 for ; Sun, 20 Oct 2002 11:50:31 -0700 (PDT) Received: from fed1mtao04.cox.net (fed1mtao04.cox.net [68.6.19.241]) by mx1.FreeBSD.org (Postfix) with ESMTP id A0B4543E4A for ; Sun, 20 Oct 2002 11:50:30 -0700 (PDT) (envelope-from dchrist@cox.net) Received: from linus ([68.4.176.221]) by fed1mtao04.cox.net (InterMail vM.5.01.04.05 201-253-122-122-105-20011231) with ESMTP id <20021020185031.EQDP14315.fed1mtao04.cox.net@linus> for ; Sun, 20 Oct 2002 14:50:31 -0400 From: "David Christensen" To: Subject: IDE Device Driver Testing Date: Sun, 20 Oct 2002 11:50:24 -0700 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.4024 Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG I'm working on a device driver for an IDE controller card and I'm having problems putting a filesystem on the drive. I want to make sure that the driver isn't corrupting data so I wrote a short perl script which generates random sized blocks of data, writes it to the disk, then reads it back. How can I disable disk caching so that I know the data I read back and compare to the original data is actually from the drive and not the disk cache? David Christensen To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message