From owner-freebsd-fs Thu Sep 21 11:16: 7 2000 Delivered-To: freebsd-fs@freebsd.org Received: from freebsd.dk (freebsd.dk [212.242.42.178]) by hub.freebsd.org (Postfix) with ESMTP id 36A4437B42C for ; Thu, 21 Sep 2000 11:16:03 -0700 (PDT) Received: (from sos@localhost) by freebsd.dk (8.9.3/8.9.1) id UAA40830; Thu, 21 Sep 2000 20:20:07 +0200 (CEST) (envelope-from sos) From: Soren Schmidt Message-Id: <200009211820.UAA40830@freebsd.dk> Subject: Re: disable write caching with softupdates? In-Reply-To: <200009211807.LAA17698@bubba.whistle.com> from Archie Cobbs at "Sep 21, 2000 11:07:09 am" To: archie@whistle.com (Archie Cobbs) Date: Thu, 21 Sep 2000 20:20:07 +0200 (CEST) Cc: mbendiks@eunet.no, terry@lambert.org, fs@freebsd.org X-Mailer: ELM [version 2.4ME+ PL54 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Sender: owner-freebsd-fs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org It seems Archie Cobbs wrote: > > > Soren do you want me to try to come up with a patch? > > > I don't claim to understand IDE technology.. can you > > > just send the disable command at any time or is it > > > more complicated than that? > > > > This will do it, or rather leave it as the disk default which > > should be disabled... > > Thanks.. I was talking about a sysctl patch, where you could > turn write caching on or off at any time while the system is > running via sysctl. Is it even possible to do that? Why on earth would you want this as a sysctl knob ? Either you want to play it safe, or you dont care, this is not something you change your mind about now and then.... I'm planning to make it a compile time option, the question is what the default should be... The _right_ solution of cause is to have the FS code pass down a flag that says only write this when all preceeding bufs are on the media, now _that_ would be nice and work for both ATA and SCSI devices.... -Søren To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-fs" in the body of the message