From owner-freebsd-hackers Wed Feb 19 17:00:23 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id RAA02230 for hackers-outgoing; Wed, 19 Feb 1997 17:00:23 -0800 (PST) Received: from dfw-ix6.ix.netcom.com (dfw-ix6.ix.netcom.com [206.214.98.6]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id RAA02200 for ; Wed, 19 Feb 1997 17:00:11 -0800 (PST) Received: (from smap@localhost) by dfw-ix6.ix.netcom.com (8.8.4/8.8.4) id SAA28815; Wed, 19 Feb 1997 18:54:55 -0600 (CST) Received: from ala-ca9-36.ix.netcom.com(207.93.143.100) by dfw-ix6.ix.netcom.com via smap (V1.3) id sma028610; Wed Feb 19 18:52:45 1997 Received: (from asami@localhost) by silvia.HIP.Berkeley.EDU (8.8.5/8.6.9) id QAA00662; Wed, 19 Feb 1997 16:52:38 -0800 (PST) Date: Wed, 19 Feb 1997 16:52:38 -0800 (PST) Message-Id: <199702200052.QAA00662@silvia.HIP.Berkeley.EDU> To: joerg_wunsch@uriah.heep.sax.de CC: james@wgold.demon.co.uk, hackers@FreeBSD.org, dufault@hda.com In-reply-to: Subject: Re: [Fwd: Failed mail: unknown user] From: asami@vader.cs.berkeley.edu (Satoshi Asami) Sender: owner-hackers@FreeBSD.org X-Loop: FreeBSD.org Precedence: bulk * > - if the OS tells me it has a successful write through the * > disk device, can I rely on: * > * > a) the data is on the platter * * It is. Since physio(9) waits for the completion, you should be * notified of any lower-level errors. Note that this is _unlike_ with * the block devices, where writing happens asynchronously, so the kernel * did already declare the write operation as successful by the time it * notices an error. Really? I think drives have their own cache, and if they have write buffering turned on, they will happily return "write complete" when they are only holding data in the buffer. I know Seagate ST15150WC (old Barracuda 4) had the write buffer disabled, while Quantum 34300WC (Atlas 4) had it enabled. If you really want to make sure you write through to the platter, either get one of those that don't have it turned on or turn it off by youself (I heard it's in one of the SCSI mode pages). Satoshi